<br><br><div class="gmail_quote">On Mon, Aug 15, 2011 at 3:17 PM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div>Anthony,<br>
<br>
My gripe was not about simply having a DIALSTATUS variable in Freeswitch which copies what is from &quot;originate_disposition&quot; what I wanted is to be able to get the status of the B-Leg because right now when early media is played (which i wanted)  &quot;originate_disposition&quot; shows &quot;ANSWER&quot; which I think is caused by me explitly called the &quot;answer&quot; app in my dialplan before the bridge app, this is because my DID provider requires an answer/sip 200 or else it will keep re-sending the sip invite, therefore causing freeswitch to keep creating new channels. All I want is to be able to get the proper sip/hangup/dial statuses of the B-leg.<br>
</div></div></div></blockquote><div><br></div><div>I think we understand where you are coming from. I believe in my other post that I mentioned that the bridge app and a few other channel variables will most likely let you tailor your dialplan to your exact needs without explicitly needing to poll the &quot;dial status&quot; of the b-leg. In fact, I think I left out a few options:</div>
<div><br></div><div>execute_on_answer</div><div>execute_on_ring</div><div>execute_on_media</div><div><br></div><div>Those channel variables are quite handy, especially the execute_on_answer. If you execute a dp transfer when the b leg is answered then whatever happens after your bridge (or originate API if you are doing that) will always be some sort of failed call attempt. There&#39;s also a handy &quot;transfer_on_fail&quot; channel variable that lets you explicitly send the call to another dp extension on a failed bridge attempt. </div>
<div><br></div><div>It may seem unintuitive to be transferring the calls all over the dialplan, but if you think about it you can create contexts to handle specific scenarios and then you&#39;re done. Call failed? Transfer to &quot;CALL_FAILED&quot; context and process. Call was answered? Transfer to &quot;CALL_ANSWERED&quot; context and process. No scripting required, and it&#39;s really fast. </div>
<div><br></div><div>Just my $0.02...</div><div><br></div><div>-MC</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt">
<div></div><div><div></div><div class="h5">
<div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold">From:</span></b> Anthony Minessale &lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;<br>
<b><span style="font-weight:bold">To:</span></b> FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br><b><span style="font-weight:bold">Sent:</span></b> Wednesday, August 10, 2011 8:52 AM<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [Freeswitch-users] Asterisk to FreeSWITCH migration guide<br></font><br><div>=D <div><br></div><div>ok, sure.  If that&#39;s your only complaint.... see commit 9d98d49f0556fb79656c8403f285ae0a615439d3</div>
<br><div><br><br>Some caveats</div><div><br></div><div>1) There is actually less specific, more generalized data in this
 DIALSTATUS variable than what we already report, when you&#39;re ready to move on see the originate_disposition variable:  It&#39;s kind of like going from reporting the precise geo-location of a cafe in Paris to generalizing it to &quot;EUROPE&quot; </div>

<div><br></div><div>We follow the Q.850 standard for call cause codes and follow the SIP RFC to map sip response codes to/from the Q.850 equivalent.  Also each module has its own version &quot;sip_hangup_disposition&quot; for sip so you have both the real sip response code AND the official Q.850 equiv variables set on each call.</div>

<div><br></div><div><br></div><div>2) We don&#39;t have a torture feature so we never return that code.</div><div><br></div><div><br></div><div>3) Since our originate can return before a call is answered I added &quot;EARLY&quot; which means the originate succeeded but its still not answered.</div>

<div><br></div><div>4) For any others that do not map directly to FreeSWITCH, I just installed a copy of originate_disposition for good measure.</div><div><br>P.S </div><div><br></div><div>This email took longer to compose than the patch did while sitting in the middle of a crowded room so you probably could have simply parsed the originate originate_disposition yourself but if it helps people get over being stuck in a paradigm, it&#39;s worth it for me to write........</div>

<div> </div><div><br><div>On Tue, Aug 9, 2011 at 7:54 PM, Sam <span dir="ltr">&lt;<a rel="nofollow" href="mailto:lakersman2006@yahoo.com" target="_blank">lakersman2006@yahoo.com</a>&gt;</span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I find that Asterisk&#39;s AGI is much easier to use, they allow you to retrieve the dial status much easier than freeswitch&#39;s api&#39;s. Come on freeswitch, if you want to be better than asterisk, you should make it easier to get the dialstatus, etc. At this point asterisk is still defacto.<br>

</span></div><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Arial"><hr size="1">

<b><span style="font-weight:bold">From:</span></b> Nestor A Diaz &lt;<a rel="nofollow" href="mailto:nestor@tiendalinux.com" target="_blank">nestor@tiendalinux.com</a>&gt;<br><b><span style="font-weight:bold">To:</span></b> <a rel="nofollow" href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>

<b><span style="font-weight:bold">Sent:</span></b> Tuesday, August 9, 2011 9:48 AM<br><b><span style="font-weight:bold">Subject:</span></b> [Freeswitch-users] Asterisk to FreeSWITCH migration guide<br></font><div><div></div>

