[asterisk-bugs] [JIRA] (ASTERISK-17213) Channel variables apparently not available as application arguments in features.conf application map

Matt Jordan (JIRA) noreply at issues.asterisk.org
Sat Mar 14 21:08:34 CDT 2015


     [ https://issues.asterisk.org/jira/browse/ASTERISK-17213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan updated ASTERISK-17213:
-----------------------------------

    Description: 
It'd be great if the below worked in features.conf so that users could punch a feature code to have a message logged with the channel and time so issues could be debugged:

{noformat}
[applicationmap]
audioissuelog => 333,self/both,Log(NOTICE,Audio issue reported by ${CHANNEL} at ${STRFTIME(${EPOCH},,%F %T) !!)
{noformat}

I'd expect something like

{noformat}
[Jan  7 14:49:42] NOTICE[4290] Ext. 35: Audio issue reported by SIP/polycom-00000010 at 2011-01-07 14:49:42 !!
{noformat}

to be put in the log (which is what happens when I run the same command from the dialplan instead of features.conf), but what I actually see is

{noformat}
[Jan  7 14:25:04] NOTICE[2581] Ext. 53: Audio issue reported by ${CHANNEL} at ${STRFTIME(${EPOCH},,%F %T) !!
{noformat}

Apparently channel variables aren't interpreted when the application is called from features.conf's [applicationmap].

This is true regardless of which application I call. I also tried with Playback, with Set(AudioFile=tt-monkeys) in the dialplan and playbacktest => 444,self/both,Playback(${AudioFile}) in the [applicationmap] of features.conf, and the console told me

{noformat}
[Jan  7 14:54:11] WARNING[4679]: file.c:650 ast_openstream_full: File ${AudioFile} does not exist in any format
[Jan  7 14:54:11] WARNING[4679]: file.c:956 ast_streamfile: Unable to open ${AudioFile} (format 0x4 (ulaw)): No such file or directory
[Jan  7 14:54:11] WARNING[4679]: app_playback.c:476 playback_exec: ast_streamfile failed on SIP/xlite4-00000014 for ${AudioFile}
{noformat}

Calling Playback(${AudioFile}) from the dialplan worked as expected.

What would it take to make channel variables accessible from features.conf's [applicationmap]?



  was:
It'd be great if the below worked in features.conf so that users could punch a feature code to have a message logged with the channel and time so issues could be debugged:

[applicationmap]
audioissuelog => 333,self/both,Log(NOTICE,Audio issue reported by ${CHANNEL} at ${STRFTIME(${EPOCH},,%F %T) !!)

I'd expect something like

[Jan  7 14:49:42] NOTICE[4290] Ext. 35: Audio issue reported by SIP/polycom-00000010 at 2011-01-07 14:49:42 !!

to be put in the log (which is what happens when I run the same command from the dialplan instead of features.conf), but what I actually see is

[Jan  7 14:25:04] NOTICE[2581] Ext. 53: Audio issue reported by ${CHANNEL} at ${STRFTIME(${EPOCH},,%F %T) !!

Apparently channel variables aren't interpreted when the application is called from features.conf's [applicationmap].

This is true regardless of which application I call. I also tried with Playback, with Set(AudioFile=tt-monkeys) in the dialplan and playbacktest => 444,self/both,Playback(${AudioFile}) in the [applicationmap] of features.conf, and the console told me

[Jan  7 14:54:11] WARNING[4679]: file.c:650 ast_openstream_full: File ${AudioFile} does not exist in any format
[Jan  7 14:54:11] WARNING[4679]: file.c:956 ast_streamfile: Unable to open ${AudioFile} (format 0x4 (ulaw)): No such file or directory
[Jan  7 14:54:11] WARNING[4679]: app_playback.c:476 playback_exec: ast_streamfile failed on SIP/xlite4-00000014 for ${AudioFile}

Calling Playback(${AudioFile}) from the dialplan worked as expected.

What would it take to make channel variables accessible from features.conf's [applicationmap]?




> Channel variables apparently not available as application arguments in features.conf application map
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-17213
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-17213
>             Project: Asterisk
>          Issue Type: New Feature
>          Components: Features
>            Reporter: Kenneth Shumard
>
> It'd be great if the below worked in features.conf so that users could punch a feature code to have a message logged with the channel and time so issues could be debugged:
> {noformat}
> [applicationmap]
> audioissuelog => 333,self/both,Log(NOTICE,Audio issue reported by ${CHANNEL} at ${STRFTIME(${EPOCH},,%F %T) !!)
> {noformat}
> I'd expect something like
> {noformat}
> [Jan  7 14:49:42] NOTICE[4290] Ext. 35: Audio issue reported by SIP/polycom-00000010 at 2011-01-07 14:49:42 !!
> {noformat}
> to be put in the log (which is what happens when I run the same command from the dialplan instead of features.conf), but what I actually see is
> {noformat}
> [Jan  7 14:25:04] NOTICE[2581] Ext. 53: Audio issue reported by ${CHANNEL} at ${STRFTIME(${EPOCH},,%F %T) !!
> {noformat}
> Apparently channel variables aren't interpreted when the application is called from features.conf's [applicationmap].
> This is true regardless of which application I call. I also tried with Playback, with Set(AudioFile=tt-monkeys) in the dialplan and playbacktest => 444,self/both,Playback(${AudioFile}) in the [applicationmap] of features.conf, and the console told me
> {noformat}
> [Jan  7 14:54:11] WARNING[4679]: file.c:650 ast_openstream_full: File ${AudioFile} does not exist in any format
> [Jan  7 14:54:11] WARNING[4679]: file.c:956 ast_streamfile: Unable to open ${AudioFile} (format 0x4 (ulaw)): No such file or directory
> [Jan  7 14:54:11] WARNING[4679]: app_playback.c:476 playback_exec: ast_streamfile failed on SIP/xlite4-00000014 for ${AudioFile}
> {noformat}
> Calling Playback(${AudioFile}) from the dialplan worked as expected.
> What would it take to make channel variables accessible from features.conf's [applicationmap]?



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



More information about the asterisk-bugs mailing list