<blockquote style="margin: 0 0 20px 0;"><div style="padding: 10px 0 0 20px; margin: 10px 0 0 0; border-left: 1px solid #6D00F6;"><div dir="ltr" id="yMail_cursorElementTracker_1602585772493">Hii<br></div><div dir="ltr"><br></div><div dir="ltr">Please help me to get the a value from SIP INVITE header reached to kamailio like INVITE sip:+<a ymailto="mailto:341930203454@sub.domain.com" href="mailto:341930203454@sub.domain.com">341930203454@sub.domain.com</a>;myid=+<a ymailto="mailto:34@sub.domain.com" href="mailto:34@sub.domain.com">34@sub.domain.com</a> SIP/2.0 and i want to save the myid value +34 into a variable, without the domain name.<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">     $var(uri) = $sel(ruri);<br></div><div dir="ltr">     xavp_params_explode("$(var(uri){s.unbracket})", "uri");<br></div><div dir="ltr">     xlog("L_INFO", "$var(uri) Received converted to $xavp(uri=>myid[0])\n");<br></div><div dir="ltr"><br></div><div dir="ltr">I tried above and it prints +<a ymailto="mailto:34@sub.domain.com" href="mailto:34@sub.domain.com">34@sub.domain.com</a> But i want to just save +34 into a variable to further check the prefix based routing from the database.<br></div><div dir="ltr"><br></div><div dir="ltr">1) Could you please help how to get it or If there is any alternate/single line approach to get this value?<br></div><div dir="ltr">2) $var & $xavp are process-local variables, and they cant be shared with other calls? Right<br></div><div dir="ltr">3) What is the best module to route calls based their prefix ? pstn_route or dynamic routing or any suggestions?<br></div><div dir="ltr"><br></div><div dir="ltr">Please help, thanks in advance.</div> </div> </blockquote>