View previous topic :: View next topic |
Author |
Message |
sharigosrl at gmail.com Guest
|
Posted: Thu Feb 25, 2016 6:24 pm Post subject: [Freeswitch-users] discriminate between session answered by |
|
|
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
|
|
Back to top |
|
|
aqsyounas at gmail.com Guest
|
Posted: Fri Feb 26, 2016 11:19 pm Post subject: [Freeswitch-users] discriminate between session answered by |
|
|
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: |
|
Back to top |
|
|
piotrek.gregor at gmai... Guest
|
Posted: Sat Feb 27, 2016 10:54 am Post subject: [Freeswitch-users] discriminate between session answered by |
|
|
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 |
|
|
|