<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">Dear Jim Dickenson.<br>
<br></span>Thanks for you mail. I have got the solution.<br><br>Thanks<br>Nahar<br><br><div class="gmail_quote">On Thu, Jul 1, 2010 at 11:45 AM, Jim Dickenson <span dir="ltr">&lt;<a href="mailto:dickenson@cfmc.com">dickenson@cfmc.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="word-wrap: break-word;">You might take a look at the SIPHEADER function which can return specific SIP headers.<br>
<div>
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div>
<div style="margin: 0px;">-- </div><div style="margin: 0px;">Jim Dickenson</div><div style="margin: 0px;"><a href="mailto:dickenson@cfmc.com" target="_blank">mailto:dickenson@cfmc.com</a></div><div style="margin: 0px; min-height: 14px;">
<br></div><div style="margin: 0px;">CfMC</div><div style="margin: 0px;"><a href="http://www.cfmc.com/" target="_blank">http://www.cfmc.com/</a></div><div><font face="Monaco" size="2"><span style="font-size: 10px;"><br></span></font></div>
</div></span><br>
</div>
<br><div><div><div></div><div class="h5"><div>On Jun 30, 2010, at 7:36 PM, kamrun nahar bina wrote:</div><br></div></div><blockquote type="cite"><div><div></div><div class="h5">Dear all,<br><br>I want to retrieve the value from Contact header and  from &quot;From header &quot; which is &quot;0345001280&quot; from the following two lines:<br>
Contact: &lt;<a href="mailto:sip%3A0345001280@123.50.217.143" target="_blank">sip:0345001280@123.50.217.143</a>&gt;<br>
From: &quot;999999 9999&quot; &lt;<a href="mailto:sip%3A0345001280@113.34.235.106" target="_blank">sip:0345001280@113.34.235.106</a>&gt;;tag=as191896a1<br><br>Is it possible in asterisk to retrieve that value? I am getting following value in the corresponding variable when I pass the following SIP message. Is there anything which contain the value of &quot;0345001280&quot; of contact ?   <br>

Corresponding value:<br>CALLERID(num)    : 0000185475<br>CALLERID(name)   : 999999 9999<br>SCI-PEERNAME     : 0000185475<br><br>SIP message:<br><br>INVITE <a href="mailto:sip%3A08058913782@113.34.235.106" target="_blank">sip:08058913782@113.34.235.106</a> SIP/2.0<br>

Via: SIP/2.0/UDP 123.50.217.143:5060;branch=z9hG4bK100b063a;rport<br>From: &quot;999999 9999&quot; &lt;<a href="mailto:sip%3A0345001280@113.34.235.106" target="_blank">sip:0345001280@113.34.235.106</a>&gt;;tag=as191896a1<br>
To: &lt;<a href="mailto:sip%3A08058913782@113.34.235.106" target="_blank">sip:08058913782@113.34.235.106</a>&gt;<br>
Contact: &lt;<a href="mailto:sip%3A0345001280@123.50.217.143" target="_blank">sip:0345001280@123.50.217.143</a>&gt;<br>Call-ID: <a href="mailto:0f3fbfe3463035d04f05534824a18012@113.34.235.106" target="_blank">0f3fbfe3463035d04f05534824a18012@113.34.235.106</a><br>

CSeq: 102 INVITE<br>User-Agent: Asterisk PBX<br>Max-Forwards: 70<br>Date: Thu, 01 Jul 2010 02:20:18 GMT<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY<br>Content-Type: application/sdp<br>Content-Length: 267<br>

<br>v=0<br>o=root 22702 22702 IN IP4 123.50.217.143<br>s=session<br>c=IN IP4 123.50.217.143<br>t=0 0<br>m=audio 17262 RTP/AVP 0 8 3 101<br>a=rtpmap:0 PCMU/8000<br>a=rtpmap:8 PCMA/8000<br>a=rtpmap:3 GSM/8000<br>a=rtpmap:101 telephone-event/8000<br>

a=fmtp:101 0-16<br>a=silenceSupp:off - - - -<br><br><br>Is it possible to retrieve the value of contact in asterisk ? Please let me know. <br>Is there anyone who knows the solution? I need this urgent.<br><br>Thanks in advance <br>

<br>Nahar<br></div></div>
-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote>
</div><br></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>