Hi Again, <br><br>Sorry I forgot to mention xml_cdr. <br><b><a href="http://wiki.freeswitch.org/wiki/Mod_xml_cdr">http://wiki.freeswitch.org/wiki/Mod_xml_cdr</a></b><br><br>I use it with xml curl and take all after call information through it.<br>
<br><div class="gmail_quote">On Mon, Jul 25, 2011 at 3:20 AM, Sam <span dir="ltr">&lt;<a href="mailto:lakersman2006@yahoo.com">lakersman2006@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">I just want to be able to get the call statues like ANSWER, NO_ANSWER, BUSY etc. but Freeswitch does not return these statuses after the bridge app is finished.<br>
<br>--- On <b>Sun, 7/24/11, Peter Olsson <i>&lt;<a href="mailto:peter.olsson@visionutveckling.se" target="_blank">peter.olsson@visionutveckling.se</a>&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<br>From: Peter Olsson &lt;<a href="mailto:peter.olsson@visionutveckling.se" target="_blank">peter.olsson@visionutveckling.se</a>&gt;<div class="im"><br>Subject: Re: [Freeswitch-users] Asterisk dial status<br>To: &quot;FreeSWITCH Users Help&quot; &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
</div>Date: Sunday, July 24, 2011, 12:01 PM<br><br><div><div class="im">I&#39;ve never used Perl for this, but I&#39;m pretty sure that the last line won&#39;t return until the bridge is done (because of call finishied or failed).<br>
<br>What exactly do you want to accomplish - I think there is probably an easier way for
 what you&#39;re trying to solve.<br><br>/Peter<br>________________________________________<br></div>Från: <a href="http://mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="http://mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] för Sam [<a href="http://mc/compose?to=lakersman2006@yahoo.com" target="_blank">lakersman2006@yahoo.com</a>]<div>
<div></div><div class="h5"><br>Skickat: den 24 juli 2011 20:45<br>Till: FreeSWITCH Users Help<br>Ämne: Re: [Freeswitch-users] Asterisk dial status<br><br>For the life of me I am still unable to get the bridged call status, when I subscribe to an &quot;event&quot; I am not here is my perl code snippet below, what am I doing wrong?<br>
<br><br>my $fs = new ESL::ESLconnection($host, $port,
 $password);<br><br>$session-&gt;answer();<br><br>if ($session-&gt;ready ())<br>{<br>    #set bridge settings<br>    $session-&gt;execute(&quot;set&quot;, &quot;ringback=$ringback_tone&quot;);<br>    $session-&gt;execute(&quot;set&quot;, &quot;instant_ringback=true&quot;);<br>
    $session-&gt;execute(&quot;set&quot;, &quot;ignore_early_media=false&quot;);<br>    $session-&gt;execute(&quot;set&quot;, &quot;call_timeout=60&quot;);<br>    $session-&gt;execute(&quot;set&quot;, &quot;progress_timeout=15&quot;);<br>
    $session-&gt;execute(&quot;set&quot;, &quot;origination_caller_id_number=$caller_id&quot;);<br>    $session-&gt;execute(&quot;set&quot;, &quot;continue_on_fail=false&quot;);<br>    $session-&gt;execute(&quot;bridge&quot;, &quot;sofia/gateway/provider1/$destination_number&quot;);<br>
<br>    $fs-&gt;sendRecv(&quot;event plain ALL&quot;);<br>    $fs-&gt;send(&quot;linger&quot;);<br><br>    while($fs-&gt;connected())<br>    {<br>        $data = $fs-&gt;recvEvent();<br><br> 
       if ( $data =~ m/Answered-State: (\w+)/m )<br>        {<br>           my $state = $1;<br><br>           #print &quot;Channel state is $state\n&quot;;<br><br>           if ( $state eq &#39;answered&#39; ) {<br><br>             freeswitch::consoleLog(&quot;INFO&quot;, &quot;CALL ANSWERED\n&quot;);<br>
<br>           }<br>           else<br>           {<br>                freeswitch::consoleLog(&quot;INFO&quot;, &quot;NO CALLS ANSWERED\n&quot;);<br>           }<br>         }<br>    }<br>}<br><br>$session-&gt;hangup();<br>
<br>return 1;<br><br>--- On Fri, 7/22/11, Hector Geraldino &lt;<a href="http://mc/compose?to=Hector.Geraldino@ip-soft.net" target="_blank">Hector.Geraldino@ip-soft.net</a>&gt; wrote:<br><br>From: Hector Geraldino &lt;<a href="http://mc/compose?to=Hector.Geraldino@ip-soft.net" target="_blank">Hector.Geraldino@ip-soft.net</a>&gt;<br>
Subject: Re: [Freeswitch-users] Asterisk dial status<br>To: &quot;FreeSWITCH Users Help&quot; &lt;<a href="http://mc/compose?to=freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
Date: Friday, July 22, 2011, 2:28 PM<br><br><br>It does.<br><br><br><br>You can check the events by connecting to FS on inbound mode, or using FS outbound socket connection to an application designed by you.<br><br><br><br>
As you already have a perl script to interact with FS, you can modify it to connect to FS (inbound mode) and listen for events. You can subscribe to the events of a
 particular call, or filter an specific set of events. I haven’t used Asterisk before so I’m not sure how the AGI fits on the FS architecture.<br><br><br><br>You can get more info at:<br><br><a href="http://wiki.freeswitch.org/wiki/Mod_event_socket" target="_blank">http://wiki.freeswitch.org/wiki/Mod_event_socket</a><br>
