<div dir="ltr">Hello,<div>I just noticed a weird behavior when using ODBC functions. If the content of any of the paramter has a "=" inside, then the function is not processed correctly by asterisk.</div><div><br></div><div>Let's take for example the following ODBC function in func_odbc.conf</div><div><br></div><div><div>[LOG_SMS]</div><div>dsn=asterisk1,asterisk2</div><div>synopsis=Log the route of a SMS</div><div>writesql=INSERT INTO sm_smslogs(sm_te_id,sm_date,sm_direction,sm_sourceraw,sm_destraw,sm_from,sm_to,sm_body,sm_fullresult,sm_response) values ('${ARG1}',NOW(),'${ARG2}','${ARG3}','${ARG4}','${ARG5}','${ARG6}','${SQL_ESC(${ARG7})}','${SQL_ESC(${ARG8})}','${SQL_ESC(${VAL1})}')</div></div><div><br></div><div>When it is called using:</div><div><br></div><div><div>[2015-08-31 16:35:16] VERBOSE[29562][C-00000001] pbx.c: Executing [103@astsms:37] Set("Message/ast_msg_queue", "ODBC_LOG_SMS(1,ONNET,<<a href="mailto:sip%3A102-DEVEL@devel.mirtapbx.com">sip:102-DEVEL@devel.mirtapbx.com</a>;transport=UDP>,<a href="mailto:sip%3A103@devel.mirtapbx.com">sip:103@devel.mirtapbx.com</a>;transport=UDP,102,103,Second test 4,)=SUCCESS") in new stack</div></div><div><br></div><div>Asterisk interprets the first "=" as assignment. In the debug log I found:</div><div><br></div><div><div>Variable: ODBC_LOG_SMS(1,ONNET,<<a href="mailto:sip%3A102-DEVEL@devel.mirtapbx.com">sip:102-DEVEL@devel.mirtapbx.com</a>;transport</div></div><div>AppData: UDP>,<a href="mailto:sip%3A103@devel.mirtapbx.com">sip:103@devel.mirtapbx.com</a>;transport=UDP,102,103,Second test 4,)=SUCCESS<br></div><div><br></div><div>And the ODBC function is not executed.</div><div><br></div><div>Is there a way, beside using REPLACE, to avoid this problem?</div><div><br></div><div>Leandro</div></div>