user and host have to match too<br><br><div class="gmail_quote">On Wed, Jan 27, 2010 at 7:06 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thanks guys. I have this working except for one user who is<br>
registered like this:<br>
<br>
Call-ID: <a href="mailto:2ff39277-fd9a6ab1@10.0.0.1">2ff39277-fd9a6ab1@10.0.0.1</a><br>
<div class="im">User: <a href="mailto:2000@192.168.1.120">2000@192.168.1.120</a><br>
</div>Contact: 2000<br>
<sip:2000@124.xxx.xxx.xxx:5075;transport=tls;fs_nat=yes;fs_path=sip%3A2000%40124.xxx.xxx.xxx%3A10281%3Btransport%3Dtls><br>
Agent: Linksys/SPA3102-5.1.10(GW)<br>
Status: Registered(TLS-NAT)(unknown) EXP(2010-01-28 00:29:34)<br>
Host: freeswitch<br>
IP: 124.xxx.xxx.xxx<br>
Port: 10281<br>
Auth-User: 2000<br>
Auth-Realm: <a href="http://mydns.dyndns.org" target="_blank">mydns.dyndns.org</a><br>
MWI-Account: <a href="mailto:2000@192.168.1.120">2000@192.168.1.120</a><br>
<br>
When I do the following commands via the telnet socket, no notify<br>
command is sent to user 2000:<br>
<br>
sendevent NOTIFY<br>
profile: internal<br>
<div class="im">content-type: application/simple-message-summary<br>
</div>event-string: reboot_now<br>
user: 2000<br>
host: 192.168.1.120<br>
content-length: 0<br>
<br>
However, if I do exactly the same thing with user 2001 it works. 2001<br>
is registered as:<br>
<br>
Contact: 2001 <sip:2001@124.yyy.yyy.yyy:5066;transport=tls><br>
<br>
Any ideas why that would be?<br>
<div><div></div><div class="h5"><br>
On Mon, Jan 25, 2010 at 11:50 AM, Ognjen Seslija <<a href="mailto:oseslija@gmail.com">oseslija@gmail.com</a>> wrote:<br>
> The phone is asking FS to authenticate prior then accepting a NOTIFY from<br>
> it.<br>
> The authentication of notify's from spa endpoints work (afaik) only with<br>
> Linksys SPA9000 PBX , and FS doesn't have the code for that for obvious<br>
> reasons.<br>
> If you have SPA9000 maybe you can collect SIP traces.<br>
><br>
> Ognjen<br>
><br>
><br>
><br>
><br>
><br>
> On Mon, Jan 25, 2010 at 1:29 AM, Mark Campbell-Smith<br>
> <<a href="mailto:mcampbellsmith@gmail.com">mcampbellsmith@gmail.com</a>> wrote:<br>
>><br>
>> 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>
>><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>
>> However, if AUTH is required, why does FS send the wrong information to<br>
>> the SPA?<br>
>><br>
>> On Mon, Jan 25, 2010 at 11:15 AM, Ognjen Seslija <<a href="mailto:oseslija@gmail.com">oseslija@gmail.com</a>><br>
>> wrote:<br>
>> > You should not authenticate those NOTIFYs (this will work only with<br>
>> > 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<br>
>> > 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<br>
>> >> <a href="mailto:1000@192.168.1.120">1000@192.168.1.120</a><br>
>> >><br>
>> >> Registrations:<br>
>> >><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>
>> >><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>
>> >> ------------------------------------------------------------------------<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>
>> >> ------------------------------------------------------------------------<br>
>> >> recv 407 bytes from udp/[192.168.1.121]:5060 at 23:55:49.045267:<br>
>> >><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>
>> >> ------------------------------------------------------------------------<br>
>> >> send 1056 bytes to udp/[192.168.1.121]:5060 at 23:55:49.060073:<br>
>> >><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>
>> >> ------------------------------------------------------------------------<br>
>> >> recv 407 bytes from udp/[192.168.1.121]:5060 at 23:55:49.086375:<br>
>> >><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>
>> >><br>
>> >> On Mon, Jan 25, 2010 at 4:46 AM, Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>><br>
>> >> 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<br>
>> >> > 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>
>> >> ><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>
>> >><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>
><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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:+19193869900<br>