Hi Again
Ok, something odd happing here. Notifies have suddenly started arriving on the phone. Maybe something has timed out and started working. Going to reset everything and see what happens.
So looks like the core issue might be the AUTH route challenging locally generated PUBLISH messages.
Best regards Mark
On 11 Mar 2018, at 10:52, Mark Boyce mark@darkorigins.com wrote:
Hi Aqs;
Checking with full debug on I can see that the publish appears to be created. udp_rcv gets the publish (source IP is servers public IP 5.6.7.8:5060). From what I can see the AUTH route is sending a proxy auth challenge.
5(5525) received on udp socket: (106/100/1017) [[PUBLISH sip:20@mykamailio.com sip:20@mykamailio.com SIP/2.0 0D 0A Via: SIP/2.0/UDP 5.6.7.8;branch=z9hG4bK0ae2.85bf70]]
5(5525) received on udp socket: (106/100/526) [[SIP/2.0 407 Proxy Authentication Required 0D 0A Via: SIP/2.0/UDP 5.6.7.8;branch=z9hG4bK0ae2.85bf70510]]
I think it’s getting caught here;
route[AUTH] {
if (is_method("REGISTER") || from_uri==myself) { # authenticate requests if (!auth_check("$fd", "subscriber", "1")) { auth_challenge("$fd", "0"); exit; }
So that looks like the first issue. If I patch AUTH route to allow through anything with the servers source IP (A bit dangerous as someone could faking IP source on UDP. is there a better way?) the proxy_challenge no longer gets sent and I see what I think is it trying to send a notify to the watchers phone;
send_notify_request(): NOTIFY sip:21@mykamailio.com sip:21@mykamailio.com via sip:1.2.3.4:5065 sip:1.2.3.4:5065 on behalf of sip:20@mykamailio.com sip:20@mykamailio.com for event dialog : 2862418150@10.1.3.84 mailto:2862418150@10.1.3.84
However it doesn’t come out of the ethernet port (sngrep) and I can’t see any obvious failure. Although that may be me as I’m still trying to follow debug logs!
Given the line above is there a way to trace it?
Thanks!
Best regards Mark _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users