<br><br><br>And a working demo at:<br><br><a href="http://wiki.freeswitch.org/wiki/Perl_freeswitch_client_example" target="_blank">http://wiki.freeswitch.org/wiki/Perl_freeswitch_client_example</a><br><br><br><br><br><br>
<br><br>From: <a href="http://mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="http://mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of Sam<br>
Sent:
 Friday, July 22, 2011 4:23 PM<br>To: FreeSWITCH Users Help<br>Subject: Re: [Freeswitch-users] Asterisk dial status<br><br><br><br>Sam,<br><br>Does this require event sockets? Or how would I check these events?<br><br>--- On Fri, 7/22/11, Hector Geraldino &lt;<a href="http://mc/compose?to=Hector.Geraldino@ip-soft.net" target="_blank">Hector.Geraldino@ip-soft.net</a>&gt; wrote:<br>
<br>From: Hector Geraldino &lt;<a href="http://mc/compose?to=Hector.Geraldino@ip-soft.net" target="_blank">Hector.Geraldino@ip-soft.net</a>&gt;<br>Subject: Re: [Freeswitch-users] Asterisk dial status<br>To: &quot;FreeSWITCH Users Help&quot; &lt;<a href="http://mc/compose?to=freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
Date: Friday, July 22, 2011, 11:57 AM<br><br>Hi Sam,<br><br><br><br>My guess is that you can subscribe to the events of the channel and
 evaluate the channel events. Look at:<br><br><br><br><a href="http://wiki.freeswitch.org/wiki/Event_List" target="_blank">http://wiki.freeswitch.org/wiki/Event_List</a><br><br><br><br>specifically the channel events list.<br>
<br><br><br>From: <a href="http://mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="http://mc/compose?to=freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of Sam<br>
Sent: Friday, July 22, 2011 2:32 PM<br>To: <a href="http://mc/compose?to=freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>Subject: [Freeswitch-users] Asterisk dial status<br>
<br><br><br>Hi,<br><br>I am trying to port over an Asterisk AGI
 script that does a call bridge to Freeswitch using perl, I wanted to know what is the equivalent of the asterisk dial status like: ANSWER, NO_ANSWER, CANCEL, BUSY, CONGESTION, CHANUNAVAIL ? I wanted to know if what methods can be used to gets these statues?<br>
<br><br><br><br>-----Inline Attachment Follows-----<br><br>_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>FreeSWITCH-users mailing list<br><a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">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><br><br><br>-----Inline Attachment Follows-----<br><br>_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>FreeSWITCH-users mailing list<br><a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>&lt;/mc/compose?to=<a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<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>!DSPAM:4e2c68e932761895611653!<br><br>_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br><br>FreeSWITCH-users mailing list<br><a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></div></div></blockquote></td></tr></tbody></table><br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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><br clear="all"><br>-- <br><div dir="ltr">Regards,<br>Zohair Raza<div><br></div><div><a href="http://www.zuhair.info" target="_blank">www.zuhair.info</a><br><div><p><span><b><span style="font-size: 10pt; font-family: Verdana; color: blue;"><a href="http://ae.linkedin.com/in/zuhairraza" target="_blank">http://ae.linkedin.com/in/zuhairraza</a></span></b></span><span><b><span style="font-size: 10pt; font-family: Verdana; color: rgb(136, 136, 136);"> </span></b></span><b><span style="font-size: 10pt; font-family: Verdana;" lang="DE"></span></b></p>
 <br></div></div></div><br>