My dial plan was generated by asterisk GUI, and the line is:

exten = _0,1,Macro(trunkdial-failover-0.3,${trunk_1}/${,${EXTEN:1})},,trunk_1,)

where trunk_1 "is DAHDI/1"

Notice the difference between your "0." and my "_0".

Is "mine" correct?

Best regards,
-vcf

----- Original Message -----
From: "Danny Nicholas" <da...@debsinc.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 
<asterisk-users@lists.digium.com>
Sent: Tuesday, January 18, 2011 7:21:15 PM
Subject: Re: [asterisk-users] Calling rules

-----Original Message-----
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Vitor Carlos
Flausino
Sent: Tuesday, January 18, 2011 12:10 PM
To: asterisk-users@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.



--
_____________________________________________________________________
-- 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

--
_____________________________________________________________________
-- 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

Reply via email to