Re: [Asterisk-Users] Dialplane slip

2005-01-25 Thread Matt Riddell
Altus Snyman wrote:
Good day all
My extensions.conf is something like this
[main]
;---incoming+ play welcome message
extens => s..
;---users extensions
exten => 100.
;---outgoing
ignore 0
;-
It all works fine
The message says dial 1 for this ens
But if I dial 0+number it will actually make a outgoing call!
How do I stop this?
I must allow the ignore 0 for internal uses but not if a call comes in
from the outside?
You shouldn't have outgoing in the same context.
Reorganise as follows:
[incoming]
include => extensions
include => mainmenu
[mainmenu]
exten => s...
[extensions]
exten => 100...
[outgoing]
ignorepat => 0 ...
[internal]
include => extensions
include => outgoing
Then you put context=internal for any phones that are internal (I.E. 
SIP/FXS/IAX etc), context=incoming for any FXO lines/trunks...

--
Cheers,
Matt Riddell
___
http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Dialplane slip

2005-01-24 Thread Altus Snyman
Good day all
My extensions.conf is something like this

[main]
;---incoming+ play welcome message
extens => s..
;---users extensions
exten => 100.
;---outgoing
ignore 0
;-

It all works fine
The message says dial 1 for this ens
But if I dial 0+number it will actually make a outgoing call!
How do I stop this?
I must allow the ignore 0 for internal uses but not if a call comes in
from the outside?
Please Advice
Thanks
Altus


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users