[asterisk-users] GotoIf Dialplan inquiry
Derek Whitten
derek at kfuq.net
Wed Jun 13 07:16:49 CDT 2007
Steve Finkelstein wrote:
> Hi all,
>
> I have the following in my extensions.conf:
>
> exten => s,4,GotoIf($["${CALLERID(number)}" = "8585979857" |
> "8585970327"]?15:5)
>
> The numbers listed above are known spammer numbers. However, when I call
> from any other CALLERID, it still directs me to s,15 which is the
> Hangup() application. Here are logs from the asterisk CLI:
>
> -- Executing [8995 at fromlime:1] Macro("IAX2/lime-3",
> "forward|SIP/8995&SIP/31337|15|8995|IAX2/limemed at lime/13476681546") in
> new stack
> -- Executing [s at macro-forward:1] Zapateller("IAX2/lime-3",
> "answer|nocallerid") in new stack
> -- Executing [s at macro-forward:2] PrivacyManager("IAX2/lime-3", "")
> in new stack
> -- CallerID Present: Skipping
> -- Executing [s at macro-forward:3] Wait("IAX2/lime-3", "1") in new stack
> -- Executing [s at macro-forward:4] GotoIf("IAX2/lime-3",
> "("8585970327")?15:5") in new stack
> -- Goto (macro-forward,s,15)
> -- Executing [s at macro-forward:15] Hangup("IAX2/lime-3", "") in new stack
> == Spawn extension (macro-forward, s, 15) exited non-zero on
> 'IAX2/lime-3' in macro 'forward'
> == Spawn extension (macro-forward, s, 15) exited non-zero on 'IAX2/lime-3'
> -- Hungup 'IAX2/lime-3'
>
>
> Thank you for any assistance.
>
> - sf
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
;
; 99% of the calls originating from 8xx #'s are telemarketers --
; the hell with that -- shitlist em.
;
exten => s,15,GotoIf($["${CALLERID(num):0:3}" = "877"]?shitlisted,s,1:16)
exten => s,16,GotoIf($["${CALLERID(num):0:3}" = "800"]?shitlisted,s,1:17)
exten => s,17,GotoIf($["${CALLERID(num):0:3}" = "866"]?shitlisted,s,1:18)
exten => s,18,GotoIf($["${CALLERID(num):0:3}" = "855"]?shitlisted,s,1:19)
exten => s,19,GotoIf($["${CALLERID(num):0:3}" = "888"]?shitlisted,s,1:20)
--
-- This is my signature. There are many like it, but this one is mine.. --
http://www.catb.org/~esr/faqs/smart-questions.html
http://video.google.com/videoplay?docid=-4312730277175242198
http://video.google.com/videoplay?docid=786048453686176230
http://video.google.com/videoplay?docid=-6708190071483512003
--------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070613/d524df6e/signature.pgp
More information about the asterisk-users
mailing list