<div dir="ltr"><a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_com_amd">https://freeswitch.org/confluence/display/FREESWITCH/mod_com_amd</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 25, 2016 at 7:24 PM, sharigo roma <span dir="ltr">&lt;<a href="mailto:sharigosrl@gmail.com" target="_blank">sharigosrl@gmail.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 dir="ltr">Dear freeswitchers,<div><br></div><div>is there a way to understand if a new session originated from a python handler has been actually answered by the remote user or by the operator voice mail with a message like &quot;the customer you are trying to reach is not available at the moment&quot; ?</div><div><br></div><div>The python code looks something like the following:</div><div><br></div><div><br></div><div><div>def handler(session, args):</div></div><div><div> ## I do various things.... and than</div><div><br></div><div> session_string = str(&quot;sofia/gateway/MY_GW/0039123456789”)</div><div> new_session = freeswitch.Session(session_string)</div><div> if new_session.ready():           </div><div>    # I get here also in case of automatic voice mail message</div><div> else:</div><div>    # I supposed i’d get here in case of automatic “unreachable” messages…</div></div><div><br></div><div><br></div><div>Thanks in advance </div><div>Lorenzo</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Ítalo Rossi<div><a href="mailto:italo@freeswitch.org" target="_blank">italo@freeswitch.org</a></div></div></div>
</div>