[Kamailio-Users] Checking the destination IP after dispatcher

Geoffrey Mina geoffreymina at gmail.com
Mon Jan 11 17:50:03 CET 2010


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!




More information about the sr-users mailing list