Re: [OpenSIPS-Users] Pre-load different routes after DNS NAPTR/SRV lookup

2014-02-18 Thread Bogdan-Andrei Iancu
Hello Leon, The branch route is specially design to map over the SIP branch concept - still you are looking for something lower (almost network level) - in branch route, the destination is still a SIP URI, you do not know yet the IP behind it; the DNS lookup is done after branch route. If w

Re: [OpenSIPS-Users] Pre-load different routes after DNS NAPTR/SRV lookup

2014-02-17 Thread Bogdan-Andrei Iancu
Hello, The DNS lookups and the serial forking is transparently done for the script. What I mean is, from script level, you will not see what "foo.bar.com" is resolved to (as IPs); neither when the next IP is tried. There is no type of route to give you access to the requests at that time in

Re: [OpenSIPS-Users] Pre-load different routes after DNS NAPTR/SRV lookup

2014-02-17 Thread Leon de Rooij
Hi Bogdan, Thanks for your answer, the automatic failover is clear, but I'd like to achieve something extra, namely: * I set the RURI domain-part to foo.bar.com * After t_relay() OpenSIPS resolves (NAPTR) it to _sip._udp.bar.com and after that (SRV) to gw1.bar.com (prio 1) and after that (A) to 1

Re: [OpenSIPS-Users] Pre-load different routes after DNS NAPTR/SRV lookup

2014-02-17 Thread Bogdan-Andrei Iancu
Hello, OpenSIPS automatically does DNS-based failover (using the NATPR, SRV and A records for the domain) - there is not need to do it manually from script. Using the same principal (serial forking), transparent for you, OpenSIPS TM module will do it for you. See the "disable_dns_failover" p

[OpenSIPS-Users] Pre-load different routes after DNS NAPTR/SRV lookup

2014-02-14 Thread Leon de Rooij
Hi all, I'd like to route a call to a domain, perform NAPTR,SRV,A lookups and in each serial failure_route, use the resolved destination IP to set a custom pre-loaded route. I've been trying to fix it like this: * put fqdn in ruri * t_on_failure("1") * t_on_branch("1") * t_relay() Should I then