<div><br><div>



  

 
<tt><big><big>Hi Guys.</big><br>
<br>
<big>I am starting to use FreeSWITCH, i am an asterisk user since the
1.0.7
release appears as a package on the debian distribution, at the
beginning i was amazed by the fact i can build a PBX for my own
business
and i did, later i began to install this system for my customers and
sooner i meet the problems, however being the software open source i
always find a way to fix things using patchs from others, sometimes i
felt how my life was at risk when the system stops working and that
usually happens when i have to use queues and dealing with digium
hardware.</big><br>
<br>
<big>Fixing those problems either by applying patches or by changing
the
hardware where the digium cards were supposed to be installed helps me,
but that was to much stress for me and seeking for a balance that will
let me invest more time on services, configuration and hoping to have
better hardware
options brings me to freeswitch.</big><br>
<br>
<big>I agree with freeswitch philosophy that instead of having
thousands of
modules
that don&#39;t work fine i prefer just a few that works the way it should
be, a rock solid system for a corporate pbx and a call center is what i
want.</big><br>
<br>
<big>So here i am trying to begin the conversion, and i hope the
information
we can transcript in this list will help others that want to try
another
alternative to asterisk.</big><br>
<br>
<big>First of all i think the saner for a migration is to have the two
systems
running either on the same machine or different and use the stable
features of each one.</big><br>
<br>
<big>So could you please freeswitch users help me with this rosetta
stone migration guide in order to post it to <a rel="nofollow" href="http://voip-info.org" target="_blank">voip-info.org</a> or
freeswitch wiki (i list only the ones i currently use ):<br>
<br>
</big></big></tt><br>

<table border="0" cellspacing="0">
  <colgroup><col width="199"><col width="199"><col width="213"></colgroup>
  <tbody>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" width="199" height="17"><b><font face="DejaVu Sans Mono">Technology</font></b></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" width="199"><b><font face="DejaVu Sans Mono">Asterisk</font></b></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" width="213"><b><font face="DejaVu Sans Mono">Freeswitch</font></b></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="32"><font face="DejaVu Sans Mono">PSTN Connectivity (Digium /
Sangoma)</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">dahdi</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">freetdm</font></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="106"><font face="DejaVu Sans Mono">IAX2</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">mod_iax</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">?? none stable yet.<br>
Use Asterisk to forward traffic via SIP.<br>
Enable Hardware HPET for IAX2 trunk if card not available for Asterisk </font></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="32"><font face="DejaVu Sans Mono">Bluetooth Channel</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">chan_mobile</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">??<br>
Use asterisk via SIP<br>
      </font></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="32"><font face="DejaVu Sans Mono">Skype</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">Skypeforasterisk (no longer for sale)</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">mod_skypeopen</font></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="17"><font face="DejaVu Sans Mono">CDR Stadistics</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono"> Arternic cdr-stats </font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">??</font></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="32"><font face="DejaVu Sans Mono">Queue Statistics </font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono"> Asteriskguru queue-stats</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">??</font></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="17"><font face="DejaVu Sans Mono">Web Management</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">Freepbx</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">??</font></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="17"><font face="DejaVu Sans Mono">IVR</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">AGI / AMI</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">Event Socket</font></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="62"><font face="DejaVu Sans Mono">Codec G.729</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">Transcodind Cards<br>
G.729 licenses<br>
Free G.729 (Intel IPP)</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">Transcodind Cards<br>
G.729 licenses<br>
fsg729 Intel IPP(any experience with it ? )</font></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="32"><font face="DejaVu Sans Mono">Fax Handling</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono"> Iaxmodem with Hylafax</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">??<br>
Iaxmodem via asterisk to FS via SIP ?<br>
      </font></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="17"><font face="DejaVu Sans Mono">SIP</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">chan_sip</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">sofia</font></td>
    </tr>
    <tr>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT" height="17"><font face="DejaVu Sans Mono">ACD</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">app_queue</font></td>
      <td style="border:1px solid rgb(0, 0, 0)" align="LEFT"><font face="DejaVu Sans Mono">mod_callcenter</font></td>
    </tr>
  </tbody>
</table>
<br>
<big><big><tt><br>
<big>Thank you all</big><small><br>
</small><br>
<br>
-- <br>
Nestor A. Diaz<br>
Ingeniero de Sistemas<br>
Tel. <a rel="nofollow">+57 1-485-3020 x 211</a><br>
Cel. <a rel="nofollow">+57 316-227-3593</a><br>
Tel. SIP: <a rel="nofollow">sip:211@tiendalinux.com</a><br>
Email/MSN: <a rel="nofollow" href="mailto:nestor@tiendalinux.com" target="_blank">nestor@tiendalinux.com</a><br>
<a rel="nofollow" href="http://www.tiendalinux.com/" target="_blank">http://www.tiendalinux.com/</a><br>
Bogota, Colombia <br>
</tt></big></big>
<br>
 

</div><br></div></div><div>_______________________________________________<br>Join us at ClueCon 2011, Aug 9-11, Chicago<br><a rel="nofollow" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>

<br>FreeSWITCH-users mailing list<br><a rel="nofollow" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>

UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>

<br><br></div></div></div></div></div><br>_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a rel="nofollow" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<br>
<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a rel="nofollow" href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a rel="nofollow" href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>

Twitter: <a rel="nofollow" href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a rel="nofollow" href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a rel="nofollow" href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a rel="nofollow" href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a rel="nofollow" href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a rel="nofollow" href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>
</div><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" 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></div></div></div></div></div></div><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>