The phone is asking FS to authenticate prior then accepting a NOTIFY from it.<br>The authentication of notify's from spa endpoints work (afaik) only with Linksys SPA9000 PBX , and FS doesn't have the code for that for obvious reasons.<br>
If you have SPA9000 maybe you can collect SIP traces.<br><br>Ognjen<br><br><br><br><br><br><div class="gmail_quote">On Mon, Jan 25, 2010 at 1:29 AM, Mark Campbell-Smith <span dir="ltr"><<a href="mailto:mcampbellsmith@gmail.com">mcampbellsmith@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Ognjen,<br>
<br>
Thanks for the tip on the resync under the EXT tab. It now works<br>
using mod_event_socket and the following:<br>
<div class="im"><br>
sendevent NOTIFY<br>
profile: internal<br>
event-string: resync<br>
user: 1000<br>
host: 192.168.1.121<br>
content-type: application/simple-message-summary<br>
<br>
</div>However, if AUTH is required, why does FS send the wrong information to the SPA?<br>
<div><div></div><div class="h5"><br>
On Mon, Jan 25, 2010 at 11:15 AM, Ognjen Seslija <<a href="mailto:oseslija@gmail.com">oseslija@gmail.com</a>> wrote:<br>
> You should not authenticate those NOTIFYs (this will work only with SPA9000<br>
> afaik). The option to change for this is in EXT tabs:<br>
><br>
> Auth Resync-Reboot: No<br>
><br>
> Also, FSs code will do a reboot of a phone, not resync (it sends reboot_now<br>
> event). For that to work a patch is required.<br>
><br>
> I've just tried to reboot my 942 (rev 16506) and it definitely works.<br>
><br>
> Regards,<br>
> Ognjen<br>
><br>
><br>
> On Mon, Jan 25, 2010 at 12:58 AM, Mark Campbell-Smith<br>
> <<a href="mailto:mcampbellsmith@gmail.com">mcampbellsmith@gmail.com</a>> wrote:<br>
>><br>
>> Thanks Brian.. this still does not work. Maybe I need to open a Jira?<br>
>> Notice the username in the authorization field. It should be 1000.<br>
>><br>
>> Cheers<br>
>> Mark<br>
>><br>
>> freeswitch@internal> sofia status profile internal user <a href="mailto:1000@192.168.1.120">1000@192.168.1.120</a><br>
>><br>
>> Registrations:<br>
>><br>
>> =================================================================================================<br>
>> Call-ID: <a href="mailto:bd783b73-66877627@192.168.1.121">bd783b73-66877627@192.168.1.121</a><br>
>> User: <a href="mailto:1000@192.168.1.120">1000@192.168.1.120</a><br>
>> Contact: 1000 <<a href="http://sip:1000@192.168.1.121:5060" target="_blank">sip:1000@192.168.1.121:5060</a>><br>
>> Agent: Linksys/PAP2T-5.1.6(LS)<br>
>> Status: Registered(UDP)(unknown) EXP(2010-01-25 11:25:05)<br>
>> Host: freeswitch<br>
>> IP: 192.168.1.121<br>
>> Port: 5060<br>
>> Auth-User: 1000<br>
>> Auth-Realm: 192.168.1.120<br>
>> MWI-Account: <a href="mailto:1000@192.168.1.120">1000@192.168.1.120</a><br>
>><br>
>><br>
>> =================================================================================================<br>
>><br>
>> freeswitch@internal> sofia profile internal flush_inbound_reg<br>
>> <a href="mailto:bd783b73-66877627@192.168.1.121">bd783b73-66877627@192.168.1.121</a> reboot<br>
>> +OK rebooting all registrations matching specified call_id<br>
>><br>
>> freeswitch@internal> send 804 bytes to udp/[192.168.1.121]:5060 at<br>
>> 23:55:49.012627:<br>
>> ------------------------------------------------------------------------<br>
>> NOTIFY <a href="http://sip:1000@192.168.1.121:5060" target="_blank">sip:1000@192.168.1.121:5060</a> SIP/2.0<br>
>> Via: SIP/2.0/UDP 192.168.1.120;rport;branch=z9hG4bK1DKgFmj8QDp4g<br>
>> Max-Forwards: 70<br>
>> From: <<a href="mailto:sip%3A1000@192.168.1.120">sip:1000@192.168.1.120</a>>;tag=Z440t7e61ND0g<br>
>> To: <<a href="mailto:sip%3A1000@192.168.1.120">sip:1000@192.168.1.120</a>><br>
>> Call-ID: d65f2a5a-83e6-122d-7ba9-00e04c0312e9<br>
>> CSeq: 126070338 NOTIFY<br>
>> Contact: <<a href="http://sip:mod_sofia@192.168.1.120:5060" target="_blank">sip:mod_sofia@192.168.1.120:5060</a>><br>
>> User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-16256<br>
>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,<br>
>> REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
>> Supported: timer, precondition, path, replaces<br>
>> Event: reboot_now<br>
>> Allow-Events: talk, presence, dialog, line-seize, call-info, sla,<br>
>> include-session-description, presence.winfo, message-summary, refer<br>
>> Subscription-State: terminated;reason=timeout<br>
>> Content-Type: application/simple-message-summary<br>
>> Content-Length: 0<br>
>><br>
>> ------------------------------------------------------------------------<br>
>> recv 407 bytes from udp/[192.168.1.121]:5060 at 23:55:49.045267:<br>
>> ------------------------------------------------------------------------<br>
>> SIP/2.0 401 Unauthorized<br>
>> To: <<a href="mailto:sip%3A1000@192.168.1.120">sip:1000@192.168.1.120</a>>;tag=3300b5853719f35di0<br>
>> From: <<a href="mailto:sip%3A1000@192.168.1.120">sip:1000@192.168.1.120</a>>;tag=Z440t7e61ND0g<br>
>> Call-ID: d65f2a5a-83e6-122d-7ba9-00e04c0312e9<br>
>> CSeq: 126070338 NOTIFY<br>
>> Via: SIP/2.0/UDP 192.168.1.120;branch=z9hG4bK1DKgFmj8QDp4g<br>
>> Server: Linksys/PAP2T-5.1.6(LS)<br>
>> WWW-Authenticate: Digest realm="192.168.1.120", nonce="8e54805b",<br>
>> qop="auth", algorithm=md5<br>
>> Content-Length: 0<br>
>><br>
>> ------------------------------------------------------------------------<br>
>> send 1056 bytes to udp/[192.168.1.121]:5060 at 23:55:49.060073:<br>
>> ------------------------------------------------------------------------<br>
>> NOTIFY <a href="http://sip:1000@192.168.1.121:5060" target="_blank">sip:1000@192.168.1.121:5060</a> SIP/2.0<br>
>> Via: SIP/2.0/UDP 192.168.1.120;rport;branch=z9hG4bK2pc9gF3BNpcQc<br>
>> Max-Forwards: 70<br>
>> From: <<a href="mailto:sip%3A1000@192.168.1.120">sip:1000@192.168.1.120</a>>;tag=Z440t7e61ND0g<br>
>> To: <<a href="mailto:sip%3A1000@192.168.1.120">sip:1000@192.168.1.120</a>><br>
>> Call-ID: d65f2a5a-83e6-122d-7ba9-00e04c0312e9<br>
>> CSeq: 126070339 NOTIFY<br>
>> Contact: <<a href="http://sip:mod_sofia@192.168.1.120:5060" target="_blank">sip:mod_sofia@192.168.1.120:5060</a>><br>
>> Expires: 3590<br>
>> User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-16256<br>
>> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,<br>
>> REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE<br>
>> Supported: timer, precondition, path, replaces<br>
>> Event: reboot_now<br>
>> Allow-Events: talk, presence, dialog, line-seize, call-info, sla,<br>
>> include-session-description, presence.winfo, message-summary, refer<br>
>> Subscription-State: terminated;reason=timeout<br>
>> Authorization: Digest username="1115633124", realm="192.168.1.120",<br>
>> nonce="8e54805b", cnonce="1mWxHoPmEi2pewDgTAMS6Q", algorithm=MD5,<br>
>> uri="<a href="http://sip:1000@192.168.1.121:5060" target="_blank">sip:1000@192.168.1.121:5060</a>",<br>
>> response="747b4d04544c84535dbbd987f2999ca7", qop=auth, nc=00000001<br>
>> Content-Type: application/simple-message-summary<br>
>> Content-Length: 0<br>
>><br>
>> ------------------------------------------------------------------------<br>
>> recv 407 bytes from udp/[192.168.1.121]:5060 at 23:55:49.086375:<br>
>> ------------------------------------------------------------------------<br>
>> SIP/2.0 401 Unauthorized<br>
>> To: <<a href="mailto:sip%3A1000@192.168.1.120">sip:1000@192.168.1.120</a>>;tag=3300b5853719f35di0<br>
>> From: <<a href="mailto:sip%3A1000@192.168.1.120">sip:1000@192.168.1.120</a>>;tag=Z440t7e61ND0g<br>
>> Call-ID: d65f2a5a-83e6-122d-7ba9-00e04c0312e9<br>
>> CSeq: 126070339 NOTIFY<br>
>> Via: SIP/2.0/UDP 192.168.1.120;branch=z9hG4bK2pc9gF3BNpcQc<br>
>> Server: Linksys/PAP2T-5.1.6(LS)<br>
>> WWW-Authenticate: Digest realm="192.168.1.120", nonce="5339c7ba",<br>
>> qop="auth", algorithm=md5<br>
>> Content-Length: 0<br>
>><br>
>> ------------------------------------------------------------------------<br>
>><br>
>> On Mon, Jan 25, 2010 at 4:46 AM, Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>> wrote:<br>
>> > or sofia profile xxx flush_inbound_reg callid reboot<br>
>> > callid you can get from sofia status profile xxx<br>
>> > /b<br>
>> > On Jan 24, 2010, at 5:28 AM, Mark Campbell-Smith wrote:<br>
>> ><br>
>> > Actually I just found <a href="http://wiki.freeswitch.org/wiki/Mod_event_socket" target="_blank">http://wiki.freeswitch.org/wiki/Mod_event_socket</a><br>
>> ><br>
>> > If I telnet to FS as described<br>
>> > <a href="http://wiki.freeswitch.org/wiki/Mod_event_socket#Telnet_Client" target="_blank">http://wiki.freeswitch.org/wiki/Mod_event_socket#Telnet_Client</a>, do I<br>
>> > just need to enter somthing like:<br>
>> ><br>
>> > sendevent NOTIFY<br>
>> > profile: internal<br>
>> > event-string: resync<br>
>> > user: 1000<br>
>> > host: 192.168.1.121<br>
>> > content-type: application/simple-message-summary<br>
>> ><br>
>> > where 192.168.1.121 is the ip address of one of the Linksys devices?<br>
>> ><br>
>> > I don't see any messages sent when I do this. What am I doing wrong?<br>
>> ><br>
>> > Thanks<br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > FreeSWITCH-users mailing list<br>
>> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>> ><br>
>> ><br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>