<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You might take a look at the SIPHEADER function which can return specific SIP headers.<br><div>
<span class="Apple-style-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; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">--&nbsp;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">Jim Dickenson</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="mailto:dickenson@cfmc.com">mailto:dickenson@cfmc.com</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; ">CfMC</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Monaco; "><a href="http://www.cfmc.com/">http://www.cfmc.com/</a></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px; "><br></span></font></div></div></span><br class="Apple-interchange-newline">
</div>
<br><div><div>On Jun 30, 2010, at 7:36 PM, kamrun nahar bina wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Dear all,<br><br>I want to retrieve the value from Contact header and&nbsp; from "From header " which is "0345001280" from the following two lines:<br>Contact: &lt;<a href="mailto:sip%3A0345001280@123.50.217.143">sip:0345001280@123.50.217.143</a>&gt;<br>
From: "999999 9999" &lt;<a href="mailto:sip%3A0345001280@113.34.235.106">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 "0345001280" of contact ? &nbsp; <br>
Corresponding value:<br>CALLERID(num)&nbsp;&nbsp;&nbsp; : 0000185475<br>CALLERID(name)&nbsp;&nbsp; : 999999 9999<br>SCI-PEERNAME&nbsp;&nbsp;&nbsp;&nbsp; : 0000185475<br><br>SIP message:<br><br>INVITE <a href="mailto:sip%3A08058913782@113.34.235.106">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: "999999 9999" &lt;<a href="mailto:sip%3A0345001280@113.34.235.106">sip:0345001280@113.34.235.106</a>&gt;;tag=as191896a1<br>To: &lt;<a href="mailto:sip%3A08058913782@113.34.235.106">sip:08058913782@113.34.235.106</a>&gt;<br>
Contact: &lt;<a href="mailto:sip%3A0345001280@123.50.217.143">sip:0345001280@123.50.217.143</a>&gt;<br>Call-ID: <a href="mailto:0f3fbfe3463035d04f05534824a18012@113.34.235.106">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>
-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div><br></body></html>