[Freeswitch-users] Custom NOTIFY message in FS

Mark Campbell-Smith mcampbellsmith at gmail.com
Sun Jan 24 16:29:46 PST 2010


Hi Ognjen,

Thanks for the tip on the resync under the EXT tab.  It now works
using mod_event_socket and the following:

sendevent NOTIFY
profile: internal
event-string: resync
user: 1000
host: 192.168.1.121
content-type: application/simple-message-summary

However, if AUTH is required, why does FS send the wrong information to the SPA?

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




More information about the FreeSWITCH-users mailing list