[Freeswitch-users] Sending NOTIFY using sendevent / ESL
Robert Hadley
robert.hadley at teotech.com
Thu Aug 1 20:15:42 MSD 2013
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 at 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 at magiccow.co.uk<mailto:martyn at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130801/ba73dbc0/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list