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)