[Asterisk-Users] Outbound E&M?

mfarver at ticom.com mfarver at ticom.com
Mon Nov 29 20:28:40 MST 2004


I've got a new setup (different building) where Asterisk is sitting
between the PBX and phone company on a E&M T1 line.

Mitel PBX <-> Asterisk <-> Phone company

Inbound works.  Asterisk gets the in-band digits from the phone company
and hands the call off to the Mitel just fine.

Outbound is weird.  Asterisk seems to expect that the mitel will send
routing information (out-of-band, I assume) when the line goes off hook. 
The mitel doesn't send anything, so the call drops into the s extension. 
After waiting a few seconds, the mitel sends the number in-band as DTMF.  
I tried putting DISA with no password into the s extension, hoping it
would trap the DTMF and hand it off but instead DISA exits non-zero and
never transfers control to the local context.  Without Asterisk in-betwen
all works fine.  Any ideas.. or is there a better way to do this?

--snip--
*CLI>     -- Starting simple switch on 'Zap/66-1'
Nov 30 02:44:54 DEBUG[4684]: chan_zap.c:1221 zt_enable_ec: No
echocancellation requested
    -- Executing Answer("Zap/66-1", "") in new stack
Nov 30 02:44:54 DEBUG[4684]: chan_zap.c:2288 zt_answer: Took Zap/66-1 off
hook
    -- Executing DISA("Zap/66-1", "no-password| mitel-chantilly") in new
stack
Nov 30 02:44:54 DEBUG[4684]: app_disa.c:160 disa_exec: Context:
mitel-chantilly
Nov 30 02:44:54 DEBUG[4684]: app_disa.c:165 disa_exec: DISA no-password
login success
Nov 30 02:44:54 DEBUG[4684]: channel.c:1128 ast_settimeout: Scheduling
timer at 160 sample intervals
Nov 30 02:44:54 DEBUG[4684]: channel.c:1379 ast_read: Generator got voice,
switching to phase locked mode
Nov 30 02:44:54 DEBUG[4684]: channel.c:1128 ast_settimeout: Scheduling
timer at 0 sample intervals
Nov 30 02:44:54 DEBUG[4684]: chan_zap.c:4031 zt_read: DTMF digit: 1 on
Zap/66-1
Nov 30 02:44:54 DEBUG[4684]: channel.c:1128 ast_settimeout: Scheduling
timer at 0 sample intervals
Nov 30 02:44:54 DEBUG[4684]: chan_zap.c:4031 zt_read: DTMF digit: 5 on
Zap/66-1
Nov 30 02:44:54 DEBUG[4684]: chan_zap.c:4031 zt_read: DTMF digit: 1 on
Zap/66-1
Nov 30 02:44:55 DEBUG[4684]: chan_zap.c:4031 zt_read: DTMF digit: 2 on
Zap/66-1
Nov 30 02:44:55 DEBUG[4684]: chan_zap.c:4031 zt_read: DTMF digit: 3 on
Zap/66-1
Nov 30 02:44:55 DEBUG[4684]: chan_zap.c:4031 zt_read: DTMF digit: 4 on
Zap/66-1
Nov 30 02:44:55 DEBUG[4684]: chan_zap.c:4031 zt_read: DTMF digit: 5 on
Zap/66-1
Nov 30 02:44:55 DEBUG[4684]: chan_zap.c:4031 zt_read: DTMF digit: 5 on
Zap/66-1
Nov 30 02:44:55 DEBUG[4684]: chan_zap.c:4031 zt_read: DTMF digit: 4 on
Zap/66-1
Nov 30 02:44:56 DEBUG[4684]: chan_zap.c:4031 zt_read: DTMF digit: 7 on
Zap/66-1
Nov 30 02:44:56 DEBUG[4684]: chan_zap.c:4031 zt_read: DTMF digit: 6 on
Zap/66-1
  == Spawn extension (frommitel-chantilly, s, 2) exited non-zero on
'Zap/66-1'
Nov 30 02:45:04 DEBUG[4684]: chan_zap.c:1975 zt_hangup: Hangup: channel:
66 index = 0, normal = 33, callwait = -1, thirdcall = -1
Nov 30 02:45:04 DEBUG[4684]: chan_zap.c:2377 zt_setoption: Set option TDD
MODE, value: OFF(0) on Zap/66-1
Nov 30 02:45:04 DEBUG[4684]: chan_zap.c:1193 update_conf: Updated
conferencing on 66, with 0 conference users
    -- Hungup 'Zap/66-1

----extensions.conf-----
[incoming]
exten => _642X  1,Dial(${MITELTRUNK},15,D(${EXTEN})
exten => _642X  101,Congestion

[frommitel]
exten => s,             1,Answer
exten => s,             2,Disa(no-password, local)
exten => s,             3,Congestion

---zapata.conf--
[channels]

;Mitel
immediate=no
context=frommitel-chantilly
signalling=em_w
group=>1
channel => 49-72

;Verizon
immediate=no
context=chantilly-local
signalling=em_w
group=>2
channel => 73-96
immediate=no


Thanks
Mark Farver





More information about the asterisk-users mailing list