Summary: | ASTERISK-00735: [request] pbx_builtin_getvar_helper for UNIQUEID | ||
Reporter: | scaredycat (scaredycat) | Labels: | |
Date Opened: | 2004-01-04 15:31:54.000-0600 | Date Closed: | 2011-06-07 14:04:54 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | With char *options; options = pbx_builtin_getvar_helper(chan,"UNIQUEID"); options is NULL but chan->uniqueid is not NULL if "UNIQUEID" is replaced with "CONSOLE" (defined in extensions.conf) the the result is correct (ie Console/dsp) Jan 4 21:58:10 NOTICE[163861]: File app_cepstral.c, Line 114 (cepstral_exec): pbx_builtin_getvar_helper for UNIQUEID returned (null) it should have returned 1073249884.0 SC | ||
Comments: | By: Brian West (bkw918) 2004-01-04 23:16:17.000-0600 This may be due to UNIQUEID not being global?!? Not sure but CONSOLE is. By: James Golovich (jamesgolovich) 2004-01-09 01:12:32.000-0600 UNIQUEID and most of the other variables listed in README.variables are not real channel variables. They are simply substitued when the pbx_substitue_variables_* calls are made, which is mostly just from extensions.conf By: Brian West (bkw918) 2004-01-09 01:14:27.000-0600 Yep mark even said this sould be a request to mayb expose those in the same manner. By: Brian West (bkw918) 2004-01-10 14:31:03.000-0600 Changed to a feature request. By: Brian West (bkw918) 2004-01-11 02:56:16.000-0600 use pbx_substitue_variables_* By: Brian West (bkw918) 2004-01-15 10:44:28.000-0600 Not a proper fix. By: scaredycat (scaredycat) 2004-01-15 10:54:55.000-0600 strncpy(ltmp,"",sizeof(ltmp)-1); pbx_substitute_variables_helper(c,"${UNIQUEID}",ltmp, sizeof(ltmp)-1); ast_log(LOG_NOTICE,"Grabbed uniqueid %s\n",ltmp); Works... |