keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about B100/200/400/800 ISDN BRI Cards

B800p with bristuff

15 years 6 months ago #2170 by james.zhu
hello:
please double check with your dialplan. i think somewhere is wrong in your dialplan. one more thing you must confirm is that, if you use bristuff for b800p+trxinbox, the bristuff might overwrite your dialplan and asterisk script, therefore some features may do not work properly in trixbox.
regards!
James.zhu

15 years 6 months ago #2175 by sebek72
Not using bristuff+trixbox.

this is my extensions.conf:
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]
POSTRECORDING=/usr/local/bin/postrecording

[default]
exten => _X,1,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID});
exten => _X,2,Dial(SIP/${EXTEN},60,t)
exten => _X,3,Hangup()
include => out

[out]
exten => _XX,1,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID});
exten => _XX,2,Dial(Zap/g1/${EXTEN})

exten => _NXX,1,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID});
exten => _NXX,n,Dial(Zap/g5/${EXTEN})
exten => _NXX,n,Dial(Zap/g6/${EXTEN})
exten => _NXX,n,Dial(Zap/g7/${EXTEN})

exten => _0[345]1.,1,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID});
exten => _0[345]1.,n,Dial(Zap/g5/${EXTEN})
exten => _0[345]1.,n,Dial(Zap/g6/${EXTEN})
exten => _0[345]1.,n,Dial(Zap/g7/${EXTEN})
exten => _0[345]1.,n,Dial(Zap/g8/${EXTEN})
exten => _0[345]1.,n,Dial(Zap/g1/0${EXTEN})

exten => _040.,1,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID});
exten => _040.,n,Dial(Zap/g8/${EXTEN})
exten => _040.,n,Dial(Zap/g5/${EXTEN})
exten => _040.,n,Dial(Zap/g6/${EXTEN})
exten => _040.,n,Dial(Zap/g7/${EXTEN})
exten => _040.,n,Dial(Zap/g1/0${EXTEN})

exten => _XX.,1,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID});
exten => _XX.,2,Dial(Zap/g1/0${EXTEN})

[inbound-gsm1]
exten => s,1,Goto(051685977,1)
exten => 051685977,1,Set(CALLERID(name)=GSM mobi 444)
exten => 051685977,n,LookupCIDName()
exten => 051685977,n,Set(CALLERID(name)=${CALLERIDNAME})
exten => 051685977,n,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID});
exten => 051685977,n,Dial(SIP/2&SIP/4);

[inbound-gsm2]
exten => s,1,Goto(031611011,1)
exten => 031611011,1,Set(CALLERID(name)=GSM mobi 499)
exten => 031611011,n,LookupCIDName()
exten => 031611011,n,Set(CALLERID(name)=${CALLERIDNAME})
exten => 031611011,n,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID})
exten => 031611011,n,Dial(SIP/2&SIP/4)

[inbound-gsm3]
exten => s,1,Goto(031587171,1)
exten => 031587171,1,Set(CALLERID(name)=GSM mobi 500)
exten => 031587171,n,LookupCIDName()
exten => 031587171,n,Set(CALLERID(name)=${CALLERIDNAME})
exten => 031587171,n,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID});
exten => 031587171,n,Dial(SIP/2&SIP/4);

[inbound-gsm4]
exten => s,1,Goto(040461610,1)
exten => 040461610,1,Set(CALLERID(name)=GSM simobil)
exten => 040461610,n,LookupCIDName()
exten => 040461610,n,Set(CALLERID(name)=${CALLERIDNAME})
exten => 040461610,n,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID})
exten => 040461610,n,Dial(SIP/2&SIP/4)

[inbound-isdn]
exten => s,1,Goto(4200690,1)
exten => 4200690,1,Set(CALLERID(name)=ISDN - 3000050)
exten => 4200690,n,Set(clen=${LEN(${CALLERIDNUM})})
exten => 4200690,n,Set(CALLERID(number)=${IF($[ ${clen} = 2 ]?${CALLERIDNUM}:${CALLERIDNUM:1})})
exten => 4200690,n,LookupCIDName()
exten => 4200690,n,Set(CALLERID(name)=${CALLERIDNAME})
exten => 4200690,n,Answer()
;exten => 4200690,n,System(/usr/bin/wget -q -b http://192.168.1.1/${CALLERID(num)})
exten => 4200690,n,Playback(varnost)
exten => 4200690,n,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID})
exten => 4200690,n,Dial(SIP/2&SIP/4)
exten => 4200690,n,Hangup()

[inbound-dvigala]
exten => s,1,Goto(2303077,1)
exten => 2303077,1,Set(CALLERID(name)=DVIGALO!!!)
exten => 2303077,n,Set(clen=${LEN(${CALLERIDNUM})})
exten => 2303077,n,Set(CALLERID(number)=${IF($[ ${clen} = 2 ]?${CALLERIDNUM}:${CALLERIDNUM:1})})
exten => 2303077,n,LookupCIDName()
exten => 2303077,n,Set(CALLERID(name)=${CALLERIDNAME})
exten => 2303077,n,Answer()
exten => 2303077,n,Playback(varnost)
exten => 2303077,n,MixMonitor(${UNIQUEID}.wav|a|${POSTRECORDING} ${UNIQUEID})
exten => 2303077,n,Dial(SIP/2&SIP/4)
exten => 2303077,n,Hangup()
15 years 6 months ago #2177 by sebek72
i can't understand, inbound calls work ok...outbound not.

