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

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

Reply via email to