bayonne-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bayonne-devel] Answer on X rings


From: David Sugar
Subject: Re: [Bayonne-devel] Answer on X rings
Date: Thu, 04 Nov 2004 13:24:50 -0500
User-agent: Mozilla Thunderbird 0.8 (Macintosh/20040913)

On drivers that "count" rings (such as the vpb), they set a timer for when the next expected ring will occur. Hence, if you say "answer on 3", and the person picks up on the first ring, there will be no additional ring events, and it will time out waiting for the next ring (6s timeout), and then issue a disconnect event for "call lost". I think this is basically what is happening here. I would have to review the answer state code, though...it might be possible use a ^timeout or ^hangup handler to capture and script the call being answered in front of Bayonne.

Krytiana Loke wrote:
Thanks for taking the trouble to answer :)
Well, what I'm trying to do is this (basically I kinda asked that in my other mails :p)

Y line to jack, one end to human operator, the other to bayonne
When caller calls in, we log the starttime
If after X rings, and the human operator does not pick up, bayonne will answer the call (and do stuff based on it)

IF the human picks up, bayonne is supposed to wait (kinda listen in) and log when the call ends ....

One problem I got was that if I used answer 3 (any number larger than 2)
The script will detach itself, firing the hangup event (even though the phone is still ringing)
ie:

slog "start " %session.starttime
answer 3
...
..
exit
^hangup
 slog "hung " %session.time
 exit

If I call in (with or without the Y line), after a couple of rings, answer will kinda jump and go to hangup event.

Anyway, any script I use with answer >3 will cause the script to detach and jump to the hangup event.


Thanks again for being so helpful ^^

Pedro Bello wrote:

You need make some action after to answer???
Because in my expirience, when a need write some log
or set variables after answer make a try ::label or
call ::label and when the subprocess return i run the
answer 2 "pickup the phone"

From me point of view, the card detenct all the events

answering or not the comunication.
Sorry for me english.

If i dont undertand your problem, please explain me
again.


--- Krytiana Loke <address@hidden> wrote:

Hi
   I'm using bayonne 08xxxxx, so the only answer =
X I see is in policy or server (if I remember correctly), while these
work, bayonne does not know the number of rings
ie: If I set answer = 5
user rings
only after 5 rings will the bayonne script be fired
But I want the script to be fired asap, but only
answer (as in the script answering the call) after 3 or more rings.

The script is something like this

slog "Start "%session.starttime
answer 3
...
..
exit
  ^hangup
    slog "hung"
    exit

Using this script, bayonne will never go past answer
3.
It'll just print answer , then jump to the hangup
event, exit the script, then reattach and run it again .. and again.
If I set answer to 2, then it'll work though ...
Anything larger than 2 doesn't.

Pedro Bello wrote:

Set the param answer in /etc/bayonne.conf or send

me
the code that work wrong.

Bye

--- Krytiana Loke <address@hidden>
escribió:

Hi, sorry for asking so many questions, but how do
you make
bayonne answer after (say) 3 rings?
I tried answer 3

but then the script just exits with the ^hangup
event being
fired, even if my phone is still ringing
after it exits, it then fires up another instance

of
the
script.. and this will exit .. again ..
ad infinitum, until the line automatically

timeouts.
Any help?


_______________________________________________
Bayonne-devel mailing list
address@hidden

http://lists.gnu.org/mailman/listinfo/bayonne-devel

Correo Yahoo! - 6 MB, tecnología antispam ¡gratis! Suscribite ya http://correo.yahoo.com.ar/







__________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com




_______________________________________________
Bayonne-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bayonne-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]