log:

Nov 12 09:54:17 VERBOSE[21819] logger.c: -- Zap/1-1 is proceeding passing it to SIP/2-081ec568
Nov 12 09:54:17 VERBOSE[21819] logger.c: -- Zap/1-1 is making progress passing it to SIP/2-081ec568
!!!Nov 12 09:54:17 VERBOSE[20118] logger.c: -- Channel 0/1, span 1 got hangup request, cause 28
!!!Nov 12 09:54:17 VERBOSE[20118] logger.c: -- Channel 0/1, span 1 received AOC-E charging 0 units
!!!Nov 12 09:54:17 WARNING[21819] app_dial.c: Unable to forward voice
Nov 12 09:54:17 DEBUG[21819] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/1-1
Nov 12 09:54:17 DEBUG[21819] chan_zap.c: Hangup: channel: 1 index = 0, normal = 18, callwait = -1, thirdcall = -1
Nov 12 09:54:17 DEBUG[21819] chan_zap.c: Not yet hungup... Calling hangup once with icause, and clearing call
Nov 12 09:54:17 DEBUG[21819] chan_zap.c: disabled echo cancellation on channel 1
Nov 12 09:54:17 DEBUG[21819] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1
Nov 12 09:54:17 DEBUG[21819] chan_zap.c: Updated conferencing on 1, with 0 conference users
Nov 12 09:54:17 DEBUG[21819] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/1-1
Nov 12 09:54:17 DEBUG[21819] chan_zap.c: disabled echo cancellation on channel 1
!!!Nov 12 09:54:17 VERBOSE[21819] logger.c: -- Hungup 'Zap/1-1'
!!!Nov 12 09:54:17 VERBOSE[21819] logger.c: == Everyone is busy/congested at this time (1:0/0/1)
Nov 12 09:54:17 DEBUG[21819] app_dial.c: Exiting with DIALSTATUS=CHANUNAVAIL.
Nov 12 09:54:17 VERBOSE[21819] logger.c: -- Executing Dial("SIP/2-081ec568", "Zap/g2/$0{EXTEN}") in new stack
Nov 12 09:54:17 NOTICE[21819] app_dial.c: Unable to create channel of type 'Zap' (cause 34 - Circuit/channel congestion)
Nov 12 09:54:17 VERBOSE[21819] logger.c: == Everyone is busy/congested at this time (1:0/1/0)
Nov 12 09:54:17 DEBUG[21819] app_dial.c: Exiting with DIALSTATUS=CONGESTION.
Nov 12 09:54:17 VERBOSE[21819] logger.c: -- Executing Dial("SIP/2-081ec568", "Zap/g3/$0{EXTEN}") in new stack
Nov 12 09:54:17 NOTICE[21819] app_dial.c: Unable to create channel of type 'Zap' (cause 34 - Circuit/channel congestion)
!!!Nov 12 09:54:17 VERBOSE[21819] logger.c: == Everyone is busy/congested at this time (1:0/1/0)
!!!Nov 12 09:54:17 DEBUG[21819] app_dial.c: Exiting with DIALSTATUS=CONGESTION.
Nov 12 09:54:17 VERBOSE[21819] logger.c: -- Executing Dial("SIP/2-081ec568", "Zap/g4/$0{EXTEN}") in new stack
!!!Nov 12 09:54:17 NOTICE[21819] app_dial.c: Unable to create channel of type 'Zap' (cause 34 - Circuit/channel congestion)
!!!Nov 12 09:54:17 VERBOSE[21819] logger.c: == Everyone is busy/congested at this time (1:0/1/0)
!!!Nov 12 09:54:17 DEBUG[21819] app_dial.c: Exiting with DIALSTATUS=CONGESTION.
Nov 12 09:54:17 VERBOSE[21819] logger.c: -- Executing Dial("SIP/2-081ec568", "Zap/g5/$0{EXTEN}") in new stack
!!!Nov 12 09:54:17 NOTICE[21819] app_dial.c: Unable to create channel of type 'Zap' (cause 34 - Circuit/channel congestion)
!!!Nov 12 09:54:17 VERBOSE[21819] logger.c: == Everyone is busy/congested at this time (1:0/1/0)
!!!Nov 12 09:54:17 DEBUG[21819] app_dial.c: Exiting with DIALSTATUS=CONGESTION.
!!!Nov 12 09:54:17 VERBOSE[21819] logger.c: -- Executing Dial("SIP/2-081ec568", "Zap/g6/$0{EXTEN}") in new stack
!!!Nov 12 09:54:17 NOTICE[21819] app_dial.c: Unable to create channel of type 'Zap' (cause 34 - Circuit/channel congestion)
!!!Nov 12 09:54:17 VERBOSE[21819] logger.c: == Everyone is busy/congested at this time (1:0/1/0)
Nov 12 09:54:17 DEBUG[21819] app_dial.c: Exiting with DIALSTATUS=CONGESTION.
!!!Nov 12 09:54:17 VERBOSE[21819] logger.c: == Auto fallthrough, channel 'SIP/2-081ec568' status is 'CONGESTION'
Time to create page: 0.039 seconds
Powered by Kunena Forum