Good afternoon,
MY dilema is as follows:
I am running version 1.4. of asterisk, on Fedora 6 with a TDM22B card ( 2 FXS and 2 FXO)
I have my (2) analog lines coming to the FXS modules and (2) analog sets connected to the FXO extensions.
whenever i want to dial out, the call is automatically looped into my other extension and rings
on the other line.
IF I get a line access(either 1 or 2) and put it on HIOLD, i can then place a call in the other available line, withour getting looped into the line that is on hold.
I receive and process call succesfully, my issue is this outgoing function.
below is my dialplan, hope someone can help me solving thiis
; extensions.conf - the Asterisk dial plan
[general]
static=yes
writeprotect=no
clearglobalvars=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
IAXINFO=guest ; IAXtel username/password
;IAXINFO=myuser:mypass
TRUNK=Zap/G2 ; Trunk interface
TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0)
[iaxtel700]
exten => _91700XXXXXXX,1,Dial(IAX2/${GLOBAL(IAXINFO)}@iaxtel.com/${EXTEN:1}@iaxtel)
[iaxprovider]
[trunkint]
exten => _9011.,1,Macro(dundi-e164,${EXTEN:4})
exten => _9011.,n,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
[trunkld]
exten => _91NXXNXXXXXX,1,Macro(dundi-e164,${EXTEN:1})
exten => _91NXXNXXXXXX,n,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
[trunklocal]
exten => _9NXXXXXX,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
[trunktollfree]
exten => _91800NXXXXXX,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
exten => _91888NXXXXXX,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
exten => _91877NXXXXXX,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
exten => _91866NXXXXXX,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
[international]
ignorepat => 9
include => longdistance
include => trunkint
[longdistance]
ignorepat => 9
include => local
include => trunkld
[local]
ignorepat => 9
include => default
include => trunklocal
include => iaxtel700
include => trunktollfree
include => iaxprovider
include => longdistance
include => international
include => parkedcalls
[macro-trunkdial]
exten => s,1,Dial(${ARG1})
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Hangup
exten => s-BUSY,1,Hangup
exten => _s-.,1,NoOp
[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,Goto(s-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
exten => s-NOANSWER,1,Voicemail(${ARG1},u) ; If unavailable, send to voicemail w/ unavail announce
exten => s-NOANSWER,2,Goto(default,s,1) ; If they press #, return to start
exten => s-BUSY,1,Voicemail(${ARG1},b) ; If busy, send to voicemail w/ busy announce
exten => s-BUSY,2,Goto(default,s,1) ; If they press #, return to start
exten => _s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer
exten => a,1,VoicemailMain(${ARG1}) ; If they press *, send the user into VoicemailMain
[macro-stdPrivacyexten];
;
; Standard extension macro:
; ${ARG1} - Extension (we could have used ${MACRO_EXTEN} here as well
; ${ARG2} - Device(s) to ring
; ${ARG3} - Optional DONTCALL context name to jump to (assumes the s,1 extension-priority)
; ${ARG4} - Optional TORTURE context name to jump to (assumes the s,1 extension-priority)`
;
exten => s,1,Dial(${ARG2},20|p) ; Ring the interface, 20 seconds maximum, call screening
; option (or use P for databased call screening)
exten => s,2,Goto(s-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
exten => s-NOANSWER,1,Voicemail(${ARG1},u) ; If unavailable, send to voicemail w/ unavail announce
exten => s-NOANSWER,2,Goto(default,s,1) ; If they press #, return to start
exten => s-BUSY,1,Voicemail(${ARG1},b) ; If busy, send to voicemail w/ busy announce
exten => s-BUSY,2,Goto(default,s,1) ; If they press #, return to start
exten => s-DONTCALL,1,Goto(${ARG3},s,1) ; Callee chose to send this call to a polite “Don’t call again” script.
exten => s-TORTURE,1,Goto(${ARG4},s,1) ; Callee chose to send this call to a telemarketer torture script.
exten => _s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer
exten => a,1,VoicemailMain(${ARG1}) ; If they press *, send the user into VoicemailMain
[macro-page];
exten => s,1,ChanIsAvail(${ARG1}|js) ; j is for Jump and s is for ANY call
exten => s,n,GoToIf([${AVAILSTATUS} = “1”]?autoanswer:fail)
exten => s,n(autoanswer),Set(_ALERT_INFO=“RA”) ; This is for the PolyComs
exten => s,n,SIPAddHeader(Call-Info: Answer-After=0) ; This is for the Grandstream, Snoms, and Others
exten => s,n,NoOp() ; Add others here and Post on the Wiki!!!
exten => s,n,Dial(${ARG1}||)
exten => s,n(fail),Hangup
; System Wide Page at extension 7999
;
exten => 7999,1,Set(TIMEOUT(absolute)=60)
exten => 7999,2,Page(Local/Grandstream1@page&Local/Xlite1@page&Local/1234@page/n|d)
; Give voicemail at extension 8500
exten => 8500,1,VoicemailMain
exten => 8500,n,Goto(s,6)
[page]
exten => _X.,1,Macro(page,SIP/${EXTEN})
[default]
include => incoming
include => internal
; section for recording messages and sounds
exten => _6xxx,1,Wait(2)
exten => _6xxx,2,Record(/var/lib/asterisk/sounds/wontechvision/menu${EXTEN:1}:gsm)
exten => _6xxx,3,Wait(1)
exten => _6xxx,4,Playback(/var/lib/asterisk/sounds/wontechvision/menu${EXTEN:1})
exten => _6xxx,5,Wait(2)
exten => _6xxx,6,Hangup()
[internal]
;exten => 6100,1,Macro(stdexten|6100|Zap/1)
exten => 6000,1,dial (zap/1,20,rt)
exten => 6000,2,Voicemail (u6000)
exten => 6000,103,Voicemail (b6000)
exten => 6010,1,dial (zap/2,20,rt)
exten => 6010,2,Voicemail (u6010)
exten => 6010,103,Voicemail (b6010)
exten => 6001,1,dial (sip/6001,20,rt)
exten => 6001,2,Voicemail (u6010)
exten => 6001,103,Voicemail (b6010)
exten => 6002,1,dial (sip/2,6002,20,rt)
exten => 6002,2,Voicemail (u6010)
exten => 6002,103,Voicemail (b6010)
exten => 6003,1,Dial(sip/6003,20,rt)
exten => 6003,2,VoiceMail(u6003@default)
exten => 6003,102,VoiceMail(b6003@default)
exten => 6004,1,Dial(sip/6004,20,rt)
exten => 6004,2,VoiceMail(u6004@default)
exten => 6004,102,VoiceMail(b6004@default)
exten => 8500,1,VoicemailMain
exten => 8501,1,MusicOnHold
exten => _9NXXXXXX,1,Dial(${GLOBAL(TRUNK)}/${EXTEN:${GLOBAL(TRUNKMSD)}})
include =>local
[incoming]
;exten => _X.,1,Goto(incoming|s|1)
exten => s,1,Answer(2)
exten => s,2,Background(/var/lib/asterisk/sounds/wontechvision/menu720) ;test voice recording;
exten => s,3,WaitExten
exten => s,4,Dial(zap/g1,10,rt)
; Extension user1
exten => 6000,1,Playback(pls-hold-while-try)
exten => 6000,2,Dial(Zap/1,10)
exten => 6000,3,Playback(vm-nobodyavail)
exten => 6000,4,Playback(followme/status)
exten => 6000,5,Dial(Zap/G2/18586886702)
exten => 6000,105,Hangup( )
;Extension user 2
exten => 6001,1,Playback(pls-hold-while-try)
exten => 6001,2,Dial(sip/6001,10,rt)
exten => 6001,3,Playback(vm-nobodyavail)
exten => 6001,4,Playback(followme/status)
exten => 6001,5,Dial(Zap/G2/14082213837)
exten => 6001,106,Hangup( )
; System Wide Page at extension 7999
;
exten => 7999,1,Set(TIMEOUT(absolute)=60)
exten => 7999,2,Page(Local/Grandstream1@page&Local/Xlite1@page&Local/1234@page/n|d)
; Give voicemail at extension 8500
exten => 8500,1,VoicemailMain
exten => 8500,n,Goto(s,6)
[page]
exten => _X.,1,Macro(page,SIP/${EXTEN})
[default]
include => incoming
include => internal
; section for recording messages and sounds
exten => _6xxx,1,Wait(2)
exten => _6xxx,2,Record(/var/lib/asterisk/sounds/wontechvision/menu${EXTEN:1}:gsm)
exten => _6xxx,3,Wait(1)
exten => _6xxx,4,Playback(/var/lib/asterisk/sounds/wontechvision/menu${EXTEN:1})
exten => _6xxx,5,Wait(2)
exten => _6xxx,6,Hangup()