Alexandru Voinescu
2006-Oct-31 01:59 UTC
[asterisk-users] Asterisk does not bridge zap channels on outgoing calls
Hello... I have a big problem with asterisk. Every time i make a call asterisk does not bridge the zap channels. The zap channel from which i'm calling remains in state:ring and applicaton:dial and the zap channel with the external line configured remains in state:dialling an Application:AppDial. Zap/20-1 agentie s 1 Dialing AppDial (Outgoing Line) 09399 (None) Zap/9-1 int_omg 09399 5 Ring Dial Zap/g5/9399||T 00:07:58 (None) Obviously, this is a big problem for us... Below are my zapata.conf, zaptel.conf and extensions.conf: -------------------------- zapata.conf -------------------------- [channels] usecallerid=yes hidecallerid=no echocancel=yes musiconhold=service busydetect=yes ;callprogress=yes busycount=3 flash=20 rxflash=40 transfer=yes threewaycalling=yes ;rxgain=100% ;txgain=1.0 ;relaxdtmf=yes ;------------------------------ context=int_soft ;------------------------------ group=1 callgroup=1 pickupgroup=1,6,7 threewaycalling=yes transfer=yes ;useincomingcalleridonzaptransfer=yes callwaitingcallerid=yes ;echocancelwhenbriged=yes immediate=no rxgain=-2.0 txgain=2.2 signalling=fxo_ks callerid=Soft 1 channel=>1 callerid=Soft 2 channel=>2 callerid=Soft 3 channel=>3 callerid=Soft 4 channel=>4 callerid=Soft 5 channel=>5 callerid=Soft 6 channel=>6 callerid=Soft 7 channel=>7 ;------------------------------ context=int_omg ;------------------------------ group=2 callgroup=2 pickupgroup=2,5,6 threewaycalling=yes transfer=yes ;useincomingcalleridonzaptransfer=yes callwaitingcallerid=yes ;echocancelwhenbriged=yes immediate=no rxgain=-2.0 txgain=2.2 callerid=OMG 28 channel=>8 callerid=OMG 29 channel=>9 callerid=OMG 30 channel=>10 callerid=OMG 31 channel=>11 callerid=OMG 32 channel=>12 callerid=OMG 33 channel=>13 callerid=OMG 34 channel=>14 callerid=OMG 35 channel=>15 callerid=OMG 36 channel=>16 ;------------------- ;Placa TDM24XXP - 24 DE INTERIOARE; CONTEXT NOU!! ;------------------- ;------------------------------ context=int_agentie ;------------------------------ group=3 callgroup=3 pickupgroup=3,4,5,10 threewaycalling=yes transfer=yes ;useincomingcalleridonzaptransfer=yes callwaitingcallerid=yes ;echocancelwhenbriged=yes immediate=no rxgain=-2.0 txgain=2.2 callerid=Agentie 45 channel=>25 callerid=Agentie 46 channel=>26 callerid=Agentie 47 channel=>27 callerid=Agentie 48 channel=>28 callerid=Agentie 49 channel=>29 callerid=Agentie 50 channel=>30 callerid=Agentie 51 channel=>31 callerid=Agentie 52 channel=>32 callerid=Agentie 53 channel=>33 callerid=Agentie 54 channel=>34 callerid=Agentie 55 channel=>35 callerid=Agentie 56 channel=>36 callerid=Agentie 57 channel=>37 callerid=Agentie 58 channel=>38 callerid=Agentie 59 channel=>39 callerid=Agentie 60 channel=>40 callerid=Agentie 61 channel=>41 callerid=Agentie 62 channel=>42 callerid=Agentie 63 channel=>43 callerid=Agentie 64 channel=>44 callerid=Clopotel 65 channel=>45 callerid=Clopotel 66 channel=>46 callerid=Clopotel 67 channel=>47 callerid=Clopotel 68 channel=>48 ;------------------------------ context=cap_hunting ;------------------------------ group=4 callgroup=4 callerid=asreceived cidsignalling=v23 cidstart=ring transfer=yes threewaycalling=yes immediate=no useincomingcalleridonzaptransfer=yes ;echocancelwhenbriged=yes ;musiconhold=guitar sendcalleridafter=2 rxgain=10.2 txgain=1.8 signalling=fxs_ks channel=>17 ;------------------------------ context=omegasoft ;------------------------------ group=10 callgroup=10 callerid=asreceived cidsignalling=v23 cidstart=ring transfer=yes ;threewaycalling=yes immediate=no useincomingcalleridonzaptransfer=yes ;echocancelwhenbriged=yes ;musiconhold=guitar sendcalleridafter=2 rxgain=10.2 txgain=1.8 signalling=fxs_ks channel=>18 ;------------------------------ context=agentie ;------------------------------ group=5 callgroup=5 callerid=asreceived cidsignalling=v23 cidstart=ring transfer=yes threewaycalling=yes ;immediate=no ;useincomingcalleridonzaptransfer=yes ;echocancelwhenbriged=yes ;musiconhold=guitar sendcalleridafter=2 rxgain=10.2 txgain=1.8 signalling=fxs_ks channel=>19-24 ;------------------------------ context=tehnic ;------------------------------ group=6 callgroup=6 callerid=asreceived cidsignalling=v23 cidstart=ring transfer=yes threewaycalling=yes ;immediate=no useincomingcalleridonzaptransfer=yes ;callprogres=yes ;echocancelwhenbriged=yes rxgain=10.2 txgain=1.8 signalling=fxs_ks channel=>80 ;------------------------------ context=service ;------------------------------ group=7 callgroup=7 ;echocancelwhenbriged=yes callerid=asreceived answeronpolarityswitch=yes hanguponpolarityswitch=yes ;cidstart=ring ;cidsignalling=v23 sendcalleridafter=2 rxgain=5.5 txgain=7.2 signalling=fxs_ks channel=>81 ;------------------------------ context=service_out ;------------------------------ group=7 callgroup=7 ;echocancelwhenbriged=yes callerid=asreceived ;cidstart=ring ;cidsignalling=v23 answeronpolarityswitch=yes hanguponpolarityswitch=yes sendcalleridafter=2 rxgain=4.5 txgain=5.2 signalling=fxs_ks channel=>82 ;------------------------------ context=mobline ;------------------------------ group=8 ;echocancelwhenbriged=yes callerid=asreceived answeronpolarityswitch=yes hanguponpolarityswitch=yes sendcalleridafter=2 ;rxgain=5.5 ;txgain=3.2 signalling=fxs_ks channel=>83 ;------------------------------ context=mediasat ;------------------------------ group=9 callerid=asreceived ;switchtype=national ;echocancelwhenbriged=yes echotraining=no ;rxgain=1.0 ;txgain=1.0 signalling=pri_cpe channel=>49-63,65-79 -------------------------------- zaptel.conf -------------------------------- #setari generale loadzone=us defaultzone=us #TDM2400P - 16 porturi FXS + 8 porturi FXO fxoks=1-16 fxsks=17-24 #TDM2400P - 24 porturi FXS fxoks=25-48 #TE110P - 30 canale ISDN - MEDIASAT(momentan) span=3,1,0,ccs,hdb3,crc4 indclear=49-63,65-79 fcshdlc=64 #TDM400P - 4 porturi FXO fxsks=80-83 ----------------------------- extensions.conf ----------------------------- [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${CALLEDFAX}/${UNIQUEID}) exten => s,2,rxfax(${FAXFILE}.tif) [macro-stdexten] ;exten => s,1,Dial(${ARG2},120,t) ;exten => s,2,Goto(s-${DIALSTATUS},1) ;exten => s,105,Goto(nothere,s,1) exten => s-NOANSWER,1,Voicenail(u${ARG1}) exten => s-NOANSWER,2,Goto(nothere,s,1) exten => s-BUSY,2,Goto(nothere,s,1) exten => _s-.,1,Goto(s-NOANSWER,1) [macro-out-mediasat] exten => s,1,Set(MEDIASAT=81.180.226.177) exten => s,2,Set(CALLERID(number)=0318243800) exten => s,3,ChanIsAvail(SIP/${ARG1}@${MEDIASAT}) exten => s,4,SetCDRUserField(${UNIQUEID}) exten => s,5,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => s,6,Dial(SIP/${ARG1}@${MEDIASAT},400,t) exten => s,107,Background(tt-allbusy) exten => s,108,Hangup() [fax] exten => 123456789,1,Macro(faxreceive) ;[conferinte] ;exten => 90,1,MeetMe(90) ;exten => 91,1,MeetMe(91) ;exten => 92,1,MeetMe(92) ;-------------------------------- [int_soft] ;-------------------------------- include => parkedcalls include => tehnic include => service include => mobline include => int_omg include => agentie ;exten => XX,1,SetCDRUserField(${UNIQUEID}) ;Zap-1 BUSIT. PORT ARS. exten => 21,1,SetCDRUserField(${UNIQUEID}) exten => 21,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 21,3,Dial(Zap/1,20,tT) exten => 21,4,Hangup() exten => 22,1,SetCDRUserField(${UNIQUEID}) exten => 22,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 22,3,Dial(Zap/2,20,tT) exten => 22,4,Hangup() exten => 23,1,SetCDRUserField(${UNIQUEID}) exten => 23,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 23,3,Dial(Zap/3,20,tT) exten => 23,4,Hangup() exten => 24,1,SetCDRUserField(${UNIQUEID}) exten => 24,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 24,3,Dial(Zap/4,20,tT) exten => 24,4,Hangup() exten => 25,1,SetCDRUserField(${UNIQUEID}) exten => 25,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 25,3,Dial(Zap/5,20,tT) exten => 25,4,Hangup() exten => 26,1,SetCDRUserField(${UNIQUEID}) exten => 26,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 26,3,Dial(Zap/6,20,tT) exten => 26,4,Hangup() exten => 27,1,SetCDRUserField(${UNIQUEID}) exten => 27,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 27,3,Dial(Zap/7,20,tT) exten => 27,4,Hangup() ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() ;-------------------------------- [int_omg] ;-------------------------------- include => parkedcalls include => agentie include => mobline include => int_soft include => int_agentie include => mediasat_sip ;exten => XX,1,SetCDRUserField(${UNIQUEID}) ;exten => XX,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 28,1,SetCDRUserField(${UNIQUEID}) exten => 28,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 28,3,Dial(Zap/8,20,tT) exten => 28,4,Hangup() exten => 29,1,SetCDRUserField(${UNIQUEID}) exten => 29,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 29,3,Dial(Zap/9,20,tT) exten => 29,4,Hangup() exten => 30,1,SetCDRUserField(${UNIQUEID}) exten => 30,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 30,3,Dial(Zap/10,20,tT) exten => 30,4,Hangup() exten => 31,1,SetCDRUserField(${UNIQUEID}) exten => 31,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 31,3,Dial(Zap/11,20,tT) exten => 31,4,Hangup() exten => 32,1,SetCDRUserField(${UNIQUEID}) exten => 32,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 32,3,Dial(Zap/12,20,tT) exten => 32,4,Hangup() exten => 33,1,SetCDRUserField(${UNIQUEID}) exten => 33,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 33,3,Dial(Zap/13,20,tT) exten => 33,4,Hangup() exten => 34,1,SetCDRUserField(${UNIQUEID}) exten => 34,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 34,3,Dial(Zap/14,20,tT) exten => 34,4,Hangup() exten => 35,1,SetCDRUserField(${UNIQUEID}) exten => 35,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 35,3,Dial(Zap/15,20,tT) exten => 35,4,Hangup() exten => 36,1,SetCDRUserField(${UNIQUEID}) exten => 36,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 36,3,Dial(Zap/16,20,tT) exten => 36,4,Hangup() ;exten => 129,1,SetCDRUserField(${UNIQUEID}) ;exten => 129,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 129,1,Dial(SIP/alexv,30,tT) exten => 129,2,Hangup() exten => 111,1,Answer() exten => 111,2,Authenticate(1654321,a) exten => 111,3,Playback(pin-number-accepted) exten => 111,4,ZapBarge() exten => 111,105,Hangup() ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() ;-------------------------------- [int_agentie] ;-------------------------------- include => parkedcalls include => cap_hunting include => agentie include => mobline include => int_soft include => int_omg ;exten => XX,1,SetCDRUserField(${UNIQUEUD}) ;exten => XX,2,Monitor(gsm,,mb) exten => 45,1,SetCDRUserField(${UNIQUEID}) exten => 45,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 45,3,Dial(Zap/25,20,tT) exten => 45,4,Hangup() exten => 46,1,SetCDRUserField(${UNIQUEID}) exten => 46,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 46,3,Dial(Zap/26,20,tT) exten => 46,4,Hangup() exten => 47,1,SetCDRUserField(${UNIQUEID}) exten => 47,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 47,3,Dial(Zap/27,20,tT) exten => 47,4,Hangup() exten => 48,1,SetCDRUserField(${UNIQUEID}) exten => 48,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 48,3,Dial(Zap/28,20,tT) exten => 48,4,Hangup() exten => 49,1,SetCDRUserField(${UNIQUEID}) exten => 49,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 49,3,Dial(Zap/29,20,tT) exten => 49,4,Hangup() exten => 50,1,SetCDRUserField(${UNIQUEID}) exten => 50,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 50,3,Dial(Zap/30,20,tT) exten => 50,4,Hangup() exten => 51,1,SetCDRUserField(${UNIQUEID}) exten => 51,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 51,3,Dial(Zap/31,20,tT) exten => 51,4,Hangup() exten => 52,1,SetCDRUserField(${UNIQUEID}) exten => 52,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 52,3,Dial(Zap/32,20,tT) exten => 52,4,Hangup() exten => 53,1,SetCDRUserField(${UNIQUEID}) exten => 53,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 53,3,Dial(Zap/33,20,tT) exten => 53,4,Hangup() exten => 54,1,SetCDRUserField(${UNIQUEID}) exten => 54,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 54,3,Dial(Zap/34,20,tT) exten => 54,4,Hangup() exten => 55,1,SetCDRUserField(${UNIQUEID}) exten => 55,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 55,3,Dial(Zap/35,20,tT) exten => 55,4,Hangup() exten => 56,1,SetCDRUserField(${UNIQUEID}) exten => 56,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 56,3,Dial(Zap/36,20,tT) exten => 56,4,Hangup() exten => 57,1,SetCDRUserField(${UNIQUEID}) exten => 57,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 57,3,Dial(Zap/37,20,tT) exten => 57,4,Hangup() exten => 58,1,SetCDRUserField(${UNIQUEID}) exten => 58,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 58,3,Dial(Zap/38,20,tT) exten => 58,4,Hangup() exten => 59,1,SetCDRUserField(${UNIQUEID}) exten => 59,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 59,3,Dial(Zap/39,20,tT) exten => 59,4,Hangup() exten => 60,1,SetCDRUserField(${UNIQUEID}) exten => 60,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 60,3,Dial(Zap/40,20,tT) exten => 60,4,Hangup() exten => 61,1,SetCDRUserField(${UNIQUEID}) exten => 61,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 61,3,Dial(Zap/41,20,tT) exten => 61,4,Hangup() ;exten => 62,1,SetCDRUserField(${UNIQUEID}) ;exten => 62,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 62,1,SetCDRUserField(${UNIQUEID}) exten => 62,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 62,3,Dial(Zap/42,20,tT) exten => 62,4,Hangup() exten => 63,1,SetCDRUserField(${UNIQUEID}) exten => 63,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 63,3,Dial(Zap/43,20,tT) exten => 63,4,Hangup() exten => 64,1,SetCDRUserField(${UNIQUEID}) exten => 64,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 64,3,Dial(Zap/44,25,tT) exten => 64,4,Hangup() exten => 65,1,SetCDRUserField(${UNIQUEID}) exten => 65,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 65,3,Dial(Zap/45,30,tT) exten => 65,4,Hangup() exten => 66,1,SetCDRUserField(${UNIQUEID}) exten => 66,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 66,3,Dial(Zap/46,30,tT) exten => 66,4,Hangup() exten => 67,1,SetCDRUserField(${UNIQUEID}) exten => 67,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 67,3,Dial(Zap/47,30,tT) exten => 67,4,Hangup() exten => 68,1,SetCDRUserField(${UNIQUEID}) exten => 68,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 68,3,Dial(Zap/48,30,tT) exten => 68,4,Hangup() exten => 153,1,SetCDRUserField(${UNIQUEID}) exten => 153,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 153,3,Dial(SIP/andreis,30,tT) exten => 153,4,Hangup() exten => 163,1,Dial(SIP/gabi,30,tT) exten => 163,2,Hangup() ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() ;------------------------------ [cap_hunting] ;------------------------------ include => parkedcalls exten => s,1,Set(AG_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,2,SetCDRUserField(${UNIQUEID}) exten => s,3,Verbose("Trunchiuri") exten => s,4,Verbose("Am apel pe CAP_HUNTING de la numarul ${CALLERID}") exten => s,5,Verbose("Convorbirea va avea codul ${UNIQUEID}") ;exten => s,6,SetMusicOnHold(hip-hop) exten => s,6,Monitor(gsm,${AG_APEL_PRIMIT},mb) exten => s,7,Dial(Zap/45,30,t) exten => s,8,Dial(Zap/41,30,t) ;exten => s,9,Playback(tt-allbusy) ;exten => s,10,Goto(cap_hunting,s,7) ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() ;------------------------------ [omegasoft] ;------------------------------ include => parkedcalls exten => s,1,Set(AG_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,2,SetCDRUserField(${UNIQUEID}) exten => s,3,Verbose("Trunchiuri") exten => s,4,Verbose("Am apel pe OMEGASOFT de la numarul ${CALLERID}") exten => s,5,Verbose("Convorbirea va avea codul ${UNIQUEID}") exten => s,6,GoToIfTime(17:30-23:59|mon-fri|*|*?omegasoft,s,12) exten => s,7,GoToIfTime(00:00-09:00|mon-fri|*|*?omegasoft,s,12) ;exten => s,7,SetMusicOnHold(hip-hop) exten => s,8,Monitor(gsm,${AG_APEL_PRIMIT},mb) exten => s,9,Set(optiune_1=${DB(omegasoft/1)}) exten => s,10,Set(optiune_2=${DB(omegasoft/2)}) exten => s,11,Dial(Zap/${optiune_1},35,to) exten => s,12,Dial(Zap/46,35,to) exten => s,13,Playback(tt-allbusy) exten => s,14,Goto(omegasoft,s,7) ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() ;------------------------------ [agentie] ;------------------------------ include => parkedcalls exten => s,1,Set(AG_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,2,SetCDRUserField(${UNIQUEID}) ;exten => s,3,SetMusicOnHold(hip-hop) exten => s,3,Verbose("Am apel pe AGENTIE de la numarul ${CALLERID}") exten => s,4,Monitor(gsm,${AG_APEL_PRIMIT},mb) exten => s,5,Dial(Zap/45,30,t) exten => s,6,Dial(Zap/41,30,t) ;exten => s,7,Playback(tt-allbusy) exten => s,7,Wait(10) exten => s,8,Goto(agentie,s,5) exten => _0.,1,SetCDRUserField(${UNIQUEID}) exten => _0.,2,Set(AG_APEL_TRIMIS=/var/spool/asterisk/monitor/${UNIQUEID}) exten => _0.,3,Verbose("Trimit apel de la AGENTIE") exten => _0.,4,Monitor(gsm,${AG_APEL_TRIMIS},m) exten => _0.,5,Dial(Zap/g5/${EXTEN:1},,T) ;exten => _0.,106,Congestion() ;exten => t,1,Playback(tt-allbusy) ;exten => t,2,Hangup() ;---------------------------------- [tehnic] ;---------------------------------- include => parkedcalls exten => s,1,SetCDRUserField(${UNIQUEID}) exten => s,2,Verbose("Am apel pe TEHNIC!") exten => s,3,Set(SR_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,4,Monitor(gsm,${SR_APEL_PRIMIT},mb) ;exten => s,5,SetMusicOnHold(hip-hop) exten => s,5,Dial(Zap/4&Zap/7,,t) exten => s,6,Playback(tt-allbusy) exten => s,7,Goto(tehnic,s,6) ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() exten => _0.,1,Set(SR_APEL_TRIMIS=/var/spool/asterisk/monitor/${UNIQUEID}) exten => _0.,2,Verbose("Trimit apel de pe tehnic") exten => _0.,3,SetCDRUserField(${UNIQUEID}) exten => _0.,4,Monitor(gsm,${SR_APEL_TRIMIS},m) exten => _0.,5,Dial(Zap/g5/${EXTEN:1},,T) exten => _0.,106,Congestion() ;exten => t,1,Playback(tt-allbusy) ;exten => t,2,Hangup() ;------------------------------ [service] ;------------------------------ include => parkedcalls exten => s,1,SetCDRUserField(${UNIQUEID}) exten => s,2,SetMusicOnHold(service) exten => s,3,Set(TH_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,4,Monitor(gsm,${TH_APEL_PRIMIT},mb) exten => s,5,Set(nr1=${DB(service/1)}) exten => s,6,Set(nr2=${DB(service/2)}) exten => s,7,Set(nr3=${DB(service/3)}) exten => s,8,Set(nr4=${DB(service/4)}) exten => s,9,Set(nr5=${DB(service/5)}) exten => s,10,Set(nr6=${DB(service/6)}) exten => s,11,Set(nr7=${DB(service/7)}) exten => s,12,Set(nr8=${DB(service/Cool}) exten => s,13,Set(nr9=${DB(service/9)}) exten => s,14,Set(nr10=${DB(service/10)}) exten => s,15,Playback(welcome-wav) exten => s,16,Dial(Zap/82/${nr1},45,m) exten => s,17,Wait(3) exten => s,18,Dial(Zap/82/${nr2},45,m) exten => s,19,Wait(3) exten => s,20,Dial(Zap/82/${nr3},45,m) exten => s,21,Wait(3) exten => s,22,Dial(Zap/82/${nr4},45,m) exten => s,23,Wait(3) exten => s,24,Dial(Zap/82/${nr5},45,m) exten => s,25,Wait(3) exten => s,26,Dial(Zap/82/${nr6},45,m) exten => s,27,Wait(3) exten => s,28,Dial(Zap/82/${nr7},45,m) exten => s,29,Wait(3) exten => s,30,Dial(Zap/82/${nr8},45,m) exten => s,31,Wait(3) exten => s,32,Dial(Zap/82/${nr9},45,m) exten => s,33,Wait(3) exten => s,34,Dial(Zap/82/${nr10},45,m) exten => s,35,Playback(vm-nobodyavail) ;exten => s,35,GoTo(centrala,s,16) ;--------------------------------- [mobline] ;--------------------------------- ignorepat => 9 exten => _9.,1,Set(AG_APEL_TRIMIS=/var/spool/asterisk/monitor/${UNIQUEID}) exten => _9.,2,Verbose("Trimit apel pe MOBLINE") ; exten => _9.,3,Monitor(gsm,${AG_APEL_TRIMIS},mb) exten => _9.,3,SetCDRUserField(${UNIQUEID}) exten => _9.,4,Dial(Zap/83/${EXTEN:1},60,t) exten => _9.,105,Congestion() exten => t,1,Playback(tt-allbusy) exten => t,2,Hangup() exten => s,1,Set(${CDR(dcontext)}=agentie) exten => s,2,Set(AG_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,3,SetCDRUserField(${UNIQUEID}) ;exten => s,3,SetMusicOnHold(hip-hop) exten => s,4,Verbose("Am apel pe AGENTIE(MOBLINE) de la numarul ${CALLERID}") exten => s,5,Monitor(gsm,${AG_APEL_PRIMIT},mb) exten => s,6,Dial(Zap/45,30,t) exten => s,7,Dial(Zap/41,30,t) ;exten => s,8,Playback(tt-allbusy) exten => s,8,Wait(3) exten => s,9,Goto(mobline,s,5) ;--------------------------------- [mediasat_sip] ;--------------------------------- exten => _8.,1,Macro(out-mediasat,${EXTEN:1}) exten => _03182438XX,1,Set(AG_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => _03182438XX,2,Verbose("Am apel pe mediasat de la ${CALLERID}) exten => _03182438XX,3,SetCDRUserField(${UNIQUEID}) exten => _03182438XX,4,Monitor(gsm,${SR_APEL_TRIMIS},m) exten => _03182438XX,5,Dial(Zap/46,120,ot)
Alexandru Voinescu
2006-Nov-03 08:29 UTC
[asterisk-users] Asterisk does not bridge zap channels on outgoing calls
Hello... I have a big problem with asterisk. Every time i make a call asterisk does not bridge the zap channels. The zap channel from which i'm calling remains in state:ring and applicaton:dial and the zap channel with the external line configured remains in state:dialling an Application:AppDial. Zap/20-1 agentie s 1 Dialing AppDial (Outgoing Line) 09399 (None) Zap/9-1 int_omg 09399 5 Ring Dial Zap/g5/9399||T 00:07:58 (None) Obviously, this is a big problem for us... Below are my zapata.conf, zaptel.conf and extensions.conf: -------------------------- zapata.conf -------------------------- [channels] usecallerid=yes hidecallerid=no echocancel=yes musiconhold=service busydetect=yes ;callprogress=yes busycount=3 flash=20 rxflash=40 transfer=yes threewaycalling=yes ;rxgain=100% ;txgain=1.0 ;relaxdtmf=yes ;------------------------------ context=int_soft ;------------------------------ group=1 callgroup=1 pickupgroup=1,6,7 threewaycalling=yes transfer=yes ;useincomingcalleridonzaptransfer=yes callwaitingcallerid=yes ;echocancelwhenbriged=yes immediate=no rxgain=-2.0 txgain=2.2 signalling=fxo_ks callerid=Soft 1 channel=>1 callerid=Soft 2 channel=>2 callerid=Soft 3 channel=>3 callerid=Soft 4 channel=>4 callerid=Soft 5 channel=>5 callerid=Soft 6 channel=>6 callerid=Soft 7 channel=>7 ;------------------------------ context=int_omg ;------------------------------ group=2 callgroup=2 pickupgroup=2,5,6 threewaycalling=yes transfer=yes ;useincomingcalleridonzaptransfer=yes callwaitingcallerid=yes ;echocancelwhenbriged=yes immediate=no rxgain=-2.0 txgain=2.2 callerid=OMG 28 channel=>8 callerid=OMG 29 channel=>9 callerid=OMG 30 channel=>10 callerid=OMG 31 channel=>11 callerid=OMG 32 channel=>12 callerid=OMG 33 channel=>13 callerid=OMG 34 channel=>14 callerid=OMG 35 channel=>15 callerid=OMG 36 channel=>16 ;------------------- ;Placa TDM24XXP - 24 DE INTERIOARE; CONTEXT NOU!! ;------------------- ;------------------------------ context=int_agentie ;------------------------------ group=3 callgroup=3 pickupgroup=3,4,5,10 threewaycalling=yes transfer=yes ;useincomingcalleridonzaptransfer=yes callwaitingcallerid=yes ;echocancelwhenbriged=yes immediate=no rxgain=-2.0 txgain=2.2 callerid=Agentie 45 channel=>25 callerid=Agentie 46 channel=>26 callerid=Agentie 47 channel=>27 callerid=Agentie 48 channel=>28 callerid=Agentie 49 channel=>29 callerid=Agentie 50 channel=>30 callerid=Agentie 51 channel=>31 callerid=Agentie 52 channel=>32 callerid=Agentie 53 channel=>33 callerid=Agentie 54 channel=>34 callerid=Agentie 55 channel=>35 callerid=Agentie 56 channel=>36 callerid=Agentie 57 channel=>37 callerid=Agentie 58 channel=>38 callerid=Agentie 59 channel=>39 callerid=Agentie 60 channel=>40 callerid=Agentie 61 channel=>41 callerid=Agentie 62 channel=>42 callerid=Agentie 63 channel=>43 callerid=Agentie 64 channel=>44 callerid=Clopotel 65 channel=>45 callerid=Clopotel 66 channel=>46 callerid=Clopotel 67 channel=>47 callerid=Clopotel 68 channel=>48 ;------------------------------ context=cap_hunting ;------------------------------ group=4 callgroup=4 callerid=asreceived cidsignalling=v23 cidstart=ring transfer=yes threewaycalling=yes immediate=no useincomingcalleridonzaptransfer=yes ;echocancelwhenbriged=yes ;musiconhold=guitar sendcalleridafter=2 rxgain=10.2 txgain=1.8 signalling=fxs_ks channel=>17 ;------------------------------ context=omegasoft ;------------------------------ group=10 callgroup=10 callerid=asreceived cidsignalling=v23 cidstart=ring transfer=yes ;threewaycalling=yes immediate=no useincomingcalleridonzaptransfer=yes ;echocancelwhenbriged=yes ;musiconhold=guitar sendcalleridafter=2 rxgain=10.2 txgain=1.8 signalling=fxs_ks channel=>18 ;------------------------------ context=agentie ;------------------------------ group=5 callgroup=5 callerid=asreceived cidsignalling=v23 cidstart=ring transfer=yes threewaycalling=yes ;immediate=no ;useincomingcalleridonzaptransfer=yes ;echocancelwhenbriged=yes ;musiconhold=guitar sendcalleridafter=2 rxgain=10.2 txgain=1.8 signalling=fxs_ks channel=>19-24 ;------------------------------ context=tehnic ;------------------------------ group=6 callgroup=6 callerid=asreceived cidsignalling=v23 cidstart=ring transfer=yes threewaycalling=yes ;immediate=no useincomingcalleridonzaptransfer=yes ;callprogres=yes ;echocancelwhenbriged=yes rxgain=10.2 txgain=1.8 signalling=fxs_ks channel=>80 ;------------------------------ context=service ;------------------------------ group=7 callgroup=7 ;echocancelwhenbriged=yes callerid=asreceived answeronpolarityswitch=yes hanguponpolarityswitch=yes ;cidstart=ring ;cidsignalling=v23 sendcalleridafter=2 rxgain=5.5 txgain=7.2 signalling=fxs_ks channel=>81 ;------------------------------ context=service_out ;------------------------------ group=7 callgroup=7 ;echocancelwhenbriged=yes callerid=asreceived ;cidstart=ring ;cidsignalling=v23 answeronpolarityswitch=yes hanguponpolarityswitch=yes sendcalleridafter=2 rxgain=4.5 txgain=5.2 signalling=fxs_ks channel=>82 ;------------------------------ context=mobline ;------------------------------ group=8 ;echocancelwhenbriged=yes callerid=asreceived answeronpolarityswitch=yes hanguponpolarityswitch=yes sendcalleridafter=2 ;rxgain=5.5 ;txgain=3.2 signalling=fxs_ks channel=>83 ;------------------------------ context=mediasat ;------------------------------ group=9 callerid=asreceived ;switchtype=national ;echocancelwhenbriged=yes echotraining=no ;rxgain=1.0 ;txgain=1.0 signalling=pri_cpe channel=>49-63,65-79 -------------------------------- zaptel.conf -------------------------------- #setari generale loadzone=us defaultzone=us #TDM2400P - 16 porturi FXS + 8 porturi FXO fxoks=1-16 fxsks=17-24 #TDM2400P - 24 porturi FXS fxoks=25-48 #TE110P - 30 canale ISDN - MEDIASAT(momentan) span=3,1,0,ccs,hdb3,crc4 indclear=49-63,65-79 fcshdlc=64 #TDM400P - 4 porturi FXO fxsks=80-83 ----------------------------- extensions.conf ----------------------------- [macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${CALLEDFAX}/${UNIQUEID}) exten => s,2,rxfax(${FAXFILE}.tif) [macro-stdexten] ;exten => s,1,Dial(${ARG2},120,t) ;exten => s,2,Goto(s-${DIALSTATUS},1) ;exten => s,105,Goto(nothere,s,1) exten => s-NOANSWER,1,Voicenail(u${ARG1}) exten => s-NOANSWER,2,Goto(nothere,s,1) exten => s-BUSY,2,Goto(nothere,s,1) exten => _s-.,1,Goto(s-NOANSWER,1) [macro-out-mediasat] exten => s,1,Set(MEDIASAT=81.180.226.177) exten => s,2,Set(CALLERID(number)=0318243800) exten => s,3,ChanIsAvail(SIP/${ARG1}@${MEDIASAT}) exten => s,4,SetCDRUserField(${UNIQUEID}) exten => s,5,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => s,6,Dial(SIP/${ARG1}@${MEDIASAT},400,t) exten => s,107,Background(tt-allbusy) exten => s,108,Hangup() [fax] exten => 123456789,1,Macro(faxreceive) ;[conferinte] ;exten => 90,1,MeetMe(90) ;exten => 91,1,MeetMe(91) ;exten => 92,1,MeetMe(92) ;-------------------------------- [int_soft] ;-------------------------------- include => parkedcalls include => tehnic include => service include => mobline include => int_omg include => agentie ;exten => XX,1,SetCDRUserField(${UNIQUEID}) ;Zap-1 BUSIT. PORT ARS. exten => 21,1,SetCDRUserField(${UNIQUEID}) exten => 21,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 21,3,Dial(Zap/1,20,tT) exten => 21,4,Hangup() exten => 22,1,SetCDRUserField(${UNIQUEID}) exten => 22,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 22,3,Dial(Zap/2,20,tT) exten => 22,4,Hangup() exten => 23,1,SetCDRUserField(${UNIQUEID}) exten => 23,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 23,3,Dial(Zap/3,20,tT) exten => 23,4,Hangup() exten => 24,1,SetCDRUserField(${UNIQUEID}) exten => 24,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 24,3,Dial(Zap/4,20,tT) exten => 24,4,Hangup() exten => 25,1,SetCDRUserField(${UNIQUEID}) exten => 25,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 25,3,Dial(Zap/5,20,tT) exten => 25,4,Hangup() exten => 26,1,SetCDRUserField(${UNIQUEID}) exten => 26,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 26,3,Dial(Zap/6,20,tT) exten => 26,4,Hangup() exten => 27,1,SetCDRUserField(${UNIQUEID}) exten => 27,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 27,3,Dial(Zap/7,20,tT) exten => 27,4,Hangup() ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() ;-------------------------------- [int_omg] ;-------------------------------- include => parkedcalls include => agentie include => mobline include => int_soft include => int_agentie include => mediasat_sip ;exten => XX,1,SetCDRUserField(${UNIQUEID}) ;exten => XX,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 28,1,SetCDRUserField(${UNIQUEID}) exten => 28,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 28,3,Dial(Zap/8,20,tT) exten => 28,4,Hangup() exten => 29,1,SetCDRUserField(${UNIQUEID}) exten => 29,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 29,3,Dial(Zap/9,20,tT) exten => 29,4,Hangup() exten => 30,1,SetCDRUserField(${UNIQUEID}) exten => 30,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 30,3,Dial(Zap/10,20,tT) exten => 30,4,Hangup() exten => 31,1,SetCDRUserField(${UNIQUEID}) exten => 31,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 31,3,Dial(Zap/11,20,tT) exten => 31,4,Hangup() exten => 32,1,SetCDRUserField(${UNIQUEID}) exten => 32,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 32,3,Dial(Zap/12,20,tT) exten => 32,4,Hangup() exten => 33,1,SetCDRUserField(${UNIQUEID}) exten => 33,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 33,3,Dial(Zap/13,20,tT) exten => 33,4,Hangup() exten => 34,1,SetCDRUserField(${UNIQUEID}) exten => 34,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 34,3,Dial(Zap/14,20,tT) exten => 34,4,Hangup() exten => 35,1,SetCDRUserField(${UNIQUEID}) exten => 35,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 35,3,Dial(Zap/15,20,tT) exten => 35,4,Hangup() exten => 36,1,SetCDRUserField(${UNIQUEID}) exten => 36,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 36,3,Dial(Zap/16,20,tT) exten => 36,4,Hangup() ;exten => 129,1,SetCDRUserField(${UNIQUEID}) ;exten => 129,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 129,1,Dial(SIP/alexv,30,tT) exten => 129,2,Hangup() exten => 111,1,Answer() exten => 111,2,Authenticate(1654321,a) exten => 111,3,Playback(pin-number-accepted) exten => 111,4,ZapBarge() exten => 111,105,Hangup() ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() ;-------------------------------- [int_agentie] ;-------------------------------- include => parkedcalls include => cap_hunting include => agentie include => mobline include => int_soft include => int_omg ;exten => XX,1,SetCDRUserField(${UNIQUEUD}) ;exten => XX,2,Monitor(gsm,,mb) exten => 45,1,SetCDRUserField(${UNIQUEID}) exten => 45,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 45,3,Dial(Zap/25,20,tT) exten => 45,4,Hangup() exten => 46,1,SetCDRUserField(${UNIQUEID}) exten => 46,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 46,3,Dial(Zap/26,20,tT) exten => 46,4,Hangup() exten => 47,1,SetCDRUserField(${UNIQUEID}) exten => 47,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 47,3,Dial(Zap/27,20,tT) exten => 47,4,Hangup() exten => 48,1,SetCDRUserField(${UNIQUEID}) exten => 48,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 48,3,Dial(Zap/28,20,tT) exten => 48,4,Hangup() exten => 49,1,SetCDRUserField(${UNIQUEID}) exten => 49,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 49,3,Dial(Zap/29,20,tT) exten => 49,4,Hangup() exten => 50,1,SetCDRUserField(${UNIQUEID}) exten => 50,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 50,3,Dial(Zap/30,20,tT) exten => 50,4,Hangup() exten => 51,1,SetCDRUserField(${UNIQUEID}) exten => 51,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 51,3,Dial(Zap/31,20,tT) exten => 51,4,Hangup() exten => 52,1,SetCDRUserField(${UNIQUEID}) exten => 52,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 52,3,Dial(Zap/32,20,tT) exten => 52,4,Hangup() exten => 53,1,SetCDRUserField(${UNIQUEID}) exten => 53,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 53,3,Dial(Zap/33,20,tT) exten => 53,4,Hangup() exten => 54,1,SetCDRUserField(${UNIQUEID}) exten => 54,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 54,3,Dial(Zap/34,20,tT) exten => 54,4,Hangup() exten => 55,1,SetCDRUserField(${UNIQUEID}) exten => 55,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 55,3,Dial(Zap/35,20,tT) exten => 55,4,Hangup() exten => 56,1,SetCDRUserField(${UNIQUEID}) exten => 56,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 56,3,Dial(Zap/36,20,tT) exten => 56,4,Hangup() exten => 57,1,SetCDRUserField(${UNIQUEID}) exten => 57,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 57,3,Dial(Zap/37,20,tT) exten => 57,4,Hangup() exten => 58,1,SetCDRUserField(${UNIQUEID}) exten => 58,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 58,3,Dial(Zap/38,20,tT) exten => 58,4,Hangup() exten => 59,1,SetCDRUserField(${UNIQUEID}) exten => 59,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 59,3,Dial(Zap/39,20,tT) exten => 59,4,Hangup() exten => 60,1,SetCDRUserField(${UNIQUEID}) exten => 60,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 60,3,Dial(Zap/40,20,tT) exten => 60,4,Hangup() exten => 61,1,SetCDRUserField(${UNIQUEID}) exten => 61,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 61,3,Dial(Zap/41,20,tT) exten => 61,4,Hangup() ;exten => 62,1,SetCDRUserField(${UNIQUEID}) ;exten => 62,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 62,1,SetCDRUserField(${UNIQUEID}) exten => 62,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 62,3,Dial(Zap/42,20,tT) exten => 62,4,Hangup() exten => 63,1,SetCDRUserField(${UNIQUEID}) exten => 63,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 63,3,Dial(Zap/43,20,tT) exten => 63,4,Hangup() exten => 64,1,SetCDRUserField(${UNIQUEID}) exten => 64,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 64,3,Dial(Zap/44,25,tT) exten => 64,4,Hangup() exten => 65,1,SetCDRUserField(${UNIQUEID}) exten => 65,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 65,3,Dial(Zap/45,30,tT) exten => 65,4,Hangup() exten => 66,1,SetCDRUserField(${UNIQUEID}) exten => 66,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 66,3,Dial(Zap/46,30,tT) exten => 66,4,Hangup() exten => 67,1,SetCDRUserField(${UNIQUEID}) exten => 67,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 67,3,Dial(Zap/47,30,tT) exten => 67,4,Hangup() exten => 68,1,SetCDRUserField(${UNIQUEID}) exten => 68,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 68,3,Dial(Zap/48,30,tT) exten => 68,4,Hangup() exten => 153,1,SetCDRUserField(${UNIQUEID}) exten => 153,2,Monitor(gsm,/var/spool/asterisk/monitor/${UNIQUEID},mb) exten => 153,3,Dial(SIP/andreis,30,tT) exten => 153,4,Hangup() exten => 163,1,Dial(SIP/gabi,30,tT) exten => 163,2,Hangup() ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() ;------------------------------ [cap_hunting] ;------------------------------ include => parkedcalls exten => s,1,Set(AG_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,2,SetCDRUserField(${UNIQUEID}) exten => s,3,Verbose("Trunchiuri") exten => s,4,Verbose("Am apel pe CAP_HUNTING de la numarul ${CALLERID}") exten => s,5,Verbose("Convorbirea va avea codul ${UNIQUEID}") ;exten => s,6,SetMusicOnHold(hip-hop) exten => s,6,Monitor(gsm,${AG_APEL_PRIMIT},mb) exten => s,7,Dial(Zap/45,30,t) exten => s,8,Dial(Zap/41,30,t) ;exten => s,9,Playback(tt-allbusy) ;exten => s,10,Goto(cap_hunting,s,7) ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() ;------------------------------ [omegasoft] ;------------------------------ include => parkedcalls exten => s,1,Set(AG_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,2,SetCDRUserField(${UNIQUEID}) exten => s,3,Verbose("Trunchiuri") exten => s,4,Verbose("Am apel pe OMEGASOFT de la numarul ${CALLERID}") exten => s,5,Verbose("Convorbirea va avea codul ${UNIQUEID}") exten => s,6,GoToIfTime(17:30-23:59|mon-fri|*|*?omegasoft,s,12) exten => s,7,GoToIfTime(00:00-09:00|mon-fri|*|*?omegasoft,s,12) ;exten => s,7,SetMusicOnHold(hip-hop) exten => s,8,Monitor(gsm,${AG_APEL_PRIMIT},mb) exten => s,9,Set(optiune_1=${DB(omegasoft/1)}) exten => s,10,Set(optiune_2=${DB(omegasoft/2)}) exten => s,11,Dial(Zap/${optiune_1},35,to) exten => s,12,Dial(Zap/46,35,to) exten => s,13,Playback(tt-allbusy) exten => s,14,Goto(omegasoft,s,7) ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() ;------------------------------ [agentie] ;------------------------------ include => parkedcalls exten => s,1,Set(AG_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,2,SetCDRUserField(${UNIQUEID}) ;exten => s,3,SetMusicOnHold(hip-hop) exten => s,3,Verbose("Am apel pe AGENTIE de la numarul ${CALLERID}") exten => s,4,Monitor(gsm,${AG_APEL_PRIMIT},mb) exten => s,5,Dial(Zap/45,30,t) exten => s,6,Dial(Zap/41,30,t) ;exten => s,7,Playback(tt-allbusy) exten => s,7,Wait(10) exten => s,8,Goto(agentie,s,5) exten => _0.,1,SetCDRUserField(${UNIQUEID}) exten => _0.,2,Set(AG_APEL_TRIMIS=/var/spool/asterisk/monitor/${UNIQUEID}) exten => _0.,3,Verbose("Trimit apel de la AGENTIE") exten => _0.,4,Monitor(gsm,${AG_APEL_TRIMIS},m) exten => _0.,5,Dial(Zap/g5/${EXTEN:1},,T) ;exten => _0.,106,Congestion() ;exten => t,1,Playback(tt-allbusy) ;exten => t,2,Hangup() ;---------------------------------- [tehnic] ;---------------------------------- include => parkedcalls exten => s,1,SetCDRUserField(${UNIQUEID}) exten => s,2,Verbose("Am apel pe TEHNIC!") exten => s,3,Set(SR_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,4,Monitor(gsm,${SR_APEL_PRIMIT},mb) ;exten => s,5,SetMusicOnHold(hip-hop) exten => s,5,Dial(Zap/4&Zap/7,,t) exten => s,6,Playback(tt-allbusy) exten => s,7,Goto(tehnic,s,6) ;exten => t,1,Playback(vm-nobodyavail) ;exten => t,2,Hangup() exten => _0.,1,Set(SR_APEL_TRIMIS=/var/spool/asterisk/monitor/${UNIQUEID}) exten => _0.,2,Verbose("Trimit apel de pe tehnic") exten => _0.,3,SetCDRUserField(${UNIQUEID}) exten => _0.,4,Monitor(gsm,${SR_APEL_TRIMIS},m) exten => _0.,5,Dial(Zap/g5/${EXTEN:1},,T) exten => _0.,106,Congestion() ;exten => t,1,Playback(tt-allbusy) ;exten => t,2,Hangup() ;------------------------------ [service] ;------------------------------ include => parkedcalls exten => s,1,SetCDRUserField(${UNIQUEID}) exten => s,2,SetMusicOnHold(service) exten => s,3,Set(TH_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,4,Monitor(gsm,${TH_APEL_PRIMIT},mb) exten => s,5,Set(nr1=${DB(service/1)}) exten => s,6,Set(nr2=${DB(service/2)}) exten => s,7,Set(nr3=${DB(service/3)}) exten => s,8,Set(nr4=${DB(service/4)}) exten => s,9,Set(nr5=${DB(service/5)}) exten => s,10,Set(nr6=${DB(service/6)}) exten => s,11,Set(nr7=${DB(service/7)}) exten => s,12,Set(nr8=${DB(service/Cool}) exten => s,13,Set(nr9=${DB(service/9)}) exten => s,14,Set(nr10=${DB(service/10)}) exten => s,15,Playback(welcome-wav) exten => s,16,Dial(Zap/82/${nr1},45,m) exten => s,17,Wait(3) exten => s,18,Dial(Zap/82/${nr2},45,m) exten => s,19,Wait(3) exten => s,20,Dial(Zap/82/${nr3},45,m) exten => s,21,Wait(3) exten => s,22,Dial(Zap/82/${nr4},45,m) exten => s,23,Wait(3) exten => s,24,Dial(Zap/82/${nr5},45,m) exten => s,25,Wait(3) exten => s,26,Dial(Zap/82/${nr6},45,m) exten => s,27,Wait(3) exten => s,28,Dial(Zap/82/${nr7},45,m) exten => s,29,Wait(3) exten => s,30,Dial(Zap/82/${nr8},45,m) exten => s,31,Wait(3) exten => s,32,Dial(Zap/82/${nr9},45,m) exten => s,33,Wait(3) exten => s,34,Dial(Zap/82/${nr10},45,m) exten => s,35,Playback(vm-nobodyavail) ;exten => s,35,GoTo(centrala,s,16) ;--------------------------------- [mobline] ;--------------------------------- ignorepat => 9 exten => _9.,1,Set(AG_APEL_TRIMIS=/var/spool/asterisk/monitor/${UNIQUEID}) exten => _9.,2,Verbose("Trimit apel pe MOBLINE") ; exten => _9.,3,Monitor(gsm,${AG_APEL_TRIMIS},mb) exten => _9.,3,SetCDRUserField(${UNIQUEID}) exten => _9.,4,Dial(Zap/83/${EXTEN:1},60,t) exten => _9.,105,Congestion() exten => t,1,Playback(tt-allbusy) exten => t,2,Hangup() exten => s,1,Set(${CDR(dcontext)}=agentie) exten => s,2,Set(AG_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => s,3,SetCDRUserField(${UNIQUEID}) ;exten => s,3,SetMusicOnHold(hip-hop) exten => s,4,Verbose("Am apel pe AGENTIE(MOBLINE) de la numarul ${CALLERID}") exten => s,5,Monitor(gsm,${AG_APEL_PRIMIT},mb) exten => s,6,Dial(Zap/45,30,t) exten => s,7,Dial(Zap/41,30,t) ;exten => s,8,Playback(tt-allbusy) exten => s,8,Wait(3) exten => s,9,Goto(mobline,s,5) ;--------------------------------- [mediasat_sip] ;--------------------------------- exten => _8.,1,Macro(out-mediasat,${EXTEN:1}) exten => _03182438XX,1,Set(AG_APEL_PRIMIT=/var/spool/asterisk/monitor/${UNIQUEID}) exten => _03182438XX,2,Verbose("Am apel pe mediasat de la ${CALLERID}) exten => _03182438XX,3,SetCDRUserField(${UNIQUEID}) exten => _03182438XX,4,Monitor(gsm,${SR_APEL_TRIMIS},m) exten => _03182438XX,5,Dial(Zap/46,120,ot)