Mark this config is a little nasty but it is how I got it to work.
zaptel.conf
span=1,0,0,esf,b8zs
e&m=1-24
zapata.conf
context=OutBound
signalling=em_w
immediate=yes
group=1
channel => 1-24
[OutBound]
exten => s,1,DigitTimeout(0)
exten => s,2,ResponseTimeout,10
exten => s,3,Playtones(350+440)
exten => _X,1,NoOp
exten => _X,2,SetVar(Predigits=${EXTEN})
exten => _X,3,StopPlaytones
exten => _X,4,Goto(s-gathermoredigits,1)
exten => s-gathermoredigits,1,NoOp
exten => s-gathermoredigits,2,DigitTimeout,5
exten => s-gathermoredigits,3,WaitExten(1)
exten => _X.,1,Dial(${TRUNK1}/${Predigits}${EXTEN},60)
exten => _X.,2,Congestion
Hope this makes sense:)
Chris.
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of
mfarver@ticom.com
Sent: Monday, November 29, 2004 8:29 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] Outbound E&M?
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
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users