On Sun, 27 Feb 2011 13:32:13 +0100, Gilles
wrote:
>After editing the DAHDI_DEFAULT_FLASHTIME accordingly, I
>recompiled/upgraded Dahdi, and ran the script, but Flash() still hangs
>up the call:
Turns out that instead or in addition to the above, SHORT_FLASH_TIME
should be uncommented in linux/include/dahdi/dahdi_config.h.
Flash() now works :-)
However, after putting call #1 on hold, Asterisk is unable to dial the
second number:
== asterisk/chan_dahdi.conf
[channels]
usecallerid = yes
hidecallerid = no
callwaiting = yes
usecallingpres = yes
callwaitingcallerid = yes
threewaycalling = yes
transfer = yes
canpark = yes
cancallforward = yes
callreturn = yes
echocancel = yes
echocancelwhenbridged = yes
relaxdtmf = yes
rxgain = 0.0
txgain = 0.0
immediate = no
context = from_fxo
signalling = fxs_ks
channel => 1
== extensions.conf
[from_fxo]
exten => s,1,Wait(2)
exten => s,n,Set(GLOBAL(CID)=${CALLERID(num)})
exten => s,n,Hangup()
exten => h,1,system(/var/tmp/test10.lua ${CID}&)
[callback]
exten => start,1,NoOp(In callback, CID is ${CID})
;how to wait until remote phone picked up?
exten => start,n,Wait(5)
exten => start,n,Answer()
exten => start,n,Playback(tt-monkeysintro)
exten => start,n,Flash()
exten => start,n,Dial(Dahdi/1/${GSM})
exten => start,n,Wait(5)
exten => start,n,Hangup()
;0 - Failed (not busy or congested)
;1 - Hung up
;3 - Ring timeout
;5 - Busy
;8 - Congestion
exten => failed,1,NoOp(Reason call failed is ${REASON})
== centos*CLI>
-- Starting simple switch on 'DAHDI/1-1'
-- Executing [s@from_fxo:1] Wait("DAHDI/1-1", "2") in new stack
-- Executing [s@from_fxo:2] Set("DAHDI/1-1", "GLOBAL(CID)=123456")
in new stack
== Setting global variable 'CID' to '123456'
-- Executing [s@from_fxo:3] Hangup("DAHDI/1-1", "") in new stack
== Spawn extension (from_fxo, s, 3) exited non-zero on 'DAHDI/1-1'
-- Executing [h@from_fxo:1] System("DAHDI/1-1",
"/var/tmp/test10.lua 123456&") in new stack
-- Hungup 'DAHDI/1-1'
-- Attempting call on Dahdi/1/123456 for start@callback:1 (Retry
1)
> Channel DAHDI/1-1 was answered.
-- Executing [start@callback:1] NoOp("DAHDI/1-1", "In callback|
CID is 123456") in new stack
-- Executing [start@callback:2] Wait("DAHDI/1-1", "5") in new
stack
-- Executing [start@callback:3] Answer("DAHDI/1-1", "") in new
stack
-- Executing [start@callback:4] Playback("DAHDI/1-1",
"tt-monkeysintro") in new stack
-- Playing 'tt-monkeysintro' (language 'en')
-- Executing [start@callback:5] Flash("DAHDI/1-1", "") in new
stack
-- Flashed channel DAHDI/1-1
-- Executing [start@callback:6] Dial("DAHDI/1-1",
"Dahdi/1/456789") in new stack
[Feb 28 12:46:22] WARNING[9301]: app_dial.c:1310 dial_exec_full:
Unable to create channel of type 'Dahdi' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [start@callback:7] Wait("DAHDI/1-1", "5") in new
stack
==
Does someone use three-way calling successfully with Dahdi?
Thank you.
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users