<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>That's a header parameter and it is not saved in the location
record. You can eventually save it as location attribute via xavp.</p>
<p>Alternatively, you can move it to the URI, inside the <...>
and then it will be in the addr field after reg_fetch_contacts().</p>
<p>Another option is to use htable to store these device-id values
per user per registration.<br>
</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 01/08/16 12:52, Nahum Nir wrote:<br>
</div>
<blockquote
cite="mid:CAJAEVsJeQEPAhqcDTaUKAumhJ-WMsbZo0DYWJLMZrOxSQo96tA@mail.gmail.com"
type="cite">
<div dir="ltr">Thanks Daniel,
<div><br>
</div>
<div>REGISTER...</div>
<div>....</div>
<div>Contact: <a class="moz-txt-link-rfc2396E" href="sip:...."><sip:....></a>;....; Device-ID=123456789</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Nir</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Aug 1, 2016 at 1:10 PM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Depending on the position you add, it can be Contact
URI parameter or Contact header parameter -- maybe you
can give an example and then I can see if it is uri or
header parameter.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>
<div class="h5"> <br>
<div>On 01/08/16 07:46, Nahum Nir wrote:<br>
</div>
<blockquote type="cite">
<p dir="ltr">I added costume field to the contact
header</p>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 1 Aug 2016 8:36 a.m.,
"Daniel-Constantin Mierla" <<a
moz-do-not-send="true"
href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>is it header parameter or uri parameter
in Contact?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div>On 01/08/16 07:33, Nahum Nir wrote:<br>
</div>
<blockquote type="cite">
<p dir="ltr">Hi Daniel,</p>
<p dir="ltr">I added the device token, or
ID to the contact header so the script
will be able to the the push.</p>
<p dir="ltr">Thanks,<br>
Nahum</p>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 1 Aug 2016
8:28 a.m., "Daniel-Constantin Mierla"
<<a moz-do-not-send="true"
href="mailto:miconda@gmail.com"
target="_blank">miconda@gmail.com</a>>
wrote:<br type="attribution">
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">Hello,<br>
<br>
<br>
On 25/07/16 12:21, Nahum Nir wrote:<br>
> Hello,<br>
><br>
> I am quite a newbe in Kamailio
scripts and further to my effort to<br>
> implement push notification, I
am adding to the contact header
device ID.<br>
><br>
> I have two problems:<br>
> 1. When the register of the
callee expires Kamailio frees the
record<br>
> so the information on the calle
is not available.<br>
> 2. Even when the callee is
registered I do not how to access
the<br>
> contact field. Tried
reg_fetch_contacts(...,"callee") and
there is a<br>
> lot of info but not the contact
header.<br>
><br>
><br>
what do you mean by contact header
device ID?<br>
<br>
The address in Contact header of
REGISTER is in addr attribute.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
--<br>
Daniel-Constantin Mierla<br>
<a moz-do-not-send="true"
href="http://www.asipto.com"
rel="noreferrer" target="_blank">http://www.asipto.com</a>
- <a moz-do-not-send="true"
href="http://www.kamailio.org"
rel="noreferrer" target="_blank">http://www.kamailio.org</a><br>
<a moz-do-not-send="true"
href="http://twitter.com/#%21/miconda"
rel="noreferrer" target="_blank">http://twitter.com/#!/miconda</a>
- <a moz-do-not-send="true"
href="http://www.linkedin.com/in/miconda"
rel="noreferrer" target="_blank">http://www.linkedin.com/in/miconda</a><br>
<br>
</blockquote>
</div>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> - <a moz-do-not-send="true" href="http://www.kamailio.org" target="_blank">http://www.kamailio.org</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a> - <a moz-do-not-send="true" href="http://www.kamailio.org" target="_blank">http://www.kamailio.org</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></pre>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>