Dear all,<br><br>I want to retrieve the value from Contact header and from "From header " which is "0345001280" from the following two lines:<br>Contact: <<a href="mailto:sip%3A0345001280@123.50.217.143">sip:0345001280@123.50.217.143</a>><br>
From: "999999 9999" <<a href="mailto:sip%3A0345001280@113.34.235.106">sip:0345001280@113.34.235.106</a>>;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 ? <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">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" <<a href="mailto:sip%3A0345001280@113.34.235.106">sip:0345001280@113.34.235.106</a>>;tag=as191896a1<br>To: <<a href="mailto:sip%3A08058913782@113.34.235.106">sip:08058913782@113.34.235.106</a>><br>
Contact: <<a href="mailto:sip%3A0345001280@123.50.217.143">sip:0345001280@123.50.217.143</a>><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>