[OpenSIPS-Users] Pushing data into SDP

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Aug 12 20:47:16 CEST 2008


Hi David,

Have you try to use the subst? Any problem with it?

Regards,
Bogdan


David Villasmil wrote:
> So, let's sy this is my invite SDP's and/or reply from/to AUC...
>
> m=audio 49170 RTP/AVP 0 8 97
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:97 iLBC/8000
> m=video 51372 RTP/AVP 31 32
> a=rtpmap:31 H261/90000
> a=rtpmap:32 MPV/90000
>
>
> then:
>
>
> if(has_body("application/sdp"))
> {
>    if ( subst_body('/^m=audio(.*) /m=audio 49170 RTP/AVP 0 8
> 97\r\na=rtcp:53020 IN IP4 rtp-proxy.address.com\r\n ') ) {
>        xlog("INFO","SDP PUSHED\n");
>    };
> }
>
>
> m=audio 49170 RTP/AVP 0 8 97
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:97 iLBC/8000
> m=video 51372 RTP/AVP 31 32
> a=rtpmap:31 H261/90000
> a=rtpmap:32 MPV/90000
>
>
> with
>
> m=audio 49170 RTP/AVP 0 8 97
> a=rtcp:53020 IN IP4 rtp-proxy.address.com
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:97 iLBC/8000
> m=video 51372 RTP/AVP 31 32
> a=rtpmap:31 H261/90000
> a=rtpmap:32 MPV/90000
>
>
>
>
> correct?
>
> On Mon, Aug 11, 2008 at 6:32 PM, Alex Balashov
> <abalashov at evaristesys.com> wrote:
>   
>> David Villasmil wrote:
>>
>>     
>>> Is it possible?
>>> Can I push a string into the SDP?
>>>       
>> Yep, the textops module should let you manipulate any SIP message body.
>>
>> --
>> Alex Balashov
>> Evariste Systems
>> Web    : http://www.evaristesys.com/
>> Tel    : (+1) (678) 954-0670
>> Direct : (+1) (678) 954-0671
>> Mobile : (+1) (706) 338-8599
>>
>>     
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list