this was from a regular route[] block. I ended up finding an old thread which pointed me in the right direction.
I am currently using this to retrieve the destination IP POST dispatcher lookup: $var(destIP) = $(ru{s.select,1,:}{s.select,1,@}); It seems to be working well. Anything I should be aware of while using this technique? thanks. On Mon, Jan 11, 2010 at 11:56 AM, Alex Balashov <abalas...@evaristesys.com> wrote: > Branch route? > > On 01/11/2010 11:50 AM, Geoffrey Mina wrote: > >> What pseudo variable would i check after running ds_next_dst() to >> check the IP we are about to forward the INVITE to? >> >> Basically I want to have a check for $si == [something] to ensure I am >> not about to send the INVITE to the same UI which just requested it. >> >> While I have your attention, I may as well see if anyone has a better >> solution for what I am trying to accomplish: >> >> I am doing this because asterisk can't handle a hairpin scenario and I >> need to generate two distinct calls in my network, so I figure i'll >> just forward the request to another server in the network to deal with >> this. >> >> INVITE from PSTN --> Kamailio --> Asterisk#1 [Asterisk#1 needs to >> create a new session, but stay on-net] --> INVITE from Asterisk#1 to >> Kamailio --> [Dispatcher] --> INVITE from Kamailio to Asterisk#2 >> >> This would basically create 3 legs of the call, which is what I want >> >> PSTN --> Asterisk#1 --> Asterisk#2 >> >> I would prefer if Asterisk#1 could just INVITE to LocalHost, but that >> doesn't seem to be allowed. Not sure if that's a limitation of SIP or >> Asterisk... >> >> Thanks! >> >> _______________________________________________ >> Kamailio (OpenSER) - Users mailing list >> Users@lists.kamailio.org >> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users >> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users > > > -- > Alex Balashov - Principal > Evariste Systems > Web : http://www.evaristesys.com/ > Tel : (+1) (678) 954-0670 > Direct : (+1) (678) 954-0671 > > _______________________________________________ > Kamailio (OpenSER) - Users mailing list > Users@lists.kamailio.org > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users > http://lists.openser-project.org/cgi-bin/mailman/listinfo/users > _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users