<div dir="ltr"><div><div><div>Hello,<br><br></div>I am planning to insert the caller id in my Kamailio before sending the call to sip vendor.<br><br></div>I am planning to send a prefix before the number and use that prefix in the SQL query to select the CLID. I was thinking in the sqlops to select the CLID and then append the result in the Remote-Party-ID: <br></div><div><div><div><div><br><div>
        <pre style="border:1px solid rgb(153,204,204);padding-left:15pt;background-color:rgb(254,254,238)">modparam("sqlops","sqlcon","cb=><a>mysql://kamailio:abc@10.10.1.1/testdb</a>")
modparam("sqlops","sqlcon","ca=><a>dbdriver://username:password@dbhost/dbname</a>")
...</pre>
      </div>
      
        <pre style="border:1px solid rgb(153,204,204);padding-left:15pt;background-color:rgb(254,254,238)">...
sql_query("ca", "select clid from mitable where prefix = $var(prefix)", "ra");
xlog("number of rows in table domain: $dbr(ra=>rows)\n");
sql_result_free("ra");</pre>Question.....<br><br></div><div>¿Is there an specific module to do this or a there a better way?<br><br></div><div>Thank you<br><br></div><div>Nelson.-<br></div></div></div></div></div>