[Freeswitch-users] Hangup after originate?

Michael Collins msc at freeswitch.org
Tue Sep 7 12:35:48 PDT 2010


On Mon, Sep 6, 2010 at 12:45 PM, Malay Thakershi <mthakershi at gmail.com>wrote:

> Hello,
>
> I plan to call Originate API from managed ESL (.NET).
>
> 1. How can I detect if a call isn't answered (it keeps ringing on the
> other end) for say 2 minutes? I would like the command to end the call
> after that much time.
>
IMHO it's easier to detect that a call is answered instead of detecting that
it is still unanswered. Something like "execute_on_answer" is handy, or even
"execute_on_media". (See the chan vars page on the wiki.)


>
> 2. How do I listen to events (say I fire Originate and then would like
> to know sequence of events happening regarding that particular call)?
>
> The originate API returns the UUID of the call leg, so you can filter on
that. (The bgapi returns a "job uuid" so be sure to get the job uuid first
if you are using bgapi. See chapter 9 of the FS book.)

-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100907/7bd6c740/attachment.html 


More information about the FreeSWITCH-users mailing list