[Home]

Summary:ASTERISK-19924: Setting the variable CHANNEL(tonezone) when using AMI command Originate seems to have no effect
Reporter:Lelio della Pietra (leliodp)Labels:
Date Opened:2012-05-30 08:12:07Date Closed:
Priority:MinorRegression?No
Status:Open/NewComponents:General
Versions:1.8.12.1 13.18.4 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:
Description: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).
Comments:By: Rusty Newton (rnewton) 2012-06-03 21:27:34.385-0500

Lelio, can you provide a full log covering the time when this AMI command is issued and dialplan is executed?  Please see https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information and include a full log with DEBUG and VERBOSE of level 5, plus turn debug on in manager.conf and reload asterisk before you do this.

By: Rusty Newton (rnewton) 2012-06-29 18:06:24.603-0500

Lelio, can you provide a full log covering the time when this AMI command is issued and dialplan is executed? Please see https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information and include a full log with DEBUG and VERBOSE of level 5, plus turn debug on in manager.conf and reload asterisk before you do this.

By: Paul Belanger (pabelanger) 2012-07-05 10:12:17.800-0500

Suspended due to lack of activity. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested.  Further information can be found at http://www.asterisk.org/developers/bug-guidelines



By: Paul Belanger (pabelanger) 2012-07-05 10:14:00.448-0500

Re-opening, this is only 1 week old

By: David Woolley (davidw) 2012-07-12 05:34:59.975-0500

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