Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

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


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
sharigosrl at gmail.com
Guest





PostPosted: Thu Feb 25, 2016 6:24 pm    Post subject: [Freeswitch-users] discriminate between session answered by Reply with quote

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
Back to top
italo at freeswitch.org
Guest





PostPosted: Thu Feb 25, 2016 9:02 pm    Post subject: [Freeswitch-users] discriminate between session answered by Reply with quote

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


On Thu, Feb 25, 2016 at 7:24 PM, sharigo roma <sharigosrl@gmail.com (sharigosrl@gmail.com)> wrote:
Quote:
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 (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 (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 Rossiitalo@freeswitch.org (italo@freeswitch.org)
Back to top
aqsyounas at gmail.com
Guest





PostPosted: Fri Feb 26, 2016 11:19 pm    Post subject: [Freeswitch-users] discriminate between session answered by Reply with quote

Or listen for answer events and apply avmd on outbound leg. On 26-Feb-2016 7:03 am, "Ítalo Rossi" <italo@freeswitch.org (italo@freeswitch.org)> wrote:
Quote:
https://freeswitch.org/confluence/display/FREESWITCH/mod_com_amd


On Thu, Feb 25, 2016 at 7:24 PM, sharigo roma <sharigosrl@gmail.com (sharigosrl@gmail.com)> wrote:
Quote:
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 (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 (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 Rossiitalo@freeswitch.org (italo@freeswitch.org)




_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (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 (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
Back to top
piotrek.gregor at gmai...
Guest





PostPosted: Sat Feb 27, 2016 10:54 am    Post subject: [Freeswitch-users] discriminate between session answered by Reply with quote

Module avmd will not help much in this case as this can be used to detectsinusoidal tone of single frequency only (e.g. beep).

Piotr

On 27 February 2016 at 04:17, Aqs Younas <aqsyounas@gmail.com (aqsyounas@gmail.com)> wrote:
Quote:

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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services