[OpenSIPS-Users] Set a specific signalling IP to trunk

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Mar 19 16:20:10 CET 2013


Hi Khaled,

I suggest keeping the IP of the outbound interface (the $avp(termip)) in 
the gateways attrs - those values are automatically loaded for script 
usage when the GW is selected, so you can do the setting for $fs .

Look at the "attrs" column in the dr_gateways table and at the gw_attrs 
param in dr module.

Regards,

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


On 03/15/2013 06:28 PM, M.Khaled W Chehab wrote:
>
> Dears,
>
> While testing and reading I find out how I can change the outgoing 
> signaling IP using
>
> if (!has_totag() &&is_method("INVITE")) {
>
> $var(a) = "udp:"+$avp(termip)+":5060";
>
>                      $fs = $var(a) ;
>
> ....
>
> But that will change the  signaling realm for  all outgoing calls for 
> all  trunks  ,how can I change the outgoing signaling realm for a 
> specified trunk which located in my dr_gateways
>
> Regards
>
> Khaled Chehab
>
> Senior NGN Engineer
>
> Description: icucall
>
> Operations Office - Lebanon
>
> Office    : +961 1 515155 ext 300
>
> Mobile  : +961 3 045212
>
> E-mail    : kchehab at icucall.com
>
> MSN ID :khalidchehab at hotmail.com
>
> Skype    : k_chehab
>
> Web Site: http://www.icucall.com
>
> http://www.allohi.com
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130319/0a4fe65e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 5316 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20130319/0a4fe65e/attachment.png>


More information about the Users mailing list