<div dir="ltr">Gerry,
<br>
<br>From my experience, you only get the CHANNEL_DESTROY event; however I
use the return value from command "api originate sofia/internal/5344
&park()", if it is not "+OK ...", than I immediately issue an error. In
your case, the return value would be something like "-ERR
NO_ROUTE_DESTINATION".
<br>
<br>If you want to perform the API command asynchronously, than you would do
something like:
<br>
<br>"bgapi originate sofia/internal/5344 &park()"
<br>
<br>The command will return immediately and will return a unique Job-UUID
and will fire the BACKGROUND_JOB event when the command has finished
execution. In this BACKGROUND_JOB event you'll get the previously
mentioned Job-UUID and the status of issued command; for your case "-ERR
NO_ROUTE_DESTINATION".
<br>
<br>As stated above, this information is based on my experience only and
maybe there is a better way...
<br>
<br>Hope this helps,
<br> Boris
<br><br><div class="gmail_quote">On Wed, Aug 6, 2008 at 10:08 PM, Gerry Hull <span dir="ltr"><<a href="mailto:gerry@pstn2.net">gerry@pstn2.net</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;">
<div dir="ltr">I'm using mod_eventsocket.<br><br>If I perform the API command <br><br>originate sofia/internal/5344 &park()<br><br>and 5344 is not a valid destination, I receive the following:<br><br>2008-08-06 16:04:30 [WARNING] mod_sofia.c:1890 sofia_outgoing_channel() Cannot l<br>
ocate registered user <a href="mailto:5344@10.0.6.63" target="_blank">5344@10.0.6.63</a><br>2008-08-06 16:04:30 [NOTICE] mod_sofia.c:1975 sofia_outgoing_channel() Close Cha<br>nnel N/A [CS_NEW]<br>2008-08-06 16:04:30 [ERR] switch_ivr_originate.c:912 switch_ivr_originate() Cann<br>
ot create outgoing channel of type [sofia] cause: [NO_ROUTE_DESTINATION]<br>API CALL [originate(sofia/internal/5344 &park())] output:<br>-ERR NO_ROUTE_DESTINATION<br><br>in the log. However, How can I receive an event as to trap this issue? I don't see one I can subscribe to to get this <br>
information.<br><br>Thanks,<br><br>Gerry<br><br></div>
<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></blockquote></div><br></div>