[asterisk-users] how to match "no callerid" in 1.6 ?

Louis-David Mitterrand vindex+lists-asterisk-users at apartia.org
Fri Jul 24 03:56:36 CDT 2009


On Fri, Jul 24, 2009 at 10:37:38AM +0200, Michiel van Baak wrote:
> On 10:17, Fri 24 Jul 09, Louis-David Mitterrand wrote:
> > 
> > This used to work fine in 1.4:
> > 
> > 	exten => 2131/,1,NoOp(reject3: ${CALLERID(num)})
> > 	exten => 2131/,n,Playback(no_unknow_callerid_here)
> > 	exten => 2131/,n,Hangup
> > 
> > And now, after upgrading to 1.6.1.x it matches every callerid.
> > 
> > Did something change?
> 
> Yes, it's now working as it supposed to work.
> Use something like this:
> 
> exten => 2131,1,GotoIf($["${CALERID(num)" = ""]?nocallerid,1)
> exten => 2131,n,Dia(SIP/Something); or whatever you want to do
> 
> exten => nocallerid,1,Playback(no_unknown_callerid_here)
> exten => nocallerid,n,Hangup()

Thanks for clearing that up.

But this sucks. Why remove the elegant and minimal <exten>/<emtpy>
notation in favor of an unwieldy GotoIf?



More information about the asterisk-users mailing list