[Freeswitch-users] How to distinguish between the different type of call rejections from Javascript?

Nicolas Brenner nicolas at medularis.com
Wed Aug 5 16:41:47 PDT 2009


I'm bridging 2 calls in a javascript file, I originate the first call and
then execute a bridge with an origination string for the second call. If I
hangup the first call while trying to make the second call, I get this on
the console:

2009-08-05 16:44:05.69122 [NOTICE] switch_ivr_originate.c:1994 Hangup
sofia/external/005622170039 [CS_CONSUME_MEDIA] [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [DEBUG] switch_channel.c:1683 Send signal
sofia/external/005622170039 [KILL]
2009-08-05 16:44:05.69122 [DEBUG] switch_core_session.c:932 Send signal
sofia/external/005622170039 [BREAK]
2009-08-05 16:44:05.69122 [DEBUG] switch_ivr_originate.c:2134 Originate
Cancelled by originator termination Cause: 487 [ORIGINATOR_CANCEL]
2009-08-05 16:44:05.69122 [INFO] mod_dptools.c:2092 Originate Failed.
Cause: ORIGINATOR_CANCEL

But if I check hangup_cause in the CHANNEL_HANGUP_COMPLETE event, I see
NORMAL_CLEARING. And the variable_originate_disposition has a value of
"failure". Where can I get the detail of knowing the call/bridge failed
because of 'ORIGINATOR_CANCEL' as reported through the console?

Thanks!

Nicolas


 the value of variable_originate_disposition at the events level and when I
have an origination failure due to 'ORIGINATOR_CANCEL

On Wed, Aug 5, 2009 at 6:16 PM, Michael Collins <msc at freeswitch.org> wrote:

>
>
> On Wed, Aug 5, 2009 at 3:54 PM, Raffaele P. Guidi <
> raffaele.p.guidi at gmail.com> wrote:
>
>> interesting! what values can contain "variable_originate_disposition"? And
>> can I set them manually in a script to reject a call simulating user busy or
>> call rejected? A lua example?
>> Thanks,
>>    Raffaele
>>
>
> Start here:
> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_hangup
>
> And note the link to the hangup causes. As far as Lua, I'm not sure there's
> a good reason to do it there. Could you give us pseudo code example of what
> you're thinking of doing?
> -MC
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090805/c9b43d96/attachment-0002.html 


More information about the FreeSWITCH-users mailing list