[asterisk-bugs] [JIRA] (ASTERISK-23583) Set Asterisk App - Context gets changed to value of "Set" variable

Jay Jideliov (JIRA) noreply at issues.asterisk.org
Thu Apr 3 15:27:18 CDT 2014


Jay Jideliov created ASTERISK-23583:
---------------------------------------

             Summary: Set Asterisk App - Context gets changed to value of "Set" variable
                 Key: ASTERISK-23583
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23583
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
    Affects Versions: 11.9.0
            Reporter: Jay Jideliov


When using Set Asterisk application in realtime dialplan, the context gets the value of the "Set" variable.
 
Not working:
{noformat}
  id	context	exten	priority	app	     appdata
 1   cont1   1011     1         Set   MYVAR=SOMEVAL
 2   cont1   1011     2         NoOp     ${MYVAL} 
 {noformat}

Working
 {noformat}
 id	context	exten	priority	app	     appdata
 1   cont1   1011     1         Set   MYVAR=SOMEVAL
 2   SOMEVAL   1011     2       NoOp     ${MYVAR} 
 {noformat}
 
Debug:
 {noformat}
 Executing [schedule at dynamic-context:9] Set("SIP/comp.device-1766-0000002d", "DYNAMIC_CONTEXT=Schedule1419Start")
[2014-04-03 15:52:56] DEBUG[5547][C-0000002c]: pbx.c:3671 ast_str_retrieve_variable: Result of 'DYNAMIC_CONTEXT' is 'Schedule1419Start'
[2014-04-03 15:52:56] DEBUG[5547][C-0000002c]: res_config_odbc.c:93 custom_prepare: Skip: 0; SQL: SELECT * FROM asterisk_db_extensions WHERE exten = ? AND context = ? AND priority = ?
[2014-04-03 15:52:56] DEBUG[5547][C-0000002c]: res_config_odbc.c:109 custom_prepare: Parameter 1 ('exten') = 'schedule'
[2014-04-03 15:52:56] DEBUG[5547][C-0000002c]: res_config_odbc.c:109 custom_prepare: Parameter 2 ('context') = 'Schedule1419Start'
[2014-04-03 15:52:56] DEBUG[5547][C-0000002c]: res_config_odbc.c:109 custom_prepare: Parameter 3 ('priority') = '10'
[2014-04-03 15:52:56] DEBUG[5547][C-0000002c]: res_odbc.c:1058 odbc_release_obj2: odbc_release_obj2(0x271f458) called (obj->txf = (nil))
{noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list