[Users] SDP Invite message modification.

Bogdan-Andrei Iancu bogdan at voice-system.ro
Sat May 13 12:05:42 CEST 2006


Hi Shane,

these functions works over the message body (SDP in your case). the 
functions without the "_body" suffix works over the the headers.

I guess you find all you need here:
    http://openser.org/docs/modules/1.1.x/textops.html

regards,
bogdan


Shane Burrell wrote:

>Does it also work with SIP headers?  And the SDP section?
>
>-----Original Message-----
>From: Bogdan-Andrei Iancu [mailto:bogdan at voice-system.ro] 
>Sent: Friday, May 12, 2006 4:43 AM
>To: Shane Burrell
>Cc: users at openser.org
>Subject: Re: [Users] SDP Invite message modification.
>
>Hi Shane,
>
>you have the script functions (from textops) like 
>(search|replace|subst)_body
>    http://openser.org/docs/modules/1.1.x/textops.html
>
>regards,
>bogdan
>
>Shane Burrell wrote:
>
>  
>
>>I need to proxy and modify the Invite SDP.  Can I do this from the cfg 
>>or do I need to look at a module like nathelper to modify the SDP? 
>>Below is an example
>>
>> 
>>
>>Inbound to openser
>>
>>---Non-Working SDP---
>>
>>v=0
>>
>>o=nt01-1w-lax 1234 1146761158 IN IP4 152.92.17.27 s=sip call t=0 0 
>>m=audio 38936 RTP/AVP 0 18 101 c=IN IP4 152.92.17.27
>>
>>a=rtpmap:101 telephone-event/8000
>>
>>a=fmtp:101 0-15
>>
>> 
>>
>> 
>>
>> 
>>
>>converted to - >
>>
>> 
>>
>>Outbound to my gateway
>>
>>v=0
>>
>>o=ast12345sg 1220177409 1220177409 IN IP4 152.92.17.27
>>
>>s=-
>>
>>c=IN IP4 152.92.17.27
>>
>>t=0 0
>>
>>a=sendrecv
>>
>>m=audio 18006 RTP/AVP 0 18 18
>>
>>a=fmtp:18 annexb=no
>>
>>a=fmtp:18 annexb=yes
>>
>> 
>>
>>TIA,
>>
>> 
>>
>>Shane
>>
>> 
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Users mailing list
>>Users at openser.org
>>http://openser.org/cgi-bin/mailman/listinfo/users
>> 
>>
>>    
>>
>
>  
>





More information about the Users mailing list