[SR-Users] Self challenged packets

Bastian Triller bastian.triller at gmail.com
Sat Sep 17 19:21:24 CEST 2016

Add #!define WITH_IPAUTH to your script and the server's IP address to the
address table and restart Kamailio.

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

On Sat, Sep 17, 2016, 18:09 Torsten Hantzsche <thantzsche at petitenet.de>

> Hi,
> while playing with the script from
> http://kb.asipto.com/kamailio:presence:k43-blf
> and "kamailio 4.4.3 (x86_64/freebsd) 5a2195" I could not see any NOTIFY
> packet
> going out to the subscribed watcher.
> "tcpdump -i lo0" shows self injected PUBLISH packets challenged with
> "407 Proxy Authentication Required" and there they got stuck.
> The PUBLISH packets are sent on lo0 from my network address to the same
> network
> address (here to The proxy challenge is also sent
> from
> to
> An xlog entry with the variable "$Ri" in route REQUEST shows
> too.
> Since these packets are only seen on lo0, should "$Ri" not show
> After disabling the WITH_AUTH variable, the watcher is getting its
> Now I wonder under which circumstances this script is supposed to function
> correctly without changes in the AUTH route?
> By the way, I had the same problem with the provided script of the
> msilo module (
> http://kamailio.org/docs/modules/4.4.x/modules/msilo.html#idp42867388)
> which too only works if there is no "auth_challenge" in the way.
> Could somebody with more insight in Kamailio internals give some hints
> on this, please? How can it get solved in an elegant way?
> Thanks,
> Torsten
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160917/5410bedd/attachment.html>

More information about the sr-users mailing list