[SR-Users] Modify IP address in SDP
Austin Einter
austin.einter at gmail.com
Wed Jan 23 07:09:52 CET 2013
Looks we do not have any option to modify a FQDN that comes in 200 OK of
INVITE's SDP.
One need to modify the source code to achieve this,.., ya not a good idea
though....
Austin
On Wed, Jan 23, 2013 at 10:18 AM, Austin Einter <austin.einter at gmail.com>wrote:
> Dear Ole
> I am not finding any example how to do it (changing a fqdn with ipaddress
> in sdp).
> Using sdp_get i can get the sdp.
> But how i can use transformation function pls let me know.
>
> The sdpops link does not give much info how to modify any line.
>
> Best regards
> austin
>
>
> On Tue, Jan 22, 2013 at 6:41 PM, Olle E Johanson <olle at ozone.webway.se>wrote:
>
>>
>> 22 jan 2013 kl. 14:07 skrev Austin Einter <austin.einter at gmail.com>:
>>
>> > Dear All
>> > When 200 OK to INVITE passes through Kamailio proxy , I want to change
>> the IP address in SDP to a specific IP address.
>> >
>> > Can this be done by just modifying configuration files or do I need to
>> modify in source code.
>> >
>> > In case I need to modify source code, which files I need to look at.
>> >
>> > Kindly provide pointers for said problem.
>>
>> You can modify ANYTHING in a text based attachment like an SDP in the
>> configuration script.
>> To make it a bit simple for you, we have two modules that work with
>> specific parts:
>>
>> - SDPops http://kamailio.org/docs/modules/devel/modules/sdpops.html
>> - MANGLER http://kamailio.org/docs/modules/devel/modules/mangler.html
>>
>> In the Mangler module there's a function called "sdp_mangle_ip()" that
>> will make you happy.
>>
>> You can always copy the whole SDP into an AVP with SDP_GET, use the
>> transformations to read one line at a time and modify it.
>>
>> /O
>>
>> ----
>> Update yourself to Kamailio 4 and new things in SIP -
>> http://edvina.net/training/sip-update-2013/
>> New training class - three days in Stockholm - march 6-8! Register today!
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130123/84b66649/attachment.htm>
More information about the sr-users
mailing list