With Bayonne 0.63, I could use the following script to utilize my ISDN
line's call-conference/call-transfer feature to forward incoming calls to
my cell phone:
answer
clear %session.digits # clear digit buffer
dial "&,,5551212&"
sync 15 3
hangup
Now, after upgrading to 0.64, I can't get the above to work. Attached
below are three different cases I tried and then the debug output from
Bayonne. I've also tried using ccscript's flash command rather than the
Voicetronic specific "&" command to no avail. If anyone has any ideas, I'm
all ears.
Thanks,
Abe
--- #1
answer
clear %session.digits
debug "start ... "
goto ::blah
::blah
debug "blah ... "
dial "&,,5551212&"
pause 10000
hangup
^dialtone
debug "dialtone ..."
hangup
^star
debug "start ..."
hangup
^timeout
debug "timeout ..."
hangup
^dtmf
debug "dtmf ..."
hangup
[01] Ring
vpb1: ringing
ring
vpb1: attach script
vpb1: step 3 answer()
vpb1: answer
vpb1: step 3 clear(%session.digits)
vpb1: step 3 debug(start ... )
vpb1: start ...
vpb1: step 3 goto(::blah)
vpb1: step 10ffff debug(blah ... )
vpb1: blah ...
vpb1: step 10ffff dial(&,,5551212&)
dial.cpp line 31 received TRUNK_ENTER_STATE
vpb1: flashoff
dial.cpp line 38 start dial thread...
dial.cpp line 73 digits= &,,5551212&
dial.cpp line 75 dialing ...
dial.cpp line 50 received not TRUNK_ENTER_STATE and not TRUNK_LINE_WINK, it is=401
dial.cpp line 50 received not TRUNK_ENTER_STATE and not TRUNK_LINE_WINK, it is=102
vpb1: step 3 debug(timeout ...)
vpb1: timeout ...
vpb1: step 3 hangup()
vpb1: exit
vpb1: hangup
vpb1: detach script
vpb1: idle
[01] Tone Detect: Grunt
[01] DTMF digit: 5
[01] DTMF digit: 5
[01] DTMF digit: 5
[01] DTMF digit: 1
[01] DTMF digit: 2
[01] DTMF digit: 1
[01] Tone Detect: Grunt
[01] DTMF digit: 2
dial.cpp line 79 dialed ...
--- #2
answer
clear %session.digits
debug "start ... "
goto ::blah
::blah
debug "blah ... "
dial "&,,5551212&"
pause 10000
hangup
^dialtone
debug "dialtone ..."
hangup
^star
debug "start ..."
hangup
^timeout
debug "timeout ..."
pause 30000
hangup
^dtmf
debug "dtmf ..."
hangup
[01] Ring
vpb1: ringing
ring
vpb1: attach script
vpb1: step 3 answer()
vpb1: answer
vpb1: step 3 clear(%session.digits)
vpb1: step 3 debug(start ... )
vpb1: start ...
vpb1: step 3 goto(::blah)
vpb1: step 10ffff debug(blah ... )
vpb1: blah ...
vpb1: step 10ffff dial(&,,5551212&)
dial.cpp line 31 received TRUNK_ENTER_STATE
vpb1: flashoff
dial.cpp line 38 start dial thread...
dial.cpp line 73 digits= &,,5551212&
dial.cpp line 75 dialing ...
dial.cpp line 50 received not TRUNK_ENTER_STATE and not TRUNK_LINE_WINK, it is=401
dial.cpp line 50 received not TRUNK_ENTER_STATE and not TRUNK_LINE_WINK, it is=102
vpb1: step 3 debug(timeout ...)
vpb1: timeout ...
vpb1: step 3 pause(30000)
vpb1: sleep
tgi: buffer=/var/run/bayonne.ctrl; cfd=8
[01] Tone Detect: Grunt
[01] DTMF digit: 5
[01] DTMF digit: 1
[01] Tone Detect: Grunt
dial.cpp line 79 dialed ...
vpb1: exit
vpb1: hangup
vpb1: detach script
vpb1: idle
[01] Ring
vpb1: ringing
ring
vpb1: attach script
vpb1: step 3 answer()
vpb1: answer
vpb1: step 3 clear(%session.digits)
--- #3
answer
clear %session.digits
debug "start ... "
goto ::blah
::blah
debug "blah ... "
dtmf "&,,5551212&"
sleep 60
hangup
^dialtone
debug "dialtone ..."
hangup
^star
debug "start ..."
hangup
^timeout
debug "timeout ..."
sleep 60
hangup
^dtmf
debug "dtmf ..."
hangup
[01] Ring
vpb1: ringing
ring
vpb1: attach script
vpb1: step 3 answer()
vpb1: answer
vpb1: step 3 clear(%session.digits)
vpb1: step 3 debug(start ... )
vpb1: start ...
vpb1: step 3 goto(::blah)
vpb1: step 10ffff debug(blah ... )
vpb1: blah ...
vpb1: step 10ffff dtmf(&,,5551212&)
dial.cpp line 31 received TRUNK_ENTER_STATE
vpb1: flashoff
dial.cpp line 38 start dial thread...
dial.cpp line 73 digits= &,,5551212&
dial.cpp line 75 dialing ...
dial.cpp line 50 received not TRUNK_ENTER_STATE and not TRUNK_LINE_WINK, it is=401
dial.cpp line 50 received not TRUNK_ENTER_STATE and not TRUNK_LINE_WINK, it is=102
vpb1: step 3 debug(timeout ...)
vpb1: timeout ...
vpb1: step 3 sleep(60)
vpb1: sleep
[01] Tone Detect: Grunt
[01] DTMF digit: 5
[01] DTMF digit: 2
dial.cpp line 79 dialed ...
vpb1: exit
vpb1: hangup
vpb1: detach script
vpb1: idle
[01] Ring
vpb1: ringing
ringtgi: buffer=/var/run/bayonne.ctrl; cfd=8
|