<div dir="ltr">Hello<div><br></div><div>I am running OpenSIPS 2.3 and using something along these lines:</div><div><br></div><div><div>  async(rest_get("$var(push_url)", "$var(push_response)"), handle_push_response);</div><div>  ..</div><div>  xlog("L_NOTICE","L16.02, PUSHRESPONSE cid=$ci, RESPONSE=$var(push_response)\n");</div><div>  ..</div><div>  if (pcre_match("$avp(push_response)","OK")) {</div><div>  ..</div><div>  }</div><div>  </div><div>The xlog entry shows /usr/local/sbin/opensips[415]: L16.02, PUSHRESPONSE cid=9ad0Ads0duSAUdj0asd39, RESPONSE={"response":"OK"}</div><div><br></div><div>I observe the following errors in logs (see below). </div><div>Wouldn't make sense to cast it to int I guess and I see no s.string?</div><div><br></div><div>: ERROR:core:fixup_get_svalue: no valid PV value found (error in scripts)</div><div>: ERROR:regex:w_pcre_match: cannot print the format for string</div><div><br></div><div>The pcre_match does not seem to be able to match "OK".  </div><div><br></div><div>Any suggestions as to what I am doing wrong here or how I should do it? </div><div><br></div><div>The same script seems to work with 2.1/2.2.</div><div><br></div><div>Thanks!</div><div><br></div><div><br></div><div>Kind regards,</div><div><br></div><div>Andy Thompson</div><div><br></div><div><br></div><div><br></div></div><div><br></div><div><br></div></div>