<div dir="ltr"><div>Hi,</div>
<div> </div>
<div>the gateway i use for sending call to pstn has an option of sending a header with Q850 reason.</div>
<div>it looks like this:</div>
<div>&quot;</div>
<div>Reason: Q.850;cause=17;text=&quot;UserBusy&quot;<br>            Reason Protocols: Q.850<br>            Cause: 17(0x11)[User busy]</div>
<div>&quot;</div>
<div> </div>
<div>now, i need to save the reason for reports.</div>
<div>the reason changes and i am trying to find a way to parse it and save the code only.</div>
<div>usualy i use the &quot;search&quot; function to get text from headers that are the gateway&#39;s inventions :-)</div>
<div>here i can find the text &quot;Q850.....&quot; but how do i get the cause code?</div>
<div>i guess i cab write something long with textops and parsing. but, is there a better and nicer way to perform it?</div>
<div> </div>
<div>thanks,</div>
<div>Uri </div></div>