[Freeswitch-users] ORIGINATE_DISPOSITION

Sam lakersman2006 at yahoo.com
Tue Aug 16 21:26:25 MSD 2011


Dmitry,

Yes, I agree. For an novice like me it was extremely confusing and frustrating that I could not get the proper B leg disposition when A leg is answered by FS itself.

I hope there can be some methods or functions that will allow us to get the proper B Leg disposition.



________________________________
From: Dmitry Sytchev <kbdfck at gmail.com>
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Sent: Tuesday, August 16, 2011 2:30 AM
Subject: Re: [Freeswitch-users] ORIGINATE_DISPOSITION


Seems we need to clear things about B-leg disposition in wiki.
AFAIK there is no method to get correct disposition from B leg without analyzing events in case when A-leg was answered by FS itself. 

If A leg was not answered, we can use A-leg disposition for call disposition.


2011/8/16 Michael Collins <msc at freeswitch.org>


>
>
>On Mon, Aug 15, 2011 at 5:05 PM, Sam <lakersman2006 at yahoo.com> wrote:
>
>I am using perl's $session->get_variable("originate_disposition");
>Are you looking at the b-leg's session?
> 
>
>>
>>Also, how come the "hangup_time" shows zero on answered calls?
>Because hangup_time refers to the point in time at which the call was hung up. Since you are in the middle of a call (using the $session object) you will never see the hangup_time because the object ceases to exist once the call leg is disconnected.
>
>
>I get the impression that you may be using the wrong tool for this particular job, but I'm not sure without seeing it. If you don't mind dropping it on pastebin we'll have a look and give you some suggestions.
>
>-MC
>
>
>
>>
>>
>>________________________________
>> From: Michael Collins <msc at freeswitch.org>
>>To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>>Sent: Monday, August 15, 2011 4:58 PM
>>
>>Subject: Re: [Freeswitch-users] ORIGINATE_DISPOSITION
>>
>>
>>
>>And how are you checking the variable? Do you have an event socket open or ... ?
>>-MC
>>
>>
>>On Mon, Aug 15, 2011 at 4:57 PM, Sam <lakersman2006 at yahoo.com> wrote:
>>
>>It is being generated with a bridge.
>>>
>>>
>>>
>>>
>>>________________________________
>>>From: Michael Collins <msc at freeswitch.org>
>>>To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>>>Sent: Monday, August 15, 2011 4:54 PM
>>>
>>>Subject: Re: [Freeswitch-users] ORIGINATE_DISPOSITION
>>>
>>>
>>>
>>>And how is it being generated? WIth a bridge or originate or ... ?
>>>-MC
>>>
>>>
>>>On Mon, Aug 15, 2011 at 4:49 PM, Sam <lakersman2006 at yahoo.com> wrote:
>>>
>>>I want to know the B-leg status of the call.
>>>>
>>>>
>>>>
>>>>
>>>>________________________________
>>>>From: Michael Collins <msc at freeswitch.org>
>>>>To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
>>>>Sent: Monday, August 15, 2011 4:31 PM
>>>>Subject: Re: [Freeswitch-users] ORIGINATE_DISPOSITION
>>>>
>>>>
>>>>
>>>>I think you may be wanting "endpoint_disposition" depending on exactly what you're looking at.
>>>>
>>>>
>>>>-MC
>>>>
>>>>
>>>>On Mon, Aug 15, 2011 at 3:35 PM, Sam <lakersman2006 at yahoo.com> wrote:
>>>>
>>>>For the ORIGINATE_DISPOSITION channel variable, does "SUCCESS" mean the call was ANSWERED?
>>>>>
>>>>>
>>>>>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
>>>>>
>>>>>
>>>>
>>>>
>>>>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
>>>>
>>>>
>>>>
>>>>
>>>>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
>>>>
>>>>
>>>
>>>
>>>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
>>>
>>>
>>>
>>>
>>>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
>>>
>>>
>>
>>
>>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
>>
>>
>>
>>
>>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
>>
>>
>
>
>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
>
>


-- 
Best regards,

Dmitry Sytchev,
IT Engineer


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/20110816/b274481a/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list