[asterisk-bugs] [JIRA] Commented: (ASTERISK-19924) Setting the variable CHANNEL(tonezone) when using AMI command Originate seems to have no effect

David Woolley (JIRA) noreply at issues.asterisk.org
Thu Jul 12 05:35:20 CDT 2012


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

David Woolley commented on ASTERISK-19924:
------------------------------------------

Technically, CHANNEL(tonezone) is a "function" not a "variable".  Maybe only real "variables" can be set by Originate.  (SetVar will set "functions" as well.)

("functions" cause code to be run, and, in this case, the effect is to actually change a field in the channel data structure (chan->zone), rather than manipulating the name/value list that represents variables.)

> Setting the variable CHANNEL(tonezone) when using AMI command Originate seems to have no effect
> -----------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-19924
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-19924
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: General
>    Affects Versions: 1.8.12.1
>            Reporter: Lelio della Pietra
>            Severity: Minor
>
> I need to set the tonezone for a DAHDI call, placed through AMI Originate command, to a non-default zone.
> If I change the tone zone through the dialplan it works (but, if the dest channel is a DAHDI, only if changed BEFORE the Dial, while a SIP channel allows a tonezone change even after the Dial):
> [macro-MACRO_StdCall]
> exten = s,1,Set(CHANNEL(tonezone)=it)
> exten = s,n,Dial(${ARG1})
> exten = s,n,Hangup()
> Now, if I start the call through the AMI Originate command, the
> Variable: CHANNEL(tonezone)=it
> has no effects and it's impossible to change the tone zone of a DAHDI placed call (for a SIP placed one I can act on the Context).

--
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