From: Luca B. <Luc...@fe...> - 2004-04-28 22:04:08
|
> I am just wondering if this is a possibility with Bayonne...I would like > to be able to dial into my bayonne server (Bayonne 1.2.11 on redhat with > the Intel Dialogic > D/600JCT-1E1 in Australia) and when Bayonne 'sees' my incoming call, I > want it to dial another phone (make outgoing call)...and on the chance > that the outgoing call is answered, I would like the incoming call to be > answered by bayonne and joined to the outgoing call...So from the > callers point of view, they have actually called the person who answered > the bayonne outgoing call and it is seamless because the caller just > hears the ringing tone until the outgoing call is answered. > > Is this possible with bayonne? If it is, and is easy enough to provide > a little example, I would be very greatful! yes, of course you can with Bayonne :-) two scripts: answerCall.scr and makeCall.scr ############################# answerCall.scr .... any operation start.group outgoing makeCall # start a script on che outgoing group sleep 10 # waiting a signal ^event # signal received set %messagge %session.eventsendermsg set %id_call %session.eventsenderid slog.info "signal received from " %id_call slog.info "message received: " %messagge goto ::joinCall ::joinCall join %id_call # after join ...... ############################# ############################# makeCall.scr any operation dial XXX send.message %session.parent message=anyMessage wait 1000 ...... ########################### this is tha basic use of wait/join if you need a better handshake protocol between the two scripts, have a look to signals in the scripting manual and examples manual bye Luca -- Luca Bariani - Luc...@fe... http://members.ferrara.linux.it/lucabariani http://www.bayonne.it ICQ: 29828855 ---- Pgp/Gpg public key available on Home Page ############################################################### The reasonable man adapts himself to the world. The unreasonable man persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable. |