Hello List,
i am nearly finishing my multihomed config (public ip/internal ip) with kamailio. For incoming calls i want to use the uac module too. Then i want to locate an permanet entry and dispatch it to ivr system behind kamailio.
i tried something like this: if (lookup("location") && (dst_ip==222.222.222.222)) { if(ds_select_domain("1", "4")) {
Okay for registerd UAC this works perfect - but if made an call to the uac registerd number i got as $Ri the 172.20.100.74 - and thats is the private ip address.
Why that???
Any hints to check "if its internal or external" call???
Hello,
On 4/17/12 11:44 AM, Karsten Horsmann wrote:
Hello List,
i am nearly finishing my multihomed config (public ip/internal ip) with kamailio. For incoming calls i want to use the uac module too. Then i want to locate an permanet entry and dispatch it to ivr system behind kamailio.
i tried something like this: if (lookup("location")&& (dst_ip==222.222.222.222)) { if(ds_select_domain("1", "4")) {
Okay for registerd UAC this works perfect - but if made an call to the uac registerd number i got as $Ri the 172.20.100.74 - and thats is the private ip address.
Why that???
this is the IP of the network interface the sip message was received on. you can do:
ngrep -d any -at -W byline port 5060
to see where the packages are sent/received.
Any hints to check "if its internal or external" call???
Using incoming interface is a common way.
Cheers, Daniel
Hello Daniel,
this was an linux routing issue. Cos all things routed outbound via private ipaddressed gateway the kernel still used the private ip address.
I solved that with default gw public ip address.
Hello,
On 4/18/12 10:15 AM, Karsten Horsmann wrote:
Hello Daniel,
this was an linux routing issue. Cos all things routed outbound via private ipaddressed gateway the kernel still used the private ip address.
I solved that with default gw public ip address.
ok, good it was fixed and thanks for replying with the description, as others looking for same issue may have that configuration as well.
Cheers, Daniel