Thanks. I've submitted issue <a href="https://issues.asterisk.org/view.php?id=19137">19137</a><div><br></div><div><a href="https://issues.asterisk.org/view.php?id=19137"></a>-Rob<br><br><div class="gmail_quote">On Mon, Apr 18, 2011 at 7:30 PM, Tilghman Lesher <span dir="ltr"><<a href="mailto:tilghman@meg.abyt.es">tilghman@meg.abyt.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Monday 18 April 2011 19:10:36 Rob LaRubbio wrote:<br>
> For a project I'm working on, we are using voiceglue to handle VXML<br>
> interactions with asterisk. The project is using the Java asterisk<br>
> interface. Running against both asterisk v1.6 and 1.8 we are seeing an<br>
> issue with the url sent to voiceglue getting truncated. Specifically if<br>
> we send this message:<br>
><br>
> action: Originate<br>
> actionid: 33517025_5#AJ_ORIGINATE_0<br>
> application: Agi<br>
> data:<br>
> agi://localhost/url=http%3A%2F%2F192.168.1.107%3A8080%2Fm%2Fmodule%2Far%<br>
> 2Fvxml%2Far%3Fr%3D1 async: true<br>
> variable: __AJ_TRACE_ID=AJ_ORIGINATE_0<br>
> channel: SIP/1000<br>
> timeout: 10000<br>
><br>
> What gets passed to voiceglue is this URL:<br>
> <a href="http://192.168.1.107:8080/m/module/ar/vxml%" target="_blank">http://192.168.1.107:8080/m/module/ar/vxml%</a><br>
><br>
> I'm new to asterisk and this was my first glance into the code, but it<br>
> looks like in main/manager.c in action_originate (Line 3907) it copies<br>
> the data element of the message into a fast_orginate_helper struct:<br>
><br>
> ast_copy_string(fast->appdata, appdata, sizeof(fast->appdata));<br>
><br>
> However the struct definition for fast_originate_helper only provides 80<br>
> characters for appdata (char appdata[AST_MAX_EXTENSION];) and that isn't<br>
> big enough for a URL. (elsewhere in the code I've seen appdata set to<br>
> 1024)<br>
><br>
> I've searched through the issue system for 'appdata truncated' but<br>
> didn't find anything. Apolgies if this is a dupe. Anyway is there<br>
> another way to send urls to voiceglue through asterisk that accepts<br>
> longer URLs, or should this appdata definition be larger? (Or am I<br>
> looking at the wrong part of the code?) Thanks.<br>
<br>
</div></div>Yes, the buffer should probably be larger. An alternative method would<br>
be to set variables, then either originate an extension which retrieves<br>
those variables or retrieve those variables directly in the AGI, before<br>
doing anything else.<br>
<br>
Please file a bug on this. Not only should that buffer be larger, but the<br>
app_tmp structure in main/pbx.c also needs to be increased (beyond the<br>
256 character limit).<br>
<br>
--<br>
Tilghman<br>
<font color="#888888"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</font></blockquote></div><br></div>