[Asterisk-Users] Possible bug with GotoIfTime

Derek Whitten derek at kfuq.net
Sat Jan 7 17:08:52 MST 2006


Bill Michaelson wrote:
> Running a fairly recent subversion release of Asterisk, I'm running into
> a problem using labels (as opposed to priorities) with this application.
> 
> Here is the dialplan segment:
> 
> ; isolate gotoiftime bug with labels
> ;exten => 806,1,GotoIfTime(8:00-20:00,*,*,*?2:4)
> exten => 806,1,GotoIfTime(8:00-20:00,*,*,*?light:dark)
> exten => 806,n(light),noop(light)
> exten => 806,n,hangup
> exten => 806,n(dark),noop(dark)
> exten => 806,n,hangup
> 
> As coded, this is what happens when it executes:
> 
>    -- Executing GotoIfTime("IAX2/hack-2", "8:00-20:00|*|*|*?light:dark")
> in new stack
> Jan  7 18:38:09 NOTICE[28137]: pbx.c:1705 pbx_extension_helper: No such
> label 'light:dark' in extension '806' in context 'default'
> Jan  7 18:38:09 WARNING[28137]: pbx.c:6312 ast_parseable_goto: Priority
> 'light:dark' must be a number > 0, or valid label
>  == Spawn extension (default, 806, 1) exited non-zero on 'IAX2/hack-2'
>    -- Hungup 'IAX2/hack-2'
> 
> But if I disable the second exten line instead of the first, it works
> properly.
> 
> Beware.
> 
> 
> _______________________________________________
> --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


GotoIfTime(8:00-20:00|*|*|*?light:dark|s|1)




-- 
.


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/GIT> d-@ s+:+ a? C+++ BLHIS$ U+++ P+> L+++ !E W+++$ N++ o+ K w--
PS+++ PE@ Y+ PGP++ t 5? X !R tv+ b- DI-- D G e+> h---- r+++ y++++
 ------END GEEK CODE BLOCK------


.
-------------- 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/20060107/15d7fc6a/signature.pgp


More information about the asterisk-users mailing list