[Freeswitch-users] discriminate between session answered by users and voice mail automatic messages

Ítalo Rossi italo at freeswitch.org
Fri Feb 26 05:00:49 MSK 2016


https://freeswitch.org/confluence/display/FREESWITCH/mod_com_amd

On Thu, Feb 25, 2016 at 7:24 PM, sharigo roma <sharigosrl at 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 at 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 at 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
italo at freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160225/11446fed/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list