[Freeswitch-users] How can I detect an execute failure using ESL?

Anthony Minessale anthony.minessale at gmail.com
Mon Dec 21 08:22:54 PST 2009


the latest version returns an event with that data in it similar to the api
method.


On Mon, Dec 21, 2009 at 2:48 AM, Ron McLeod <ron.freeswitch at mcleodnet.com>wrote:

>  When I try and perform an operation on a channel which has gone, an error
> is returned.  How can I detect this using the ESL?  execute() and sendRecv()
> always return 0 (zero) regardless of whether the command returns *+OK* or
> *–ERR*.
>
>
>
> sendmsg 5d09753c-ede7-11de-85c6-27ab474dd533
>
> call-command: execute
>
> execute-app-name: hangup
>
> execute-app-arg: UNALLOCATED_NUMBER
>
>
>
> Content-Type: command/reply
>
> *Reply-Text: -ERR invalid session id
> [5d09753c-ede7-11de-85c6-27ab474dd533]*
>
>
>
> Thanks,
>
> Ron
>
> _______________________________________________
> 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
>
>


-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091221/7b48361d/attachment-0002.html 


More information about the FreeSWITCH-users mailing list