[Users] UAC behavior, specifically uac_replace_from

TSS Support support at tss.net
Fri Jun 30 22:11:26 CEST 2006


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 at 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 at voip02.xxxxxxx.com SIP/2.0
Via: SIP/2.0/UDP xx.7.96.185:5061;branch=z9hG4bK-7fa6fcd6;rport
From: Anonymous 
<sip:+136091xxxxxx at voip02.xxxxxxxx.com>;tag=8c07328919ade13ao1
To: <sip:1360789xxxx at voip02.xxxxxxxx.com>
Call-ID: 51835bf5-ba1be6be at localhost
CSeq: 102 INVITE
Max-Forwards: 70
Contact: Anonymous <sip:+136091xxxxx at 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 at 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 at voip02.xxxxxxxx.com>;tag=8c07328919ade13ao1 
sip:anonymous at xxxxxxxx.com
To: <sip:360789xxxx at xx.7.96.90:5060>
Call-ID: 51835bf5-ba1be6be at localhost
CSeq: 102 INVITE
Max-Forwards: 69
Contact: Anonymous <sip:+136091xxxxx at 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 at 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 at voip02.xxxxxxxx.com]
Jun 30 08:18:33 voip02 /usr/sbin/openser[4684]: DEBUG:uac:replace_from: 
replacement uri is [sip:anonymous at 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 





More information about the Users mailing list