Hello. I don't know if this is a problem, but I was expecting a different behavior. Users, have to dial "0" to get an external line, and afterwords the number they want to dial (exe 12345). The thing is: 1-If user dial "012345" there is an error and the call isn't made and the error is "handle_request_invite: Call from 'XXX' to extension '012345' rejected because extension not found in context 'DLPN_DialPlanX'. 2-If user dials "0" waits for the signal, and then dials "12345" then it works fine. Should the result be the same? Shouldn't asterisk automatically "dial" 0, wait and then dial the external number? Best regards, Vitor Flausino
-----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Vitor Carlos Flausino Sent: Tuesday, January 18, 2011 12:10 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Calling rules Hello. I don't know if this is a problem, but I was expecting a different behavior. Users, have to dial "0" to get an external line, and afterwords the number they want to dial (exe 12345). The thing is: 1-If user dial "012345" there is an error and the call isn't made and the error is "handle_request_invite: Call from 'XXX' to extension '012345' rejected because extension not found in context 'DLPN_DialPlanX'. 2-If user dials "0" waits for the signal, and then dials "12345" then it works fine. Should the result be the same? Shouldn't asterisk automatically "dial" 0, wait and then dial the external number? Best regards, Vitor Flausino My best guess is that it is a "dialplan inconsistency". The "standard" for "outside line" dialing is something like this: - exten => 0.,1,Dial(DAHDI/1,${EXTEN:1}) Where the dialplan "chomps" the first digit off of the dialed string.
----- Original Message -----> From: "Danny Nicholas" <danny at debsinc.com> > To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> > Sent: Tuesday, January 18, 2011 9:57:54 PM > Subject: Re: [asterisk-users] Calling rules > -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Vitor > Carlos > Flausino > Sent: Tuesday, January 18, 2011 1:45 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Calling rules > <snip> > Correcting the line to: > > exten => > _0.,1,Macro(trunkdial-failover-0.3,${trunk_1}/${,${EXTEN:1})},,trunk_1,) > > problem persists... > > any other suggestions? > > > Best regards, > What does your trunkdial-failover-0.3 look like? >How do I check that (which file,??)? The configurations were made via asterisk-gui. Best regards, -vcf
> Correcting the line to: > > exten => > _0.,1,Macro(trunkdial-failover-0.3,${trunk_1}/${,${EXTEN:1})},,trunk_1,) > > problem persists... > > any other suggestions? > > > Best regards, > What does your trunkdial-failover-0.3 look like? > >Here goes... [macro-trunkdial-failover-0.3] exten = s,1,GotoIf($[${LEN(${FMCIDNUM})} > 6]?1-fmsetcid,1) exten = s,2,GotoIf($[${LEN(${GLOBAL_OUTBOUNDCIDNAME})} > 1]?1-setgbobname,1) exten = s,3,Set(CALLERID(num)=${IF($[${LEN(${CID_${CALLERID(num)}})} > 2]?${CID_${CALLERID(num)}}:)}) exten = s,n,GotoIf($[${LEN(${CALLERID(num)})} > 6]?1-dial,1) exten = s,n,Set(CALLERID(all)=${IF($[${LEN(${CID_${ARG3}})} > 6]?${CID_${ARG3}}:${GLOBAL_OUTBOUNDCID})}) exten = s,n,Goto(1-dial,1) exten = 1-setgbobname,1,Set(CALLERID(name)=${GLOBAL_OUTBOUNDCIDNAME}) exten = 1-setgbobname,n,Goto(s,3) exten = 1-fmsetcid,1,Set(CALLERID(num)=${FMCIDNUM}) exten = 1-fmsetcid,n,Set(CALLERID(name)=${FMCIDNAME}) exten = 1-fmsetcid,n,Goto(1-dial,1) exten = 1-dial,1,Dial(${ARG1}) exten = 1-dial,n,Gotoif(${LEN(${ARG2})} > 0 ?1-${DIALSTATUS},1:1-out,1) exten = 1-CHANUNAVAIL,1,Dial(${ARG2}) exten = 1-CHANUNAVAIL,n,Hangup() exten = 1-CONGESTION,1,Dial(${ARG2}) exten = 1-CONGESTION,n,Hangup() exten = 1-out,1,Hangup()