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    : kche...@icucall.com

MSN ID :khalidche...@hotmail.com

Skype    : k_chehab

Web Site: http://www.icucall.com

                     http://www.allohi.com

 

_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to