[Freeswitch-users] ORIGINATE_DISPOSITION

Sam lakersman2006 at yahoo.com
Tue Aug 16 21:22:23 MSD 2011


MC,

Here is the pastebin http://pastebin.freeswitch.org/17056 of my perl script. For the script I just made it display the various channel variables so I can see what values freeswitch will provide me after the call has been bridged or not.



________________________________
From: Michael Collins <msc at freeswitch.org>
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Sent: Monday, August 15, 2011 5:30 PM
Subject: Re: [Freeswitch-users] ORIGINATE_DISPOSITION





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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110816/e19d2520/attachment-0001.html 


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