[Users] Have openser make changes based on message header

Brandon Price brandon.price at hostrocket.com
Fri Oct 7 20:05:51 CEST 2005


First I want to thank everyone thats helped me. Here is what I am  
working on today.

I have a set of sipura 2002, and linkys pap2 sip ata's. When you dial  
*67 (cid block) it tells the adapter to return a dialtone and modify  
the sip message header in such a way the SIP Display info is changed  
to "Anonymous". This doesn't set the privacy=full flag in the rpid  
and thus the cid is passed to the terminating end. I have tried  
having openser perform an action based on if from_uri =~ Anonymous  
but that apparently only matches to the SIP from address: not, SIP  
Display info. Below I have a sample bit of sip messaging....
My question is, is there any way to have openser look inside the  
packet and do something based on "SIP Display info"? Can I do this w / 
AVP's have it pull that var form the sip messaging so I can work with  
it later? Or heck does anyone have a solution to make the ata's pass  
the privacy=full flag?


Message Header
         Via: SIP/2.0/UDP 216.120.224.163:5060;branch=z9hG4bK-f4bd2420
         From: Anonymous <sip: 
15184782406 at ser1.manhattan.vtnoc.net>;tag=d5d92a6937d9f838o0
             SIP Display info: Anonymous
             SIP from address: sip:15184782406 at ser1.manhattan.vtnoc.net
             SIP tag: d5d92a6937d9f838o0
         To: <sip:13143212222 at ser1.manhattan.vtnoc.net>
             SIP to address: sip:13143212222 at ser1.manhattan.vtnoc.net
         Call-ID: bae3e6fd-a92244b4 at localhost
         CSeq: 101 INVITE
         Max-Forwards: 70





More information about the sr-users mailing list