Hi Keith,
I was not able to reproduce what you are describing. Do you do any other
textops based operations on the From hdr?
the uac module adds the new URI exactly over the the old one. Actually
it inserts two lumps: one do delete the original uri and attached to it
another one to add the new URI.
any useful information from your side will be helpful to find the problem.
regards,
bogdan
TSS Support wrote:
Okay, I'm trying to use uac_replace_from to
anonymize the From: in
order to suppress ANI. I think I've got it, but it seems like the
behavior isn't what I expect. First, the relevent config file section:
if (search("Anonymous")) {
uac_replace_from("","sip:anonymous@xxxxxxx.com");
append_rpid_hf("",";party=calling;id-type=subscriber;screen=yes;privacy=full");
log(1,"Made a call anon");
};
Now, the headers as they go in and come out:
SIP MESSAGE 4 xx.7.96.185:5061() -> xx.7.96.82:5060()
UDP Frame 4 30/Jun/06 08:30:57.4723
TimeFromPreviousSipFrame=0.0069 TimeFromStart=0.0204
INVITE sip:1360789xxxx@voip02.xxxxxxx.com SIP/2.0
Via: SIP/2.0/UDP xx.7.96.185:5061;branch=z9hG4bK-7fa6fcd6;rport
From: Anonymous
<sip:+136091xxxxxx@voip02.xxxxxxxx.com>;tag=8c07328919ade13ao1
To: <sip:1360789xxxx@voip02.xxxxxxxx.com>
Call-ID: 51835bf5-ba1be6be@localhost
CSeq: 102 INVITE
Max-Forwards: 70
Contact: Anonymous <sip:+136091xxxxx@xx.7.96.185:5061>
Expires: 240
User-Agent: Sipura/SPA2000-3.1.5
Content-Length: 311
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura
Content-Type: application/sdp
SIP MESSAGE 6 xx.7.96.82:5060() -> xx.7.96.90:5060()
UDP Frame 6 30/Jun/06 08:30:57.4791
TimeFromPreviousSipFrame=0.0007 TimeFromStart=0.0272
INVITE sip:360789xxxx@xx.7.96.90:5060 SIP/2.0
Record-Route: <sip:xx.7.96.82;ftag=8c07328919ade13ao1;lr=on>
Via: SIP/2.0/UDP xx.7.96.82;branch=z9hG4bKe9d1.8c515a97.0
Via: SIP/2.0/UDP xx.7.96.185:5061;branch=z9hG4bK-7fa6fcd6;rport=5061
From: Anonymous
<sip:36091xxxxx@voip02.xxxxxxxx.com>;tag=8c07328919ade13ao1
sip:anonymous@xxxxxxxx.com
To: <sip:360789xxxx@xx.7.96.90:5060>
Call-ID: 51835bf5-ba1be6be@localhost
CSeq: 102 INVITE
Max-Forwards: 69
Contact: Anonymous <sip:+136091xxxxx@xx.7.96.185:5061>
Expires: 240
User-Agent: Sipura/SPA2000-3.1.5
Content-Length: 311
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura
Content-Type: application/sdp
Remote-Party-ID: "xxxxxxxx Customer"
<sip:+136091xxxxx@xxxxxxxx.com>;party=calling;id-type=subscriber;screen=yes;privacy=full
And finally what I'm seeing in the log:
Jun 30 08:18:33 voip02 /usr/sbin/openser[4684]:
DEBUG:uac:replace_from: removing display [Anonymous]
Jun 30 08:18:33 voip02 /usr/sbin/openser[4684]:
DEBUG:uac:replace_from: uri to replace
[sip:+136091xxxxx@voip02.xxxxxxxx.com]
Jun 30 08:18:33 voip02 /usr/sbin/openser[4684]:
DEBUG:uac:replace_from: replacement uri is [sip:anonymous@xxxxxxxx.com]
So what am I missing here? It looks like uac_replace_from is finding
the right URI and replacing it, just not properly. I've already gone
into CVS and I don't see any changes since 1.0.1 (which is what is
running here), nor any relevent changes from SER compared to OpenSER.
Any help? Please?
-Keith
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users