<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><tt>Hi Dragomir,</tt></p>
<p><tt>There is no "Expires" in REGISTER, so $hdr(expires) prints
"<null>". Try $(hdr(Contact){uri.param,expires}).</tt></p>
<p><tt>Regards,<br>
</tt></p>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 27.11.2017 13:46, Dragomir
Haralambiev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CADzurOLueciqOmtNP8RGi76wV2hHRLyW1h1qZwFJ0=U8aKHQEA@mail.gmail.com">
<div dir="ltr">Hello,
<div><br>
</div>
<div>I try to get expires from REGISTER.</div>
<div>xlog("Expires=$hdr(expires)\n");<br>
</div>
<div><br>
</div>
<div>I receive this:</div>
<div>
<div>Expires=<null></div>
</div>
<div><br>
</div>
<div>Here is REGISTER</div>
<div><br>
</div>
<div>
<div>Session Initiation Protocol (SIP as raw text)</div>
<div> REGISTER sip:<a href="http://sip-server.com:5060"
moz-do-not-send="true">sip-server.com:5060</a> SIP/2.0\r\n</div>
<div> Accept: application/reginfo+xml, application/sdp,
application/simple-message-summary, message/sipfrag,
multipart/mixed, multipart/related\r\n</div>
<div> Via: SIP/2.0/UDP
10.152.220.38:5062;branch=z9hG4bKde569c7a0f7678fe1;rport\r\n</div>
<div> Max-Forwards: 70\r\n</div>
<div> From: "55555555" <<a
href="http://sip:55555555@sip-server.com:5060"
moz-do-not-send="true">sip:55555555@sip-server.com:5060</a>>;tag=026b9b8a13\r\n</div>
<div> To: "55555555" <<a
href="http://sip:55555555@sip-server.com:5060"
moz-do-not-send="true">sip:55555555@sip-server.com:5060</a>>\r\n</div>
<div> Call-ID: de52071eacc30295\r\n</div>
<div> CSeq: 448743846 REGISTER\r\n</div>
<div> Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY,
OPTIONS, REFER, SUBSCRIBE, UPDATE\r\n</div>
<div> Contact: <<a
href="http://sip:55555555@10.152.220.38:5062"
moz-do-not-send="true">sip:55555555@10.152.220.38:5062</a>>;audio;expires=120\r\n</div>
<div> User-Agent: Media5-fone/4.25.4.13060
Android/8.0.0\r\n</div>
<div> Content-Length: 0\r\n</div>
<div> \r\n</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>