bayonne-devel
[Top][All Lists]
Advanced

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

Re: [Bayonne-devel] Bayonne in a PABX environnement


From: infos chez fdrconseil
Subject: Re: [Bayonne-devel] Bayonne in a PABX environnement
Date: Tue, 31 Aug 2004 00:33:32 +0200
User-agent: Opera7.23/Win32 M2 build 3227

Le Mon, 30 Aug 2004 12:40:37 +0200, Erwan MAS <address@hidden> a écrit:

On Sun, Aug 29, 2004 at 06:30:02PM +0200, infos chez fdrconseil wrote:
| Le Sun, 29 Aug 2004 08:53:39 +1000, Mark Lipscombe <address@hidden> a
| ?crit:
|
| >Erwan MAS wrote:
| >>Hello ,
| >>
| >>I have Bayonne with a capi driver configured , connected
| >>via a pabx .
| >>My configuration work , i can use the playrec.scr , via
| >>the phone number affected to the isdn card .
| >>
| >>I want to program this :
| >> After a selection , Bayonne must tranfert the call , to a another
| >>phone via the pabx .
| >>
| >
| >Bayonne's CAPI driver doesn't currently support any kind of call
| >transferring.  To achieve this, you would need to implement transfer
| >capabilities however CAPI 2.0 does it.
| >
| >Cheers,
| >Mark
|
|
| An other solution is :
| After the selection, your script dials a number which will be understood
| by the PABX as a local
| number and that will be established on a local phone (connected to the
| PABX). When this dial succeeds, you simply
| join the incomming call with the outgoing call (using "wait" and "join"
| script commands).
|
|
| FdR.

In absolute , a typical script for doing a transfert , can be :

1)  answer

2)  wait

3)  dial origin=7795 7734

4)  join id=???

  where i can found the id ...



The idea is to use 2 scripts, and the "join" is done with the caller script

Briefly, here is the principles :


The caller script is something like :

        set %MyCallid %session.id
        # start the second script
        start.group OutGoingTrunk CallOut::Dial %MyCallid %NumberToDial
        do
                play %waiting
        loop

^event
        if %session.eventsendermsg == "ok" ::aboutJonction

....

::aboutJonction
        wait 30
        ...


And the called script is something like :

::Dial
        dial %NumberToDial maxTime=20

        play Welcome

        # send a message to the caller
        send %MyCallid "ok"
        sleep 2
        join %MyCallid 30

          # in the end of the join :
        play EndOfCom



You should just choose correctly the number to dial so the pabx will direct the call to
a locally connected phone.
Hoping it helps,
I've already seen some similar samples posted in this list,
Cheers
FdR




reply via email to

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