[Asterisk-Users] quad BRI. Outgoing calls droped in 10 seconds.

Dmitry Mishchenko arkadia at odessa.net
Tue Apr 6 13:30:17 MST 2004


We have quadBRI configured 1 port in TE mode 2,3,4 ports in NE mode.
We are trying to place a call from the phone connected to BRI card port #4 to
city number through ISDN line connected to port #1.
Number successfully dialed. Person on the other end answering the line. But
conversation can't last more then 10 seconds.
Below is a log of such call.

Its not clear for me why we appear in "from_telco" context when we are making
a call?
We suppose to be in this context only when we are receiving  calls from
telco.

Thanks,
Dmitry.

*CLI>   == D-Channel on span 4 up
    -- Executing Dial("Zap/11-1", "Zap/g1/6511191") in new stack
    -- Called g1/6511191
    -- Accepting call from '2106' to '96511191' on channel 2, span 4
    -- Zap/1-1 is ringing
    -- Zap/1-1 answered Zap/11-1
    -- Attempting native bridge of Zap/11-1 and Zap/1-1
    -- Extension '6511191' in context 'from_telco' from '' does not exist.
Rejecting call on channel 1, span 1
    -- Channel 2, span 4 got hangup
    -- Hungup 'Zap/1-1'
  == Spawn extension (local, 96511191, 1) exited non-zero on 'Zap/11-1'
    -- Hungup 'Zap/11-1'

extensions.conf

[citylocal]
exten => _9NXXXXXX,1,Dial(Zap/g1/${EXTEN:1})
exten => _9NXXXXXX,2,Congestion

[ourisdn]
exten => 2101,1,Macro(oneline,Zap/g2/2101)
exten => 2102,1,Macro(oneline,Zap/g2/2102)
exten => 2103,1,Macro(oneline,Zap/g3/2103)
exten => 2104,1,Macro(oneline,Zap/g3/2104)
exten => 2105,1,Macro(oneline,Zap/g4/2105)
exten => 2106,1,Macro(oneline,Zap/g4/2106)

[from_telco]
exten => 4295119,1,GotoIfTime(6:00-18:00|mon-fri|*|*?open,s,1)
exten => 4295119,2,GoTo(ansandld,s,1)
exten => 4313030,1,GotoIfTime(6:00-18:00|mon-fri|*|*?open,s,1)
exten => 4313030,2,GoTo(ansandld,s,1)

[open]
exten => s,1,noop
exten => s,2,Macro(oneline,Zap/g2/2101&Zap/g2/2102&Zap/g3/2103&Zap/g4/2106)

[local]
exten => s,1,ResponseTimeOut(10)
exten => s,2,DigitTimeOut(5)
include => citylocal
include => ourisdn
exten => 8500,1,VoicemailMain
exten => 8500,2,HangUp

[ansandld]
exten => s,1,Answer                     ; Answer the line
exten => s,2,Wait(1)
exten => s,3,DigitTimeout,5             ; Set Digit Timeout to 5 seconds
exten => s,4,ResponseTimeout,10         ; Set Response Timeout to 10 seconds
exten => s,5,BackGround(demo-congrats)  ; Play a congratulatory message
exten => #,1,Playback(demo-thanks)      ; "Thanks for trying thedemo"
exten => #,2,Hangup                     ; Hang them up.
exten => t,1,Goto(#,1)                  ; If they take too long, give up
include => longdist

[macro-stdexten];
;
; Standard extension macro:
;   ${ARG1} - Extension  (we could have used ${MACRO_EXTEN} here as well
;   ${ARG2} - Device(s) to ring
;
exten => s,1,Dial(${ARG2},20)                                   ; Ring the
interface, 20 seconds maximum
exten => s,2,Voicemail(u${ARG1})                                ; If
unavailable, send to voicemail w/ unavail announce
exten => s,3,Goto(default,s,1)                                  ; If they
press #, return to start
exten => s,102,Voicemail(b${ARG1})                              ; If busy,
send to voicemail w/ busy announce
exten => s,103,Goto(default,s,1)                                ; If they
press #, return to start

[macro-oneline]
exten => s,1,Dial(${ARG1})
exten => s,2,HangUp

[default]


zapata.conf

[channels]
echocancel=yes
switchtype = euroisdn
pridialplan = local

;--S0 TE (ISDN lines on S/T 1)
group = 1
signalling = bri_cpe_ptmp
;signalling = bri_cpe
; for a p2p BRI line, change this to bri_cpe
context => from_telco
channel => 1-2

;--S0 NT (ISDN phones on S/T 2, 3 and 4)
signalling => bri_net_ptmp
context => local

group => 2
channel => 4-5

group => 3
channel => 7-8

group => 4
channel =>10-11







More information about the asterisk-users mailing list