[Spce-user] How to Fix the RTP Engine SDP Rewriting direction.

Mahmoud Ramadan Ali cisco.and.more.blog at gmail.com
Tue Dec 16 10:09:23 EST 2014


Hi Dears,
I'm working on integrating the rtpengine to work with Kamailio as RTP proxy
and i have successfully configured the rtpengine in multi home mode to
proxy the media and rewrite the SDP message whenever it passes trough the
Kamailio internal interface to the external interface and vice versa using
this command.

root at debian:/usr/local/etc/kamailio# rtpengine
--interface=Kamailio-Internal/192.168.100.1 --interface=Kamailio-External/
192.168.50.1 --listen-ng=127.0.0.1:22222
--pidfile=/var/run/ngcp-rtpengine-daemon.pid

Also i have configured the "i" and "e" flags in the route[NATMANAGE] to
take care of the SDP rewriting direction the same way it worked before with
my rtpproxy module configuration.

But the issue now is that whenever i make a call from the external to the
internal the rtpengine can NOT detect the right direction as colored in red
below so my question now is : How to set the direction of the rtpengine to
designate that the interface 192.168.50.1 is the external and 192.168.100.1
is the internal ?

Dec 16 09:28:09 debian rtpengine[4714]: Got valid command from
127.0.0.1:50639: offer - { "sdp": "v=0#015#012o=- 13063213690566395 1 IN
IP4 192.168.50.2#015#012s=X-Lite release 4.7.1 stamp 74247#015#012c=IN IP4
192.168.50.2#015#012t=0 0#015#012m=audio 56078 RTP/AVP 125 100 0 9 8
101#015#012a=rtpmap:125 opus/48000/2#015#012a=fmtp:125
useinbandfec=1#015#012a=rtpmap:100 speex/16000#015#012a=rtpmap:101
telephone-event/8000#015#012a=fmtp:101 0-15#015#012a=sendrecv#015#012",
"direction": [ "internal", "external" ], "flags": [ "asymmetric",
"trust-address", "symmetric" ], "replace": [ "session-connection", "orig ...

Best Regards and Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20141216/7da5ecff/attachment.html>


More information about the Spce-user mailing list