Hi there,<div><br></div><div>I am using the user part of a SIP URI to know the mailbox number that I have to use on my dialplan. This SIP URI is stored in the History Info of the SIP Header so I am extracting that user part right now using the CUT function against that part of the header.</div>
<div><br></div><div>I would like to know if there&#39;s any simple method to get that part of the SIP URI using regular expression or something easy and consolidated. </div><div><br></div><div>Right now what I am doing is (NUMBER contains the history info):</div>
<div>  exten =&gt; 1234,1,Set(NUMBER=${CUT(NUMBER, \:, 2)})</div><div>  exten =&gt; 1234,2,Set(NUMBER=${CUT(NUMBER, @, 1)})</div><div><br></div><div>I am just interested in the first occurrence of the SIP URI. </div><div>
<br></div><div>Thanks in advance,</div><div>Jonathan</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br>-- <br>Personal webpage - <a href="http://www.jonbaraq.eu">www.jonbaraq.eu</a><br>
</div>