[OpenSIPS-Users] Problems with goes_to_gw Drouting

Sven Schulz svens at psu.edu
Fri Oct 29 14:42:44 CEST 2010


HI Bogden,

I thought this param was enabled by default? But I set it anyways and it
doesn't make a difference.


On 10/23/10 6:57 AM, "Bogdan-Andrei Iancu" <bogdan at voice-system.ro> wrote:

> Hi Steven,
> 
> do you have enabled the "force_dns" param:
> http://www.opensips.org/html/docs/modules/1.6.x/drouting.html#id294469
> ?
> 
> in latest SVN 1.6.3, in debug mode, you should see some messages (at
> startup) like :
> first gw ip addr [xxxxx]
> additional gw ip addr [xxxx]
> 
> indicating the DNS resolving of GWs defined by names.
> 
> Regards,
> Bogdan
> 
> Sven Schulz wrote:
>> Using opensips 1.6.3 SVN # 7282
>> 
>> 
>> I noticed that if I have a gateway defined in the dr_gateways tables
>> as a hostname, the goes_to_gw function never works (it gets skipped).
>> But if I change that hostname to an IP address, the function works
>> properly. Is this how its supposed to function or is it a bug?
>> 
>> do_routing()
>> if (goes_to_gw("2")) {
>> xlog ("the GW type is 2");
>> setflag(10);
>> route(4);
>> exit;
>> }
>> 
>> For example, the above code only works if the gateway is defined as
>> ³10.1.1.5² not ³test.something.com². The gw type field is always set
>> to ³2².
>> 
>> 
>> Sven Schulz
>> Penn State University
>> Telecommunications and Network Services
>> 814.865.6116
>> sip:sven at psu.edu
>> 
>> ------------------------------------------------------------------------
>> 
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>   
> 




More information about the Users mailing list