[Asterisk-bsd] Capi and rintone
Matthias Fechner
idefix at fechner.net
Sun Jun 25 10:57:35 MST 2006
Hello Hans,
* Hans Petter Selasky <hselasky at c2i.net> [25-06-06 19:02]:
> It is "b" and "l" (ell) not "1" (one). You can skip the "l".
>
> Are you sure that you hangup the call at the end:
ok, after writing bl instead of b1 I can hear a dialtone after the
Playback.
But if I hanup the line it seems that the Dialcommand will not return:
[isdn-capi-out]
; set callerID and call to extern via ISDN
exten => s,1,NoOp(--- ${CALLERIDNUM} -> ${CALLNUMBER[${CALLERIDNUM}]} calling on isdn-capi-out to extern (${DIALSTR}) ---)
exten => s,2,Playback(custom/forwarded-tel)
exten => s,3,Dial(CAPI/ISDNTE/${CALLNUMBER[${CALLERIDNUM}]}:${DIALSTR}/bl)
exten => s,4,NoOp(Dial finished with status: ${DIALSTATUS})
exten => s,5,return
I have attached the log from asterisk (I added some comments into the
file).
Best regards,
Matthias
--
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook
-------------- next part --------------
== search_cep:5635:ENTRY=ISDNNT:PLCI=0x2f00:PBX_CHAN=**Unknown**:
== Incoming call '91' -> ''
-- Executing NoOp("CAPI/ISDNNT/5359190-0", "Doing ENUM lookup and dial") in new stack
-- Executing Macro("CAPI/ISDNNT/5359190-0", "enumdial|+4981415359190") in new stack
-- Executing Set("CAPI/ISDNNT/5359190-0", "DIAL_NUMBER=+4981415359190") in new stack
-- Executing Set("CAPI/ISDNNT/5359190-0", "E164NETWORKS=e164.arpa-e164.info-e164.org") in new stack
-- Executing GotoIf("CAPI/ISDNNT/5359190-0", "1?begin") in new stack
-- Goto (macro-enumdial,s,5)
-- Executing GotoIf("CAPI/ISDNNT/5359190-0", "0?failed") in new stack
-- Executing Set("CAPI/ISDNNT/5359190-0", "ENUMNET=e164.arpa") in new stack
-- Executing Set("CAPI/ISDNNT/5359190-0", "E164NETWORKS=e164.info-e164.org") in new stack
-- Executing Set("CAPI/ISDNNT/5359190-0", "ENUMCOUNT=") in new stack
-- Executing GotoIf("CAPI/ISDNNT/5359190-0", "0]?begin") in new stack
-- Executing GotoIf("CAPI/ISDNNT/5359190-0", "1]?begin") in new stack
-- Goto (macro-enumdial,s,5)
-- Executing GotoIf("CAPI/ISDNNT/5359190-0", "1?failed") in new stack
-- Goto (macro-enumdial,s,38)
-- Executing NoOp("CAPI/ISDNNT/5359190-0", "EnumLookups failed| falling back to ISDN") in new stack
-- Executing Set("CAPI/ISDNNT/5359190-0", "DIALSTR=+4981415359190") in new stack
-- Executing Gosub("CAPI/ISDNNT/5359190-0", "tel-outgoing|s|1") in new stack
== Channel 'CAPI/ISDNNT/5359190-0' jumping out of macro 'enumdial'
-- Executing NoOp("CAPI/ISDNNT/5359190-0", "DIALSTR: +4981415359190") in new stack
-- Executing Cut("CAPI/ISDNNT/5359190-0", "DIALNUMBER=DIALSTR|+|2") in new stack
-- Executing NoOp("CAPI/ISDNNT/5359190-0", "DIALNUMBER: 81415359190") in new stack
-- Executing Set("CAPI/ISDNNT/5359190-0", "DIALSTR=081415359190") in new stack
-- Executing Gosub("CAPI/ISDNNT/5359190-0", "isdn-capi-out|s|1") in new stack
-- Executing NoOp("CAPI/ISDNNT/5359190-0", "--- 91 -> 530747 calling on isdn-capi-out to extern (081415359190) ---") in new stack
-- Executing Playback("CAPI/ISDNNT/5359190-0", "custom/forwarded-tel") in new stack
== chan_capi_answer:4538:ENTRY=ISDNNT:PLCI=0x2f00:PBX_CHAN=CAPI/ISDNNT/5359190-0:
==
== capi_send_connect_resp:3072:ENTRY=ISDNNT:PLCI=0x2f00:PBX_CHAN=CAPI/ISDNNT/5359190-0:
== Connected to 5359190
-- Playing 'custom/forwarded-tel' (language '')
== capi_send_detect_dtmf_req:3323:ENTRY=ISDNNT:PLCI=0x2f00:PBX_CHAN=CAPI/ISDNNT/5359190-0:
== Setting up DTMF detector, flag=1
-- Executing Dial("CAPI/ISDNNT/5359190-0", "CAPI/ISDNTE/530747:081415359190/bl") in new stack
== chan_capi_call:4435:ENTRY=ISDNTE:PLCI=0x0001:PBX_CHAN=CAPI/ISDNTE/081415359190:
==
-- Called ISDNTE/530747:081415359190/bl
== capi_send_detect_dtmf_req:3323:ENTRY=ISDNTE:PLCI=0x1801:PBX_CHAN=CAPI/ISDNTE/081415359190:
== Setting up DTMF detector, flag=1
-- CAPI/ISDNTE/081415359190 is proceeding passing it to CAPI/ISDNNT/5359190-0
== chan_capi_indicate:4479:ENTRY=ISDNNT:PLCI=0x2f00:PBX_CHAN=CAPI/ISDNNT/5359190-0:
==
-- CAPI/ISDNTE/081415359190 is making progress passing it to CAPI/ISDNNT/5359190-0
== chan_capi_indicate:4479:ENTRY=ISDNNT:PLCI=0x2f00:PBX_CHAN=CAPI/ISDNNT/5359190-0:
==
== search_cep:5635:ENTRY=ISDNTE:PLCI=0x1901:PBX_CHAN=**Unknown**:
== Incoming call '8141530747' -> '5359190'
-- Executing NoOp("CAPI/ISDNTE/5359190-1", "--- 08141530747 calling on capi-extern (5359190) ---") in new stack
-- Executing Goto("CAPI/ISDNTE/5359190-1", "dialin-company|s|1") in new stack
-- Goto (dialin-company,s,1)
-- Executing Ringing("CAPI/ISDNTE/5359190-1", "") in new stack
== chan_capi_indicate:4479:ENTRY=ISDNTE:PLCI=0x1901:PBX_CHAN=CAPI/ISDNTE/5359190-1:
==
-- Executing Set("CAPI/ISDNTE/5359190-1", "LANGUAGE()=de") in new stack
-- Executing GotoIf("CAPI/ISDNTE/5359190-1", "0?s|1000") in new stack
-- Executing GotoIf("CAPI/ISDNTE/5359190-1", "0?s|1000") in new stack
-- Executing GotoIf("CAPI/ISDNTE/5359190-1", "0?s|1000") in new stack
-- Executing GotoIf("CAPI/ISDNTE/5359190-1", "0?s|1000") in new stack
-- Executing GotoIf("CAPI/ISDNTE/5359190-1", "0?s|1000") in new stack
-- Executing GotoIf("CAPI/ISDNTE/5359190-1", "0?s|1000") in new stack
-- Executing GotoIf("CAPI/ISDNTE/5359190-1", "0?s|2000") in new stack
-- Executing Dial("CAPI/ISDNTE/5359190-1", "IAX2/202&SIP/200&SIP/201&CAPI/ISDNNT/92&CAPI/ISDNNT/51") in new stack
-- Called 201
== chan_capi_call:4435:ENTRY=ISDNNT:PLCI=0x0000:PBX_CHAN=CAPI/ISDNNT/92:
==
-- Called ISDNNT/92
-- didn't find CAPI device for interface 'ISDNNT' or out of memory!
-- SIP/201-c050 is ringing
== chan_capi_indicate:4479:ENTRY=ISDNTE:PLCI=0x1901:PBX_CHAN=CAPI/ISDNTE/5359190-1:
==
-- CAPI/ISDNTE/081415359190 is ringing
== chan_capi_indicate:4479:ENTRY=ISDNNT:PLCI=0x2f00:PBX_CHAN=CAPI/ISDNNT/5359190-0:
==
-- CAPI/ISDNNT/92 is proceeding passing it to CAPI/ISDNTE/5359190-1
== chan_capi_indicate:4479:ENTRY=ISDNTE:PLCI=0x1901:PBX_CHAN=CAPI/ISDNTE/5359190-1:
==
-- CAPI/ISDNNT/92 is ringing
<- Here I hangup the line ->
<- After a timeout (about 47 seconds after hangup) the call terminates I got: ->
== capi_send_detect_dtmf_req:3323:ENTRY=ISDNNT:PLCI=0x3000:PBX_CHAN=CAPI/ISDNNT/92:
== Setting up DTMF detector, flag=1
-- CAPI/ISDNNT/92 answered CAPI/ISDNTE/5359190-1
== chan_capi_indicate:4479:ENTRY=ISDNTE:PLCI=0x1901:PBX_CHAN=CAPI/ISDNTE/5359190-1:
==
== chan_capi_answer:4538:ENTRY=ISDNTE:PLCI=0x1901:PBX_CHAN=CAPI/ISDNTE/5359190-1:
==
== capi_send_connect_resp:3072:ENTRY=ISDNTE:PLCI=0x1901:PBX_CHAN=CAPI/ISDNTE/5359190-1:
== Connected to 5359190
-- Attempting native bridge of CAPI/ISDNTE/5359190-1 and CAPI/ISDNNT/92
== chan_capi_bridge:4512:ENTRY=ISDNTE:PLCI=0x1901:PBX_CHAN=CAPI/ISDNTE/5359190-1:
==
== chan_capi_bridge:4513:ENTRY=ISDNNT:PLCI=0x3000:PBX_CHAN=CAPI/ISDNNT/92:
==
== capi_send_detect_dtmf_req:3323:ENTRY=ISDNTE:PLCI=0x1901:PBX_CHAN=CAPI/ISDNTE/5359190-1:
== Setting up DTMF detector, flag=1
-- CAPI/ISDNTE/081415359190 answered CAPI/ISDNNT/5359190-0
== chan_capi_indicate:4479:ENTRY=ISDNNT:PLCI=0x2f00:PBX_CHAN=CAPI/ISDNNT/5359190-0:
==
-- Attempting native bridge of CAPI/ISDNNT/5359190-0 and CAPI/ISDNTE/081415359190
== chan_capi_bridge:4512:ENTRY=ISDNNT:PLCI=0x2f00:PBX_CHAN=CAPI/ISDNNT/5359190-0:
==
== chan_capi_bridge:4513:ENTRY=ISDNTE:PLCI=0x1801:PBX_CHAN=CAPI/ISDNTE/081415359190:
==
<- After some time (about 8 seconds) I got: ->
== Spawn extension (dialin-company, s, 10) exited non-zero on 'CAPI/ISDNTE/5359190-1'
== chan_capi_hangup:4568:ENTRY=ISDNTE:PLCI=0x1901:PBX_CHAN=CAPI/ISDNTE/5359190-1:
==
More information about the Asterisk-BSD
mailing list