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"><<a href="mailto:lakersman2006@yahoo.com">lakersman2006@yahoo.com</a>></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><<a href="mailto:peter.olsson@visionutveckling.se" target="_blank">peter.olsson@visionutveckling.se</a>></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<br>From: Peter Olsson <<a href="mailto:peter.olsson@visionutveckling.se" target="_blank">peter.olsson@visionutveckling.se</a>><div class="im"><br>Subject: Re: [Freeswitch-users] Asterisk dial status<br>To: "FreeSWITCH Users Help" <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
</div>Date: Sunday, July 24, 2011, 12:01 PM<br><br><div><div class="im">I've never used Perl for this, but I'm pretty sure that the last line won'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'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 "event" 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->answer();<br><br>if ($session->ready ())<br>{<br> #set bridge settings<br> $session->execute("set", "ringback=$ringback_tone");<br> $session->execute("set", "instant_ringback=true");<br>
$session->execute("set", "ignore_early_media=false");<br> $session->execute("set", "call_timeout=60");<br> $session->execute("set", "progress_timeout=15");<br>
$session->execute("set", "origination_caller_id_number=$caller_id");<br> $session->execute("set", "continue_on_fail=false");<br> $session->execute("bridge", "sofia/gateway/provider1/$destination_number");<br>
<br> $fs->sendRecv("event plain ALL");<br> $fs->send("linger");<br><br> while($fs->connected())<br> {<br> $data = $fs->recvEvent();<br><br>
if ( $data =~ m/Answered-State: (\w+)/m )<br> {<br> my $state = $1;<br><br> #print "Channel state is $state\n";<br><br> if ( $state eq 'answered' ) {<br><br> freeswitch::consoleLog("INFO", "CALL ANSWERED\n");<br>
<br> }<br> else<br> {<br> freeswitch::consoleLog("INFO", "NO CALLS ANSWERED\n");<br> }<br> }<br> }<br>}<br><br>$session->hangup();<br>
<br>return 1;<br><br>--- On Fri, 7/22/11, Hector Geraldino <<a href="http://mc/compose?to=Hector.Geraldino@ip-soft.net" target="_blank">Hector.Geraldino@ip-soft.net</a>> wrote:<br><br>From: Hector Geraldino <<a href="http://mc/compose?to=Hector.Geraldino@ip-soft.net" target="_blank">Hector.Geraldino@ip-soft.net</a>><br>
Subject: Re: [Freeswitch-users] Asterisk dial status<br>To: "FreeSWITCH Users Help" <<a href="http://mc/compose?to=freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><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 <<a href="http://mc/compose?to=Hector.Geraldino@ip-soft.net" target="_blank">Hector.Geraldino@ip-soft.net</a>> wrote:<br>
<br>From: Hector Geraldino <<a href="http://mc/compose?to=Hector.Geraldino@ip-soft.net" target="_blank">Hector.Geraldino@ip-soft.net</a>><br>Subject: Re: [Freeswitch-users] Asterisk dial status<br>To: "FreeSWITCH Users Help" <<a href="http://mc/compose?to=freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><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></mc/compose?to=<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>!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>