----- Original Message -----
> From: "Steve Edwards" <[email protected]>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> <[email protected]>
> Sent: Tuesday, January 18, 2011 8:54:11 PM
> Subject: Re: [asterisk-users] Calling rules
> >> On Tue, 18 Jan 2011, Vitor Carlos Flausino wrote:
>
> >>> 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.
>
> On Tue, 18 Jan 2011, Vitor Carlos Flausino wrote:
>
> > Correcting the line to:
> >
> > exten =>
> > _0.,1,Macro(trunkdial-failover-0.3,${trunk_1}/${,${EXTEN:1})},,trunk_1,)
> >
> > problem persists...
>
> How about some console output for a 'good' call and a 'failed' call.
> Also,
> a 'show dialplan|dialplan show' for the executed context may yield
> some
> clues.
>
> --
Here goes...
asterisk*CLI> dialplan show CallingRule_Outbound_Ch1
[ Context 'CallingRule_Outbound_Ch1' created by 'pbx_config' ]
'_0.' => 1.
Macro(trunkdial-failover-0.3,${trunk_1}/${,${EXTEN:1})},,trunk_1,) [pbx_config]
-= 1 extension (1 priority) in 1 context. =-
Log when dialing "0924343424"
== Using SIP RTP CoS mark 5
-- Executing [0924343424@DLPN_DialPlan1:1] Macro("SIP/6005-00000002",
"trunkdial-failover-0.3,DAHDI/1/,,trunk_1,") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/6005-00000002",
"0?1-fmsetcid,1") in new stack
-- Executing [[email protected]:2] GotoIf("SIP/6005-00000002",
"1?1-setgbobname,1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-setgbobname,1)
-- Executing [[email protected]:1]
Set("SIP/6005-00000002", "CALLERID(name)=Glintt") in new stack
-- Executing [[email protected]:2]
Goto("SIP/6005-00000002", "s,3") in new stack
-- Goto (macro-trunkdial-failover-0.3,s,3)
-- Executing [[email protected]:3] Set("SIP/6005-00000002",
"CALLERID(num)=222355598") in new stack
-- Executing [[email protected]:4] GotoIf("SIP/6005-00000002",
"1?1-dial,1") in new stack
-- Goto (macro-trunkdial-failover-0.3,1-dial,1)
-- Executing [[email protected]:1]
Dial("SIP/6005-00000002", "DAHDI/1/") in new stack
-- Called 1/
-- DAHDI/1-1 answered SIP/6005-00000002
-- Hungup 'DAHDI/1-1'
== Spawn extension (macro-trunkdial-failover-0.3, 1-dial, 1) exited non-zero
on 'SIP/6005-00000002' in macro 'trunkdial-failover-0.3'
== Spawn extension (DLPN_DialPlan1, 0924343424, 1) exited non-zero on
'SIP/6005-00000002'
A normal internal call to "2000" is:
== Using SIP RTP CoS mark 5
-- Executing [2000@DLPN_DialPlan1:1] Directory("SIP/6005-0000000a",
"default,default,f") in new stack
== Parsing '/etc/asterisk/voicemail.conf': == Found
== Parsing '/etc/asterisk/users.conf': == Found
-- <SIP/6005-0000000a> Playing 'dir-welcome.ulaw' (language 'en')
-- <SIP/6005-0000000a> Playing 'dir-pls-enter.ulaw' (language 'en')
== Spawn extension (DLPN_DialPlan1, 2000, 1) exited non-zero on
'SIP/6005-0000000a'
Hope helps...
Best regards and thanks in advance...
-vcf
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users