Sending NOTIFY using sendevent / ESL
I've been trying to generate a NOTIFY using sendevent, following some of the examples in http://wiki.freeswitch.org/wiki/Mod_event_socket and also various stuff found in Jira and historic message trails. I can't get it to do anything. If I switch on events for notify, I can see that the sendevent command generates some kind of message (and the fields seem to have appropriate URIs and so on), but at the SIP level nothing at all happens (I've got wireshark at the client end). I've switched on all events on fs_cli, and sofia trace but see nothing to suggest that a notify is sent. I'd appreciate any suggestions that could make a message flow. Failing that, what logs can I switch on to give a clue about where/why the message is discarded before making it to SIP? I was using FS 1.5.1, just changed to 1.5.3 today (no difference). Client software is brand-new Mac Blink client bought last week. Regards, Martyn
Maybe you could post what you're sending now? There are a couple of different ways to fire a NOTIFY. By registration with user/host/etc and an arbitrary NOTIFY with from-uri/to-uri/etc -Ray On 07/23/2013 03:45 PM, Martyn Davies wrote:
I've been trying to generate a NOTIFY using sendevent, following some of the examples in http://wiki.freeswitch.org/wiki/Mod_event_socket and also various stuff found in Jira and historic message trails.
I can't get it to do anything. If I switch on events for notify, I can see that the sendevent command generates some kind of message (and the fields seem to have appropriate URIs and so on), but at the SIP level nothing at all happens (I've got wireshark at the client end). I've switched on all events on fs_cli, and sofia trace but see nothing to suggest that a notify is sent.
I'd appreciate any suggestions that could make a message flow. Failing that, what logs can I switch on to give a clue about where/why the message is discarded before making it to SIP?
I was using FS 1.5.1, just changed to 1.5.3 today (no difference). Client software is brand-new Mac Blink client bought last week.
Regards, Martyn
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Yes, for example I send this: sendevent NOTIFY profile: internal content-type: application/simple-message-summary event-string: check-sync user: {number} host: {domain} content-length: 2 OK I've tried many variations: swapping the domain for the actual IP address, different profiles etc. On 23 July 2013 20:58, Raymond Chandler <intralanman@freeswitch.org> wrote:
Maybe you could post what you're sending now?
There are a couple of different ways to fire a NOTIFY. By registration with user/host/etc and an arbitrary NOTIFY with from-uri/to-uri/etc
-Ray
On 07/23/2013 03:45 PM, Martyn Davies wrote:
I've been trying to generate a NOTIFY using sendevent, following some of the examples in http://wiki.freeswitch.org/wiki/Mod_event_socket and also various stuff found in Jira and historic message trails.
I can't get it to do anything. If I switch on events for notify, I can see that the sendevent command generates some kind of message (and the fields seem to have appropriate URIs and so on), but at the SIP level nothing at all happens (I've got wireshark at the client end). I've switched on all events on fs_cli, and sofia trace but see nothing to suggest that a notify is sent.
I'd appreciate any suggestions that could make a message flow. Failing that, what logs can I switch on to give a clue about where/why the message is discarded before making it to SIP?
I was using FS 1.5.1, just changed to 1.5.3 today (no difference). Client software is brand-new Mac Blink client bought last week.
Regards, Martyn
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
Regarding my "sendevent' not working: can anyone suggest useful diagnostics/traces I could switch on to find out why no NOTIFY results from my API request? Regards, Martyn On 23 July 2013 20:45, Martyn Davies <martyn@magiccow.co.uk> wrote:
I've been trying to generate a NOTIFY using sendevent, following some of the examples in http://wiki.freeswitch.org/wiki/Mod_event_socket and also various stuff found in Jira and historic message trails.
I can't get it to do anything. If I switch on events for notify, I can see that the sendevent command generates some kind of message (and the fields seem to have appropriate URIs and so on), but at the SIP level nothing at all happens (I've got wireshark at the client end). I've switched on all events on fs_cli, and sofia trace but see nothing to suggest that a notify is sent.
I'd appreciate any suggestions that could make a message flow. Failing that, what logs can I switch on to give a clue about where/why the message is discarded before making it to SIP?
I was using FS 1.5.1, just changed to 1.5.3 today (no difference). Client software is brand-new Mac Blink client bought last week.
Regards, Martyn
Hi Martyn, A couple suggestions. 1. sendevent is not an api command, do not prefix with api or bgapi 2. sofia debugging: http://wiki.freeswitch.org/wiki/Sofia-SIP#Debugging_Sofia-SIP, re: sofia loglevel all We send this text to the event socket which sends a check-sync notify to the phone. The wiki example is missing the to/from-uri lines, please update it. sendevent NOTIFY profile: internal content-type: application/simple-message-summary event-string: check-sync user: 1200@<domain> host: <domain> from-uri: sip:1200@<domain> to-uri: sip:1200@<device IP> Regards, Robert From: Martyn Davies [mailto:martyn@magiccow.co.uk] Sent: Thursday, August 01, 2013 4:21 AM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Sending NOTIFY using sendevent / ESL Regarding my "sendevent' not working: can anyone suggest useful diagnostics/traces I could switch on to find out why no NOTIFY results from my API request? Regards, Martyn On 23 July 2013 20:45, Martyn Davies <martyn@magiccow.co.uk<mailto:martyn@magiccow.co.uk>> wrote: I've been trying to generate a NOTIFY using sendevent, following some of the examples in http://wiki.freeswitch.org/wiki/Mod_event_socket and also various stuff found in Jira and historic message trails. I can't get it to do anything. If I switch on events for notify, I can see that the sendevent command generates some kind of message (and the fields seem to have appropriate URIs and so on), but at the SIP level nothing at all happens (I've got wireshark at the client end). I've switched on all events on fs_cli, and sofia trace but see nothing to suggest that a notify is sent. I'd appreciate any suggestions that could make a message flow. Failing that, what logs can I switch on to give a clue about where/why the message is discarded before making it to SIP? I was using FS 1.5.1, just changed to 1.5.3 today (no difference). Client software is brand-new Mac Blink client bought last week. Regards, Martyn
Thanks Robert, I've got the NOTIFY coming out now! Those from-uri and to-uri fields are both really needed. On 1 August 2013 17:15, Robert Hadley <robert.hadley@teotech.com> wrote:
Hi Martyn,****
** **
A couple suggestions.****
1. sendevent is not an api command, do not prefix with api or bgapi****
2. sofia debugging: http://wiki.freeswitch.org/wiki/Sofia-SIP#Debugging_Sofia-SIP, re: sofia loglevel all****
** **
We send this text to the event socket which sends a check-sync notify to the phone. The wiki example is missing the to/from-uri lines, please update it.****
** **
sendevent NOTIFY****
profile: internal****
content-type: application/simple-message-summary****
event-string: check-sync****
user: 1200@<domain>****
host: <domain>****
from-uri: sip:1200@<domain>****
to-uri: sip:1200@<device IP>****
** **
** **
Regards,****
Robert****
** **
*From:* Martyn Davies [mailto:martyn@magiccow.co.uk] *Sent:* Thursday, August 01, 2013 4:21 AM *To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] Sending NOTIFY using sendevent / ESL****
** **
Regarding my "sendevent' not working: can anyone suggest useful diagnostics/traces I could switch on to find out why no NOTIFY results from my API request?****
** **
Regards,****
Martyn****
** **
On 23 July 2013 20:45, Martyn Davies <martyn@magiccow.co.uk> wrote:****
I've been trying to generate a NOTIFY using sendevent, following some of the examples in http://wiki.freeswitch.org/wiki/Mod_event_socket and also various stuff found in Jira and historic message trails. ****
** **
I can't get it to do anything. If I switch on events for notify, I can see that the sendevent command generates some kind of message (and the fields seem to have appropriate URIs and so on), but at the SIP level nothing at all happens (I've got wireshark at the client end). I've switched on all events on fs_cli, and sofia trace but see nothing to suggest that a notify is sent.****
** **
I'd appreciate any suggestions that could make a message flow. Failing that, what logs can I switch on to give a clue about where/why the message is discarded before making it to SIP?****
** **
I was using FS 1.5.1, just changed to 1.5.3 today (no difference). Client software is brand-new Mac Blink client bought last week.****
** **
Regards,****
Martyn****
** **
** **
** **
** **
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Martyn Davies
-
Raymond Chandler
-
Robert Hadley