|
From: | Krytiana Loke |
Subject: | Re: [Bayonne-devel] Answer on X rings |
Date: | Thu, 04 Nov 2004 21:17:58 +0800 |
User-agent: | Mozilla Thunderbird 0.8 (Windows/20040913) |
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 starttimeIf 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 exitIf 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 eventsanswering 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 ringsie: 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 onlyanswer (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 hangupevent, 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 sendmethe 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 instanceofthe script.. and this will exit .. again .. ad infinitum, until the line automaticallytimeouts.Any help? _______________________________________________ Bayonne-devel mailing list address@hiddenhttp://lists.gnu.org/mailman/listinfo/bayonne-develCorreo 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
[Prev in Thread] | Current Thread | [Next in Thread] |