[asterisk-users] Calling rules

Vitor Carlos Flausino vitor.carlos.flausino at gmail.com
Tue Jan 18 12:53:38 CST 2011


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" <danny at debsinc.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Sent: Tuesday, January 18, 2011 7:21:15 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 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.



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



More information about the asterisk-users mailing list