How to disabled DND

hi guys, i need to disabed DND feature of Aterisk but it does’nt work, i have script form googling :
[internal-services]
exten => *99,1,Macro(DND)
exten => *99,n,hangup

[macro-DND]
exten => s,1,noop(===macro DND arief===)
exten => s,n,GotoIf(${DB_EXISTS(DND/"${CALLERID(num)}")}?disabled-dnd|1)
exten => s,n,Set(DB(DND/"${CALLERID(num)}")=“1”) ;There was no entry on AstDB, so We active your DND
exten => s,n,playback(do-not-disturb)
exten => s,n,playback(activated)
exten => s,n,hangup

exten => disabled-dnd,1,noop(==DND Deactivated==)
exten => disabled-dnd,n,DBdel(DND/"${CALLERID(num)}") ; You are disabling your DND
exten => disabled-dnd,n,playback(do-not-disturb)
exten => disabled-dnd,n,playback(de-activated)
exten => disabled-dnd,n,hangup

exten => h,1,hangup

When i dial * 99, i got this error from CLI:
[Oct 1 11:43:34] WARNING[16818]: pbx.c:1344 pbx_exec: The application delimiter is now the comma, not the pipe. Did you forget to convert your dialplan? (GotoIf(1?disable-dnd|1))
[Oct 1 11:43:34] NOTICE[16818]: pbx.c:3744 pbx_extension_helper: No such label ‘disable-dnd|1’ in extension ‘s’ in context ‘macro-DND’
[Oct 1 11:43:34] WARNING[16818]: pbx.c:9625 pbx_parseable_goto: Priority ‘disable-dnd|1’ must be a number > 0, or valid label

What That’s mean ?? What’s that solution from my trouble? Thanks for any answer…

Try changing:

exten => s,n,GotoIf(${DB_EXISTS(DND/"${CALLERID(num)}")}?disabled-dnd|1)

to:

exten => s,n,GotoIf(${DB_EXISTS(DND/"${CALLERID(num)}")}?disabled-dnd)

[quote=“dejanst”]Try changing:

exten => s,n,GotoIf(${DB_EXISTS(DND/"${CALLERID(num)}")}?disabled-dnd|1)

to:

exten => s,n,GotoIf(${DB_EXISTS(DND/"${CALLERID(num)}")}?disabled-dnd) [/quote]

it doesn’t work, but i got solution,

exten => s,n,GotoIf(${DB_EXISTS(DND/"${CALLERID(num)}")}?disabled-dnd|1)

change to :

exten => s,n,GotoIf(${DB_EXISTS(DND/"${CALLERID(num)}")}?disabled-dnd,1)

Thanks for your help