[asterisk-users] Including doesn't have any effect
Markus
universe at truemetal.org
Sat Jun 4 13:53:51 CDT 2016
Hi list,
n00b question, but I can't figure it out:
[callthrough]
exten => _+X.,1,NoOp(nothing here)
#include "blockedall.conf"
exten => _+X.,n(hangup),Hangup
exten => _+X.,n(nohangup),GotoIf($["${CALLERID(num)}" =
"anonymous"]?nocli:cli)
... more stuff that is handling the call ...
I'm putting CLIs that I don't want to be able to call my system into
blockedall.conf:
exten => _+X.,n,GotoIf($["${CALLERID(num)}" = "+493456789"]?hangup:nohangup)
exten => _+X.,n,GotoIf($["${CALLERID(num)}" = "+492345678"]?hangup:nohangup)
exten => _+X.,n,GotoIf($["${CALLERID(num)}" = "+491234567"]?hangup:nohangup)
But it never moves to "hangup" when I call from any of those CLIs :-(
BUT, if I include it directly in extensions.conf, it works:
[callthrough]
exten => _+X.,1,NoOp(nothing here)
exten => _+X.,n,GotoIf($["${CALLERID(num)}" = "+493456789"]?hangup:nohangup)
exten => _+X.,n(hangup),Hangup
exten => _+X.,n(nohangup),GotoIf($["${CALLERID(num)}" =
"anonymous"]?nocli:cli)
... more stuff that is handling the call ...
I made sure that "blockedall.conf" actually gets included by executing
"dialplan show callthrough".
What am I missing?
Asterisk 11.17.1.
Thank you!
Markus
More information about the asterisk-users
mailing list