[Users] Have openser make changes based on message header

Daniel-Constantin Mierla daniel at voice-system.ro
Sat Oct 8 14:59:18 CEST 2005


On 10/07/05 21:05, Brandon Price wrote:

> 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?

you cannot use avpops to check the value of the display name right now, 
maybe in the future will worth to add a new pseudo variable for it. At 
this moment, you can use search() function of the textops module to 
detect anonymous in From header.

Cheers,
Daniel

>
>
> 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
>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>




More information about the Users mailing list