On Sat, 4 Jun 2016, Markus wrote:
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 :-(
0) You should use 'verbose()' instead of 'noop()'
1) If the caller ID matches '+493456789' (the first one), you goto the
'hangup' label. If it does not match, you goto the 'nohangup' label --
skipping the subsequent tests.
2) Please show the CLI output from 'dialplan show callthrough'
3) Please show the CLI output from a call matching the first test and from
a call matching the second test.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST
https://www.linkedin.com/in/steve-edwards-4244281
--
_____________________________________________________________________
-- 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