Or listen for answer events and apply avmd on outbound leg.

On 26-Feb-2016 7:03 am, "Ítalo Rossi" <italo@freeswitch.org> wrote:
https://freeswitch.org/confluence/display/FREESWITCH/mod_com_amd

On Thu, Feb 25, 2016 at 7:24 PM, sharigo roma <sharigosrl@gmail.com> wrote:
Dear freeswitchers,

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 "the customer you are trying to reach is not available at the moment" ?

The python code looks something like the following:


def handler(session, args):
 ## I do various things.... and than

 session_string = str("sofia/gateway/MY_GW/0039123456789”)
 new_session = freeswitch.Session(session_string)
 if new_session.ready():           
    # I get here also in case of automatic voice mail message
 else:
    # I supposed i’d get here in case of automatic “unreachable” messages…


Thanks in advance 
Lorenzo

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Ítalo Rossi

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org