[OpenSIPS-Users] Problems with goes_to_gw Drouting

Sven Schulz svens at psu.edu
Tue Oct 19 19:48:52 CEST 2010


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20101019/9576354e/attachment-0001.htm 


More information about the Users mailing list