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:[EMAIL PROTECTED]"); 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:[EMAIL PROTECTED] SIP/2.0
Via: SIP/2.0/UDP xx.7.96.185:5061;branch=z9hG4bK-7fa6fcd6;rport
From: Anonymous <sip:[EMAIL PROTECTED]>;tag=8c07328919ade13ao1
To: <sip:[EMAIL PROTECTED]>
Call-ID: [EMAIL PROTECTED]
CSeq: 102 INVITE
Max-Forwards: 70
Contact: Anonymous <sip:[EMAIL PROTECTED]: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:[EMAIL PROTECTED]: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:[EMAIL PROTECTED]>;tag=8c07328919ade13ao1 sip:[EMAIL PROTECTED]
To: <sip:[EMAIL PROTECTED]:5060>
Call-ID: [EMAIL PROTECTED]
CSeq: 102 INVITE
Max-Forwards: 69
Contact: Anonymous <sip:[EMAIL PROTECTED]: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:[EMAIL PROTECTED]>;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:[EMAIL PROTECTED] Jun 30 08:18:33 voip02 /usr/sbin/openser[4684]: DEBUG:uac:replace_from: replacement uri is [sip:[EMAIL PROTECTED]

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
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to