Convert SDP Connection IP

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Convert SDP Connection IP

Sunil P
Hi All,

I need to make Opensips AS to act as IBCF, which is going to convert the V6 SDP to V4 SDP and Vice Versa.Please suggest me in which functions I need to change
to convert SDP Connection Parameter.

Thanks and Regards,
Sunil


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Convert SDP Connection IP

Bogdan-Andrei Iancu-2
Hi Sunil,

See the fix_nated_sdp() function in the nathelper module:
    http://www.opensips.org/html/docs/modules/1.11.x/nathelper.html#id293864

Use the second parameter to push your own IP address into SDP.

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 21.10.2014 07:59, Sunil P wrote:
Hi All,

I need to make Opensips AS to act as IBCF, which is going to convert the V6 SDP to V4 SDP and Vice Versa.Please suggest me in which functions I need to change
to convert SDP Connection Parameter.

Thanks and Regards,
Sunil



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Convert SDP Connection IP

Sunil P
In reply to this post by Sunil P
Hi Bogdan,

            Thanks for your reply.Please let me know if there is anyway to
know whether SDP Connection parameter(c) contains IPV4 or IPV6 address.

Thanks and Regards,
Sunil



Date: Tue, 21 Oct 2014 21:24:29 +0300

From: Bogdan-Andrei Iancu <[hidden email]>
Subject: Re: [OpenSIPS-Users] Convert SDP Connection IP
To: OpenSIPS users mailling list <[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"

Hi Sunil,

See the fix_nated_sdp() function in the nathelper module:
http://www.opensips.org/html/docs/modules/1.11.x/nathelper.html#id293864

Use the second parameter to push your own IP address into SDP.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 21.10.2014 07:59, Sunil P wrote:
>
>     Hi All,
>
>     I need to make Opensips AS to act as IBCF, which is going to
>     convert the V6 SDP to V4 SDP and Vice Versa.Please suggest me in
>     which functions I need to change
>     to convert SDP Connection Parameter.
>
>     Thanks and Regards,
>     Sunil

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Convert SDP Connection IP

Bogdan-Andrei Iancu-2
Hi Sunil,

You can use the sdp.line transformation to get the c line :
    http://www.opensips.org/Documentation/Script-Tran-1-11#toc70

Form there you can use a regexp to test the IP
    http://www.opensips.org/Documentation/Script-Tran-1-11#toc71

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 27.10.2014 08:05, Sunil P wrote:
Hi Bogdan,

            Thanks for your reply.Please let me know if there is anyway to
know whether SDP Connection parameter(c) contains IPV4 or IPV6 address.

Thanks and Regards,
Sunil



Date: Tue, 21 Oct 2014 21:24:29 +0300

From: Bogdan-Andrei Iancu <[hidden email]>
Subject: Re: [OpenSIPS-Users] Convert SDP Connection IP
To: OpenSIPS users mailling list <[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"

Hi Sunil,

See the fix_nated_sdp() function in the nathelper module:
http://www.opensips.org/html/docs/modules/1.11.x/nathelper.html#id293864

Use the second parameter to push your own IP address into SDP.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 21.10.2014 07:59, Sunil P wrote:
>
>     Hi All,
>
>     I need to make Opensips AS to act as IBCF, which is going to
>     convert the V6 SDP to V4 SDP and Vice Versa.Please suggest me in
>     which functions I need to change
>     to convert SDP Connection Parameter.
>
>     Thanks and Regards,
>     Sunil


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Convert SDP Connection IP

mojtaba esfandiari
Hello,
Is there anyway to change audio and video port in sdp? fix_nated_sdp function just changed ip in sdp?
With Regards.Mojtaba
Reply | Threaded
Open this post in threaded view
|

Re: Convert SDP Connection IP

mojtaba esfandiari
Hi all
I solved it. I use regular expression.
:)