Nathan Bell
2006-Nov-12  13:08 UTC
[asterisk-users] outgoing works, incoming fails on asterisk passthrough to inter-tel
Hi everybody,
Well, I've finally got asterisk to to talk nicely with my Intertel pbx. 
Currently there is a outside T1 line (e&m wink start, esf, b8zs) 
connected to asterisk, and then asterisk connected similarly to my 
Intertel pbx. For right now all asterisk is doing is passing calls 
between the two.
When I call out from the pbx, I can connect perfectly to the outside 
world. When I call from outside, I can talk to the asterisk box, but 
asterisk fails to pass the call to the pbx. The following is the log of 
the connection (numbers scrambled to protect the innocent). At the end 
I've included my extensions.conf file. The incoming phone number is 
801-555-5555, and I'm calling 555-5154
I've tried changing the "exten =>
_X.,2,Dial(Zap/g3/5555${EXTEN},15,r)"
line that transfers the call to the pbx to exlude the 5555, add in the 
caller id, and various other things, but the results are always 
identical. If anyone has any experience with talking to inter-tel pbx's, 
please let me know what trick is necessary.
Thanks a million.
call log follows:
Nov 12 12:48:35 VERBOSE[32609] logger.c:     -- Starting simple switch 
on 'Zap/73-1'
Nov 12 12:48:36 DEBUG[32609] chan_zap.c: DTMF digit: * on Zap/73-1
Nov 12 12:48:36 DEBUG[32609] chan_zap.c: DTMF digit: 8 on Zap/73-1
Nov 12 12:48:36 DEBUG[32609] chan_zap.c: DTMF digit: 0 on Zap/73-1
Nov 12 12:48:36 DEBUG[32609] chan_zap.c: DTMF digit: 1 on Zap/73-1
Nov 12 12:48:36 DEBUG[32609] chan_zap.c: DTMF digit: 5 on Zap/73-1
Nov 12 12:48:36 DEBUG[32609] chan_zap.c: DTMF digit: 5 on Zap/73-1
Nov 12 12:48:36 DEBUG[32609] chan_zap.c: DTMF digit: 5 on Zap/73-1
Nov 12 12:48:37 DEBUG[32609] chan_zap.c: DTMF digit: 5 on Zap/73-1
Nov 12 12:48:37 DEBUG[32609] chan_zap.c: DTMF digit: 5 on Zap/73-1
Nov 12 12:48:37 DEBUG[32609] chan_zap.c: DTMF digit: 5 on Zap/73-1
Nov 12 12:48:37 DEBUG[32609] chan_zap.c: DTMF digit: 5 on Zap/73-1
Nov 12 12:48:37 DEBUG[32609] chan_zap.c: DTMF digit: * on Zap/73-1
Nov 12 12:48:37 DEBUG[32609] chan_zap.c: DTMF digit: 1 on Zap/73-1
Nov 12 12:48:37 DEBUG[32609] chan_zap.c: DTMF digit: 5 on Zap/73-1
Nov 12 12:48:38 DEBUG[32609] chan_zap.c: DTMF digit: 4 on Zap/73-1
Nov 12 12:48:38 DEBUG[32609] chan_zap.c: DTMF digit: * on Zap/73-1
Nov 12 12:48:38 DEBUG[32609] chan_zap.c: Enabled echo cancellation on 
channel 73
Nov 12 12:48:38 VERBOSE[32609] logger.c:     -- Executing 
Goto("Zap/73-1", "to-intertel|154|1") in new stack
Nov 12 12:48:38 VERBOSE[32609] logger.c:     -- Goto (to-intertel,154,1)
Nov 12 12:48:38 VERBOSE[32609] logger.c:     -- Executing 
SetTransferCapability("Zap/73-1", "SPEECH") in new stack
Nov 12 12:48:38 VERBOSE[32609] logger.c:     -- Setting transfer 
capability to: 0x00 - SPEECH.
Nov 12 12:48:38 VERBOSE[32609] logger.c:     -- Executing 
Dial("Zap/73-1", "Zap/g3/5555154|15|r") in new stack
Nov 12 12:48:38 DEBUG[32609] chan_zap.c: Dialing '5555154'
Nov 12 12:48:38 DEBUG[32609] chan_zap.c: Deferring dialing...
Nov 12 12:48:38 VERBOSE[32609] logger.c:     -- Called g3/5555154
Nov 12 12:48:38 DEBUG[32609] chan_zap.c: Requested indication 3 on 
channel Zap/73-1
Nov 12 12:48:38 DEBUG[32609] chan_zap.c: Exception on 65, channel 49
Nov 12 12:48:38 DEBUG[32609] chan_zap.c: Got event Wink/Flash(3) on 
channel 49 (index 0)
Nov 12 12:48:38 DEBUG[32609] chan_zap.c: Ignoring wink on channel 49
Nov 12 12:48:38 DEBUG[32609] chan_zap.c: Exception on 65, channel 49
Nov 12 12:48:38 DEBUG[32609] chan_zap.c: Got event Hook Transition 
Complete(12) on channel 49 (index 0)
Nov 12 12:48:40 DEBUG[32609] chan_zap.c: Exception on 65, channel 49
Nov 12 12:48:40 DEBUG[32609] chan_zap.c: Got event Dial Complete(9) on 
channel 49 (index 0)
Nov 12 12:48:40 DEBUG[32609] chan_zap.c: Enabled echo cancellation on 
channel 49
Nov 12 12:48:40 DEBUG[32609] chan_zap.c: Engaged echo training on channel 49
Nov 12 12:48:41 DEBUG[32609] chan_zap.c: Exception on 65, channel 49
Nov 12 12:48:41 DEBUG[32609] chan_zap.c: Got event Dial Complete(9) on 
channel 49 (index 0)
Nov 12 12:48:41 DEBUG[32609] chan_zap.c: Echo cancellation already on
Nov 12 12:48:54 VERBOSE[32609] logger.c:     -- Nobody picked up in 15000 ms
Nov 12 12:48:54 DEBUG[32609] chan_zap.c: Requested indication -1 on 
channel Zap/73-1
Nov 12 12:48:54 DEBUG[32609] chan_zap.c: Hangup: channel: 49 index = 0, 
normal = 65, callwait = -1, thirdcall = -1
Nov 12 12:48:54 DEBUG[32609] chan_zap.c: disabled echo cancellation on 
channel 49
Nov 12 12:48:54 DEBUG[32609] chan_zap.c: Set option TDD MODE, value: 
OFF(0) on Zap/49-1
Nov 12 12:48:54 DEBUG[32609] chan_zap.c: Updated conferencing on 49, 
with 0 conference users
Nov 12 12:48:54 VERBOSE[32609] logger.c:     -- Hungup 'Zap/49-1'
Nov 12 12:48:54 DEBUG[32609] app_dial.c: Exiting with DIALSTATUS=NOANSWER.
Nov 12 12:48:54 VERBOSE[32609] logger.c:     -- Executing 
Playback("Zap/73-1", "vm-nobodyavail") in new stack
Nov 12 12:48:54 DEBUG[32609] chan_zap.c: Took Zap/73-1 off hook
Nov 12 12:48:54 DEBUG[32558] channel.c: Avoiding initial deadlock for 
'Zap/73-1'
Nov 12 12:48:54 DEBUG[32609] channel.c: Scheduling timer at 160 sample 
intervals
Nov 12 12:48:54 VERBOSE[32609] logger.c:     -- Playing 'vm-nobodyavail'
(language 'en')
Nov 12 12:48:56 DEBUG[32609] channel.c: Scheduling timer at 0 sample 
intervals
Nov 12 12:48:56 DEBUG[32609] channel.c: Scheduling timer at 0 sample 
intervals
Nov 12 12:48:56 VERBOSE[32609] logger.c:     -- Executing 
Hangup("Zap/73-1", "") in new stack
Nov 12 12:48:56 VERBOSE[32609] logger.c:   == Spawn extension 
(to-intertel, 154, 4) exited non-zero on 'Zap/73-1'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '8015555555'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '8015555555'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '154'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is 'to-intertel'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is 'Zap/73-1'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is 'Zap/49-1'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is 'Hangup'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '(null)'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '2006-11-12
12:48:38'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '2006-11-12
12:48:54'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '2006-11-12
12:48:56'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '18'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '2'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is 'ANSWERED'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is 'DOCUMENTATION'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '(null)'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '1163360915.4'
Nov 12 12:48:56 DEBUG[32609] pbx.c: Function result is '(null)'
Nov 12 12:48:56 DEBUG[32609] chan_zap.c: Hangup: channel: 73 index = 0, 
normal = 89, callwait = -1, thirdcall = -1
Nov 12 12:48:56 DEBUG[32609] chan_zap.c: disabled echo cancellation on 
channel 73
Nov 12 12:48:56 DEBUG[32609] chan_zap.c: Set option TDD MODE, value: 
OFF(0) on Zap/73-1
Nov 12 12:48:56 DEBUG[32609] chan_zap.c: Updated conferencing on 73, 
with 0 conference users
Nov 12 12:48:56 VERBOSE[32609] logger.c:     -- Hungup 'Zap/73-1'
Nov 12 12:49:03 DEBUG[32571] chan_zap.c: disabled echo cancellation on 
channel 73
extensions.conf follows:
; --- First all the incoming routes ---
; from outside T1
[from-ptsn]
exten => s,1,Answer()
include => intertel-ext
exten => t,1,Playback(vm-goodbye)
exten => t,2,Hangup()
; from intertel-axxess box
[from-intertel]
include => internal
; generic interal route
[internal]
exten => s,1,Answer()
include => intertel-ext
include => to-ptsn
; --- next all the outgoing routes ---
; send call to outside world
[to-ptsn]
; Trunk group '4' is the outgoing T1
exten => _X.,1,SetTransferCapability(SPEECH)
exten => _X.,2,Dial(Zap/g4/${EXTEN},15,r)
exten => _X.,3,Playback(vm-nobodyavail)
exten => _X.,4,Hangup()
exten => _X.,103,Playback(vm-nobodyavail)
exten => _X.,104,Hangup()
; check if extension is to intertel
[intertel-ext]
; I think this is all of our DID numbers...
; internal extensions
exten => _1XX,1,Goto(to-intertel,${EXTEN},1)
; main number
exten => 033,1,Goto(to-intertel,${EXTEN},1)
; customer service number
exten => 418,1,Goto(to-intertel,${EXTEN},1)
; fax number
exten => 096,1,Goto(to-intertel,${EXTEN},1)
; other did numbers no one seems to know anything about
exten => _2[2-3]X,1,Goto(to-intertel,${EXTEN},1)
; send call to intertel
[to-intertel]
; Trunk '3' is the intertel box
exten => _X.,1,SetTransferCapability(SPEECH)
exten => _X.,2,Dial(Zap/g3/5555${EXTEN},15,r)
exten => _X.,3,Playback(vm-nobodyavail)
exten => _X.,4,Hangup()
exten => _X.,103,Playback(vm-goodbye)
exten => _X.,104,Hangup()
; --- lastly all of the macros we'll be using ---
; none as of now
Nathan Bell
2006-Nov-17  17:10 UTC
[asterisk-users] outgoing works, incoming fails on asterisk passthrough to inter-tel
Alright, I've figured out that by adding a wait to the dial I can get it 
to connect to the inter-tel pbx. I still can't get it to either a) pass 
the caller id, or b) talk to the correct extension. The inter-tel box 
always redirects the call to the operator.
When the call comes in on the T1 line it looks like this: 
*8015555555*154 where 801-555-5555 is the incoming caller id and 154 is 
the extension I'm dialling (the first 4 digits get cut off before I ever 
receive a connection). When I duplicate this using 
Dial(Zap/g3/w*${CALLERID}*${EXTEN},15,or) it won't connect (Exiting with 
DIALSTATUS=NOANSWER) at all. If I leave it with just 
Dial(Zap/g3/w${EXTEN},15,or) it will connect to the operator with no 
caller id being set.
Any help would be greatly appreciated. Thanks
Nathan Bell
Nathan Bell wrote:
> Hi everybody,
>
> Well, I've finally got asterisk to to talk nicely with my Intertel 
> pbx. Currently there is a outside T1 line (e&m wink start, esf, b8zs) 
> connected to asterisk, and then asterisk connected similarly to my 
> Intertel pbx. For right now all asterisk is doing is passing calls 
> between the two.
>
> When I call out from the pbx, I can connect perfectly to the outside 
> world. When I call from outside, I can talk to the asterisk box, but 
> asterisk fails to pass the call to the pbx. The following is the log 
> of the connection (numbers scrambled to protect the innocent). At the 
> end I've included my extensions.conf file. The incoming phone number 
> is 801-555-5555, and I'm calling 555-5154
>
> I've tried changing the "exten => 
> _X.,2,Dial(Zap/g3/5555${EXTEN},15,r)" line that transfers the call to 
> the pbx to exlude the 5555, add in the caller id, and various other 
> things, but the results are always identical. If anyone has any 
> experience with talking to inter-tel pbx's, please let me know what 
> trick is necessary.
>
> Thanks a million.
>
> call log follows:
> *** call log cut to save space, see original message for log ***
>
> extensions.conf follows:
> ; --- First all the incoming routes ---
> ; from outside T1
> [from-ptsn]
> exten => s,1,Answer()
> include => intertel-ext
> exten => t,1,Playback(vm-goodbye)
> exten => t,2,Hangup()
>
> ; from intertel-axxess box
> [from-intertel]
> include => internal
>
> ; generic interal route
> [internal]
> exten => s,1,Answer()
> include => intertel-ext
> include => to-ptsn
>
> ; --- next all the outgoing routes ---
> ; send call to outside world
> [to-ptsn]
> ; Trunk group '4' is the outgoing T1
> exten => _X.,1,SetTransferCapability(SPEECH)
> exten => _X.,2,Dial(Zap/g4/${EXTEN},15,r)
> exten => _X.,3,Playback(vm-nobodyavail)
> exten => _X.,4,Hangup()
> exten => _X.,103,Playback(vm-nobodyavail)
> exten => _X.,104,Hangup()
>
> ; check if extension is to intertel
> [intertel-ext]
> ; I think this is all of our DID numbers...
> ; internal extensions
> exten => _1XX,1,Goto(to-intertel,${EXTEN},1)
> ; main number
> exten => 033,1,Goto(to-intertel,${EXTEN},1)
> ; customer service number
> exten => 418,1,Goto(to-intertel,${EXTEN},1)
> ; fax number
> exten => 096,1,Goto(to-intertel,${EXTEN},1)
> ; other did numbers no one seems to know anything about
> exten => _2[2-3]X,1,Goto(to-intertel,${EXTEN},1)
>
> ; send call to intertel
> [to-intertel]
> ; Trunk '3' is the intertel box
> exten => _X.,1,SetTransferCapability(SPEECH)
> exten => _X.,2,Dial(Zap/g3/5555${EXTEN},15,r)
> exten => _X.,3,Playback(vm-nobodyavail)
> exten => _X.,4,Hangup()
> exten => _X.,103,Playback(vm-goodbye)
> exten => _X.,104,Hangup()
>
> ; --- lastly all of the macros we'll be using ---
> ; none as of now
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users