<div dir="ltr">You can escape characters with a backslash, I've not tried it in this case but it may help you.<div><br></div><div>Another idea is you could encode your data with the BASE64_ENCODE or URIENCODE * functions and decode it in your subroutine.</div><div><br></div><div><a href="https://wiki.asterisk.org/wiki/display/AST/Function_BASE64_ENCODE">https://wiki.asterisk.org/wiki/display/AST/Function_BASE64_ENCODE</a><br></div><div><br></div><div><a href="https://wiki.asterisk.org/wiki/display/AST/Function_URIENCODE">https://wiki.asterisk.org/wiki/display/AST/Function_URIENCODE</a><br></div><div><br></div><div>* I'm not certain if URIENCODE will escape the comma, it sounds like it should reading the RFC.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 9, 2014 at 2:44 AM, Daniel Gonzalez <span dir="ltr"><<a href="mailto:gonvaled@gonvaled.com" target="_blank">gonvaled@gonvaled.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi,</div><div class="gmail_default"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Let's say I do:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Set(data=xxx,yyy)</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Gosub(my-sub,s,1(${data}))</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">My subroutine will only receive "xxx" for ARG1. How can I pass a literal with a comma to a single argument in a subroutine?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">(The point is: when calling the subroutine I do not know if the variable has a comma or not.)</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Thanks,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Daniel</div></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div>
</div>