<div class="gmail_quote">On Thu, Jan 24, 2013 at 12:11 AM, Jeremy Kister <span dir="ltr"><<a href="mailto:asterisk-dev-01@jeremykister.com" target="_blank">asterisk-dev-01@jeremykister.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
in asterisk < 11, the following "worked":<br>
> ast_copy_string(chan->exten, results, sizeof(chan->exten) - 1);<br>
<br>
<br>
when i update the channel functions for 11:<br>
> ast_copy_string(ast_channel_<u></u>exten(chan), results, sizeof(ast_channel_exten(chan)<u></u>) - 1);<br>
<br>
i get compiler warnings and asterisk core dumps.<br>
> app_jk.c:585: warning: passing argument 1 of 'ast_copy_string' discards qualifiers from pointer target type<br>
> /usr/include/asterisk/strings.<u></u>h:212: note: expected 'char *' but argument is of type 'const char *'<br>
<br>
can someone tell me the right thing to be doing ?<br>
<br>
I think it might have to do with ast_string_field_set (see<br>
<a href="http://lists.digium.com/pipermail/asterisk-dev/2011-July/049897.html" target="_blank">http://lists.digium.com/<u></u>pipermail/asterisk-dev/2011-<u></u>July/049897.html</a> )<br>
<br>
but I don't understand how to use it.<span class="HOEnZb"><font color="#888888"></font></span><br></blockquote><div> </div><div>Hi Jeremy,<br>You'll want to use ast_channel_exten_set(chan, results); since everything on the channel now uses getters and setters or some other form of manipulation instead of direct access.<br>
<br>Kinsey<br></div></div>