<p dir="ltr">Add #!define WITH_IPAUTH to your script and the server's IP address to the address table and restart Kamailio.</p>
<p dir="ltr">Packets from your local address to your local address are routed through your loopback interface. lo0 looks like some BSD, so you can verify that in the routing table with netstat -rn</p>
<br><div class="gmail_quote"><div dir="ltr">On Sat, Sep 17, 2016, 18:09 Torsten Hantzsche <<a href="mailto:thantzsche@petitenet.de">thantzsche@petitenet.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<br>
while playing with the script from <a href="http://kb.asipto.com/kamailio:presence:k43-blf" rel="noreferrer" target="_blank">http://kb.asipto.com/kamailio:presence:k43-blf</a><br>
and "kamailio 4.4.3 (x86_64/freebsd) 5a2195" I could not see any NOTIFY packet<br>
going out to the subscribed watcher.<br>
<br>
"tcpdump -i lo0" shows self injected PUBLISH packets challenged with<br>
"407 Proxy Authentication Required" and there they got stuck.<br>
The PUBLISH packets are sent on lo0 from my network address to the same network<br>
address (here 10.0.0.106 to 10.0.0.106). The proxy challenge is also sent from<br>
10.0.0.106 to 10.0.0.106.<br>
<br>
An xlog entry with the variable "$Ri" in route REQUEST shows 10.0.0.106 too.<br>
Since these packets are only seen on lo0, should "$Ri" not show 127.0.0.1?<br>
<br>
After disabling the WITH_AUTH variable, the watcher is getting its NOTIFY's.<br>
<br>
Now I wonder under which circumstances this script is supposed to function<br>
correctly without changes in the AUTH route?<br>
<br>
By the way, I had the same problem with the provided script of the<br>
msilo module (<a href="http://kamailio.org/docs/modules/4.4.x/modules/msilo.html#idp42867388" rel="noreferrer" target="_blank">http://kamailio.org/docs/modules/4.4.x/modules/msilo.html#idp42867388</a>)<br>
which too only works if there is no "auth_challenge" in the way.<br>
<br>
Could somebody with more insight in Kamailio internals give some hints<br>
on this, please? How can it get solved in an elegant way?<br>
<br>
<br>
Thanks,<br>
Torsten<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>