[Asterisk-Users] Dialplan question

Michiel Betel michiel at betel.nl
Sun Sep 7 04:08:37 MST 2003


Fredrik,
 
Your dialplan looks correct, however you disallow 112, the emergency number!
Does it fail for local or interlocal calls?
 
I use:
 
[dutchdial]
;
;emergency (112) and other 11x numbers
;
exten => _1XX,1,Dial(${ISDN}:${EXTEN})
exten => _1XX,2,Congestion
exten => _01XX,1,Dial(${ISDN}:${EXTEN:1})
exten => _01XX,2,Congestion
;
;0900 & 0800 numbers
;
exten => _00[89]00.,1,SetCIDNum(0206408219)
exten => _00[89]00.,2,Dial(${ISDN}:${EXTEN:1})
exten => _00[89]00.,3,Congestion
;
;International
;
exten => _000.,1,Dial(${ISDN}:${EXTEN:1})
exten => _000.,2,Congestion
;
;Local (7 digits, add area code)
;
exten => _0XXXXXXX,1,SetCIDNum(0206408219)
exten => _0XXXXXXX,2,Dial(${ISDN}:020${EXTEN:1})
exten => _0XXXXXXX,3,Congestion
;
;Interlocal, 10 digits
;
exten => _0XXXXXXXXXX,1,SetCIDNum(0206408219)
exten => _0XXXXXXXXXX,2,Dial(${ISDN}:${EXTEN:1})
exten => _0XXXXXXXXXX,3,Congestion

And it works fine....

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of fredrik chabot
Sent: zaterdag 6 september 2003 18:25
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Dialplan question


Hi,

Dialplan Question

I'm in holland and I have:

[naarbuiten]
ignorepat => 0
; interlocaal
exten => _00[1-9]XXXXXXXX,1,Dial(Modem/g1:${EXTEN})             
exten => _00[1-9]XXXXXXXX,2,Congestion
; locaal
exten => _0[1-9]XXXXXX,1,Dial(Modem/g1:${EXTEN})                
exten => _0[1-9]XXXXXX,2,Congestion

And sometimes I can get out, most of the time however I get a busy signal
halfway throu the number.

It works more often if I change 

Early Dial:   No      Yes (use "Yes" only if proxy supports 484 response)

to No. In the Budgetone 100 phone.

regards,

fredrik chabot

---

*CLI> show dialplan 
[ Context 'default' created by 'pbx_config' ]
  Include =>        'demo'
[pbx_config]

[ Context 'demo' created by 'pbx_config' ]
  '#' =>            1. Playback(demo-thanks)
[pbx_config]
                    2. Hangup()
[pbx_config]
  '100' =>          1. Dial(SIP/100)
[pbx_config]
  '101' =>          1. Dial(SIP/101)
[pbx_config]
  '190' =>          1. Dial(Modem/g1:0064000000)
[pbx_config]
  '8500' =>         1. VoicemailMain()
[pbx_config]
                    2. Goto(s|6)
[pbx_config]
  'i' =>            1. Playback(invalid)
[pbx_config]
  's' =>            1. Wait(1)
[pbx_config]
                    2. Answer()
[pbx_config]
                    3. DigitTimeout(5)
[pbx_config]
                    4. ResponseTimeout(10)
[pbx_config]
                    5. BackGround(demo-congrats)
[pbx_config]
                    6. BackGround(demo-instruct)
[pbx_config]
  't' =>            1. Goto(#|1)
[pbx_config]

  Include =>        'naarbuiten'
[pbx_config]

[ Context 'naarbuiten' created by 'pbx_config' ]
  '_00[1-9]XXXXXXXX' => 1. Dial(Modem/g1:${EXTEN})
[pbx_config]
                    2. Congestion()
[pbx_config]
  '_0[1-9]XXXXXX' => 1. Dial(Modem/g1:${EXTEN})
[pbx_config]
                    2. Congestion()
[pbx_config]

  Ignore pattern => '0'
[pbx_config]

[ Context 'vanbuiten' created by 'pbx_config' ]
  's' =>            1. Wait(1)
[pbx_config]
                    2. Answer()
[pbx_config]
                    3. DigitTimeout(5)
[pbx_config]
                    4. ResponseTimeout(10)
[pbx_config]
                    5. Playback(tt-weasels)
[pbx_config]
                    6. Dial(SIP/100|4)
[pbx_config]
                    7. Dial(SIP/100&SIP/101|10)
[pbx_config]
                    8. Dial(SIP/100&SIP/101&Modem/g1:00640000000)
[pbx_config]




_______________________________________________ Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030907/60bbdbed/attachment.htm


More information about the asterisk-users mailing list