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@ozone.webway.se> wrote:

22 jan 2013 kl. 14:07 skrev Austin Einter <austin.einter@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@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users