[OpenSIPS-Users] Using Dispatcher with destination as a host name

John Quick john.quick at smartvox.co.uk
Thu May 9 19:19:41 CEST 2013


Sorry. My mistake. The dual INVITE was reported in ngrep because this server
has bonded eth ports, not because of anything in OpenSIPS.

John

-----Original Message-----
From: Bogdan-Andrei Iancu [mailto:bogdan at opensips.org] 
Sent: 09 May 2013 15:06
To: john.quick at smartvox.co.uk; OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Using Dispatcher with destination as a host
name

Hello John,

So, after the  ds_select_domain("2", "0");  , when doing first relay(); ,
you see 2 INVITEs going out ? Are the 2 INVITEs the same (check the branch
param for the top most VIA).

Also, add an xlog() just before the relay() printing $ru/$du and $branch[*]
- to see all destinations.

Regards,

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


On 05/07/2013 11:57 AM, John Quick wrote:
> I am using the Dispatcher module on OpenSIPS version 1.8.2-notls.
> The destination field for 'Set 2' is sip:sipipgw.magrathea.net (which 
> resolves in DNS to two different IP addresses).
> The code in my failure_route when a call has failed to reach a 'Set 1'
> destination, is essentially like this:
> ds_select_domain("2", "0");
> route(15);
>
> ...and route 15 contains some lines like this:
> t_on_failure("3");
> t_relay();
>
> After executing the code outlined above, a SIP trace shows that 
> OpenSIPS sends two identical INVITE requests to one magrathea address. 
> The two INVITE's are sent almost simultaneously. Is this an error? I 
> would expect to see one INVITE to one address or maybe one to each 
> address (parallel forking), but not two to one address.
>
> John Quick
> Smartvox Limited
> Web: www.smartvox.co.uk
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>





More information about the Users mailing list