Hi List,<div><br></div><div>For certain Asterisk customers I want them to be allowed to manage and send their own CLI - we currently pass this onto providers as RPID. For example we also run a multi tenant pbx that uses kamailio as its proxy so it makes sense that we can send the callerID from this box to kamailio.</div>

<div><br></div><div>Basically I will setup a prefix, check for that and if it matches I want to rewrite the RPID using the From&quot;&quot; from the SIP message..</div><div><br></div><div>From: &quot;16172345671&quot; &lt;sip:username@domain&gt;;tag=xxxxxxxxxxxx</div>

<div><br></div><div>In this case I would send the RPID as</div><div><br></div><div>&lt;sip:16172345671@domain;party=calling;id-type=subscriber;privacy=off;screen=yes&gt;&quot; to our providers rather than reading the default value from the database for rpid.</div>

<div><br></div><div>Where in the Kamailio / SR docs should I be looking for examples that would be similar / manipulating this type of info.</div><div><br></div><div>Thanks,</div><div>S.</div><div><br></div>