[asterisk-bugs] [JIRA] Commented: (ASTERISK-20313) GotoIf redirection to label not working in included extension - document expected behavior on wiki and update sample config

Birger "WIMPy" Harzenetter (JIRA) noreply at issues.asterisk.org
Sat Sep 15 18:57:27 CDT 2012


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197129#comment-197129 ] 

Birger "WIMPy" Harzenetter commented on ASTERISK-20313:
-------------------------------------------------------

Somehow this issue here escaped me so far.
But I discussed it in #asterisk-dev some months ago.
I don't think it's related to dundi. It happened to me with loopback switches, but I do indeed have a dundi switch deeper in the dialplan as well.
The issue seems to occur when you have both [a] switch[es] and [a] include[s] in a context.

My workaround was to convert the includes to loopback switches.

Additionally the patterns some people wrote about don't seem to work.
[stdissue]But as there is no documentation I'm not sure if that's another bug.


> GotoIf redirection to label not working in included extension - document expected behavior on wiki and update sample config
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20313
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20313
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/General, Core/General
>    Affects Versions: SVN, 10.4.2, 11.0.0-beta1
>         Environment: CentOS 6.3 VM on CentOS 6.2 KVM cluster; CentOS 6.3 on Dell Optiplex 790
>            Reporter: Noah Engelberth
>            Assignee: Matt Jordan
>            Severity: Minor
>         Attachments: dialplan.txt
>
>
> I run a hotdesking system based on the example from Asterisk: The Definitive Guide.  Calls come into the [hotdesk] context, which verifies the phone has a logged in user and sends the call to users,${EXTEN},1 if there is a user logged in.  The [users] context then includes several other contexts for internal/external call handling, as attached.  In both Asterisk 10 and Asterisk 11, the GotoIf does not work under the circumstances shown, giving me the following error and hanging up the call:
> [Aug 23 15:17:35] WARNING[3558][C-00000565]: pbx.c:11799 pbx_parseable_goto: Priority 'notloggedin' must be a number > 0, or valid label
> I can work around the issue with any of the following:
> -	Change the GotoIf to point to internal,${EXTEN},notloggedin
> -	Change the GotoIf to point to 9
> -	Comment out the DUNDi switch in [users]
> -	Unload the pbx_dundi.so module
> In the latter two cases, the call redirects to the notloggedin priority label within [internal],${EXTEN} without me changing the GotoIf - as long as the DUNDi switch is not active in [users].  With the DUNDi switch active, I get the warning message above and the call hangs up.
> I have tried with several other words for the label -- no label works.  I've had the target priority at different points in the extension, ranging from 9 to 15 -- if I call it numerically or as a full context,extension,priority it works, but just calling the priority as a label does not as long as the DUNDi switch is active in the original context the call is operating out of ([users]).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list