<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>as the docs say, the uri is the value to be used instead of To
header URI, not instead of Contact URI. This value is used to
store in the username and domain columns.<br>
</p>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 04/01/2017 23:29, Slava Bendersky
wrote:<br>
</div>
<blockquote
cite="mid:724765249.117475465.1483568950334.JavaMail.zimbra@skillsearch.ca"
type="cite">
<div style="font-family: lucida console,sans-serif; font-size:
12pt; color: #000000">
<div>Hello Daniel,</div>
<div>Based on wiki page </div>
<div><a class="moz-txt-link-freetext" href="http://www.kamailio.org/docs/modules/4.4.x/modules/registrar.html#registrar.f.save">http://www.kamailio.org/docs/modules/4.4.x/modules/registrar.html#registrar.f.save</a><br
data-mce-bogus="1">
</div>
<div><br data-mce-bogus="1">
</div>
<div>I should be able do location save with pv var and supply
uri.</div>
<div><br data-mce-bogus="1">
</div>
<div>
<pre class="programlisting" style="font-family: monospace; white-space: pre; background-color: #fcfffc; border: 1px solid #99cccc; color: #000000; padding-left: 15pt; overflow: auto; border-radius: 2.5px; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;" data-mce-style="font-family: monospace; white-space: pre; background-color: #fcfffc; border: 1px solid #99cccc; color: #000000; padding-left: 15pt; overflow: auto; border-radius: 2.5px; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;">save("location", "0x00", <a class="moz-txt-link-rfc2396E" href="sip:test@kamailio.org">"sip:test@kamailio.org"</a>);</pre>
</div>
<div>
<div class="itemizedlist" style="color: #000000; font-family:
Helvetica, Arial; font-size: 15px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: #ffffff;"
data-mce-style="color: #000000; font-family: Helvetica,
Arial; font-size: 15px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: #ffffff;">
<ul class="itemizedlist" type="disc">
<li class="listitem">
<p style="font-family: Helvetica, Arial; font-size:
12px; text-align: justify; margin: 0px;"
data-mce-style="font-family: Helvetica, Arial;
font-size: 12px; text-align: justify; margin: 0px;"><span
class="emphasis"><em>uri</em></span><span
class="Apple-converted-space"> </span>(optional -
flags param has to be set and can be 0 for default
behavior) - SIP URI to do be used instead of To header
URI. It can be a dynamic string with pseudo-variables.</p>
</li>
</ul>
</div>
</div>
<div>I tested multiply variation all of them ignore pv var.</div>
<div><br data-mce-bogus="1">
</div>
<div><br data-mce-bogus="1">
</div>
<div>Slava.</div>
<div><br data-mce-bogus="1">
</div>
<div><br>
</div>
<hr id="zwchr" data-marker="__DIVIDER__">
<div data-marker="__HEADERS__"><b>From: </b>"volga629"
<a class="moz-txt-link-rfc2396E" href="mailto:volga629@skillsearch.ca"><volga629@skillsearch.ca></a><br>
<b>To: </b>"miconda" <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
<b>Cc: </b>"sr-users" <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a><br>
<b>Sent: </b>Monday, January 2, 2017 11:40:33 AM<br>
<b>Subject: </b>Re: [SR-Users] location<br>
</div>
<br>
<div data-marker="__QUOTED_TEXT__">
<div style="font-family: lucida console,sans-serif; font-size:
12pt; color: #000000;" data-mce-style="font-family: lucida
console,sans-serif; font-size: 12pt; color: #000000;">
<div>Hello Daniel,</div>
<div>I am trying save user contact on reply 200 OK from
freeswitch. Contact is set in $avp(aor) which contain
updated user location.</div>
<br>
<div>Slava.</div>
<br>
<hr id="zwchr">
<div><b>From: </b>"miconda" <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a><br>
<b>To: </b>"volga629" <a class="moz-txt-link-rfc2396E" href="mailto:volga629@skillsearch.ca"><volga629@skillsearch.ca></a>,
"sr-users" <a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.sip-router.org"><sr-users@lists.sip-router.org></a><br>
<b>Sent: </b>Monday, January 2, 2017 10:45:34 AM<br>
<b>Subject: </b>Re: [SR-Users] location<br>
</div>
<br>
<div>
<p>Hello,</p>
<p>the third parameter is not for contact, it is the
address of record -- the user address, eg., <a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:alice@sipdomain.com" target="_blank">alice@sipdomain.com</a>,
not <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:alice@phone.ip" target="_blank">alice@phone.ip</a><br>
</p>
What exactly do you need to achieve? Maybe there are other
options that you can use.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 02/01/2017 15:12, Slava
Bendersky wrote:<br>
</div>
<blockquote
cite="mid:1392544399.85955934.1483366369986.JavaMail.zimbra@skillsearch.ca">
<div style="font-family: lucida console,sans-serif;
font-size: 12pt; color: #000000;"
data-mce-style="font-family: lucida
console,sans-serif; font-size: 12pt; color: #000000;">
<div>Hello Daniel,</div>
<div>Meaning <span style="color: #000000; font-family:
'lucida console', sans-serif; font-size: 16px;
font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows:
2; word-spacing: 0px; -webkit-text-stroke-width:
0px; background-color: #ffffff; display: inline
!important; float: none;" data-mce-style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing:
normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff; display: inline !important; float: none;"><span
style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px;
font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;" data-mce-style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing:
0px; -webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;">if(!save("location",
"0x04", "$var(aor)")) ---> <span
style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px;
font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
orphans: 2; text-align: start; text-indent:
0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"
data-mce-style="color: #000000; font-family:
'lucida console', sans-serif; font-size: 16px;
font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
orphans: 2; text-align: start; text-indent:
0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;">$var(aor) ignored.
It use default Contact. Here are the log</span></span></span>
<div style="clear: both;" data-mce-style="clear:
both;"><br>
</div>
<div style="clear: both;" data-mce-style="clear:
both;">$var(aor) = "sip:" + $tU + "@" +
$(avp(rcvcontact){uri.host}) + ":" +
$(avp(rcvcontact){uri.port});<br>
</div>
<div style="clear: both;" data-mce-style="clear:
both;"><br>
</div>
</div>
<div><span style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff; display: inline !important; float: none;"
data-mce-style="color: #000000; font-family:
'lucida console', sans-serif; font-size: 16px;
font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows:
2; word-spacing: 0px; -webkit-text-stroke-width:
0px; background-color: #ffffff; display: inline
!important; float: none;"><span style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing:
0px; -webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;" data-mce-style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing:
0px; -webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"><span style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"
data-mce-style="color: #000000; font-family:
'lucida console', sans-serif; font-size: 16px;
font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
orphans: 2; text-align: start; text-indent:
0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"><span style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"
data-mce-style="color: #000000; font-family:
'lucida console', sans-serif; font-size:
16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"><span
style="color: #000000; font-family:
'lucida console', sans-serif; font-size:
16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans:
2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"
data-mce-style="color: #000000;
font-family: 'lucida console', sans-serif;
font-size: 16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans:
2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;">INFO:
<script>: OnReply: Registration is
200 OK saving --><span
class="Apple-converted-space"> </span></span><a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:4300@client_pub_ip:31376;transport=tls"
target="_blank" style="font-family:
'lucida console', sans-serif; font-size:
16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans:
2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff;"
data-mce-style="font-family: 'lucida
console', sans-serif; font-size: 16px;
font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans:
2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff;">sip:4300@client_pub_ip:31376;transport=tls</a><span
style="color: #000000; font-family:
'lucida console', sans-serif; font-size:
16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans:
2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"
data-mce-style="color: #000000;
font-family: 'lucida console', sans-serif;
font-size: 16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans:
2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"><span
class="Apple-converted-space"> </span>in
db ---> xlog. </span></span></span></span></span>
<div style="clear: both;" data-mce-style="clear:
both;"><br>
</div>
</div>
<div>
<div style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;" data-mce-style="color: #000000;
font-family: 'lucida console', sans-serif;
font-size: 16px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing:
normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;">Dec 26 11:43:20 cavprx00 kamailio:
4(5546) ERROR: ***
cfgtrace:onreply_route=[LOCATION_REPLY]
c=[/etc/kamailio/kamailio-prod.cfg] l=621 a=27
n=save</div>
<div style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;" data-mce-style="color: #000000;
font-family: 'lucida console', sans-serif;
font-size: 16px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing:
normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;">Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: <core> [sruid.c:182]:
sruid_next(): new sruid is [uloc-586147f5-15aa-1]
(1 / 20)</div>
<div style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;" data-mce-style="color: #000000;
font-family: 'lucida console', sans-serif;
font-size: 16px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing:
normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;">Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: registrar [save.c:410]: pack_ci():
generated ruid is: uloc-586147f5-15aa-1</div>
<div style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;" data-mce-style="color: #000000;
font-family: 'lucida console', sans-serif;
font-size: 16px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing:
normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;">Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: <core> [sruid.c:182]:
sruid_next(): new sruid is [uloc-586147f5-15aa-2]
(2 / 20)</div>
<div style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;" data-mce-style="color: #000000;
font-family: 'lucida console', sans-serif;
font-size: 16px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing:
normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;">Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: registrar [save.c:410]: pack_ci():
generated ruid is: uloc-586147f5-15aa-2</div>
<div style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;" data-mce-style="color: #000000;
font-family: 'lucida console', sans-serif;
font-size: 16px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing:
normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;">Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: usrloc [ucontact.c:1004]:
db_update_ucontact_ruid():
ruid:uloc-5860b463-10c5-1</div>
<div style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;" data-mce-style="color: #000000;
font-family: 'lucida console', sans-serif;
font-size: 16px; font-style: normal;
font-variant-ligatures: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing:
normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff;">Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: usrloc [ucontact.c:1133]:
db_update_ucontact_ruid(): contact:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:4300@10.18.130.27:5060;transport=udp"
target="_blank">sip:4300@10.18.130.27:5060;transport=udp</a><span
class="Apple-converted-space"> </span>---->
LAN side contact (Use Contact header not <span
style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px;
font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;" data-mce-style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing:
0px; -webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;">$var(aor)</span>
<div style="clear: both;" data-mce-style="clear:
both;"><br>
</div>
</div>
</div>
<div><span style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff; display: inline !important; float: none;"
data-mce-style="color: #000000; font-family:
'lucida console', sans-serif; font-size: 16px;
font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows:
2; word-spacing: 0px; -webkit-text-stroke-width:
0px; background-color: #ffffff; display: inline
!important; float: none;"><span style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing:
0px; -webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;" data-mce-style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing:
0px; -webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"><span style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"
data-mce-style="color: #000000; font-family:
'lucida console', sans-serif; font-size: 16px;
font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
orphans: 2; text-align: start; text-indent:
0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"><br>
</span></span></span></div>
<div><span style="color: #000000; font-family: 'lucida
console', sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
#ffffff; display: inline !important; float: none;"
data-mce-style="color: #000000; font-family:
'lucida console', sans-serif; font-size: 16px;
font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows:
2; word-spacing: 0px; -webkit-text-stroke-width:
0px; background-color: #ffffff; display: inline
!important; float: none;"><span style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing:
0px; -webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;" data-mce-style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style: normal;
font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: normal;
letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing:
0px; -webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"><span style="color:
#000000; font-family: 'lucida console',
sans-serif; font-size: 16px; font-style:
normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight:
normal; letter-spacing: normal; orphans: 2;
text-align: start; text-indent: 0px;
text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"
data-mce-style="color: #000000; font-family:
'lucida console', sans-serif; font-size: 16px;
font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal;
orphans: 2; text-align: start; text-indent:
0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px;
background-color: #ffffff; display: inline
!important; float: none;"><br>
</span></span></span></div>
<div>Slava.</div>
<div><br>
</div>
<hr id="zwchr">
<div><b>From: </b>"Daniel-Constantin Mierla" <a
moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:miconda@gmail.com" target="_blank"><miconda@gmail.com></a><br>
<b>To: </b>"sr-users" <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:sr-users@lists.sip-router.org"
target="_blank"><sr-users@lists.sip-router.org></a><br>
<b>Sent: </b>Monday, January 2, 2017 9:57:14 AM<br>
<b>Subject: </b>Re: [SR-Users] location<br>
</div>
<br>
<div>
<p>Hello,</p>
<p>what do you mean by "will ignore on pv var"? Is
the record not saved at all or the value of pv var
is not used?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 02/01/2017 14:37,
Slava Bendersky wrote:<br>
</div>
<blockquote
cite="mid:1678890846.85642114.1483364235234.JavaMail.zimbra@skillsearch.ca">
<div style="font-family: lucida
console,sans-serif; font-size: 12pt; color:
#000000;" data-mce-style="font-family: lucida
console,sans-serif; font-size: 12pt; color:
#000000;">
<div>Hello Everyone,</div>
<div>Is possible get help on issue ? I asked on
IRC channel and another person so same problem
with location save ?</div>
<div><br>
</div>
<div>Slava.</div>
<div><br>
</div>
<hr id="zwchr">
<div><b>From: </b>"volga629" <a
moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:volga629@skillsearch.ca"
target="_blank"><volga629@skillsearch.ca></a><br>
<b>To: </b>"sr-users" <a
moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:sr-users@lists.sip-router.org"
target="_blank"><sr-users@lists.sip-router.org></a><br>
<b>Sent: </b>Monday, December 26, 2016
1:13:49 PM<br>
<b>Subject: </b>[SR-Users] location<br>
</div>
<br>
<div>
<div style="font-family: lucida
console,sans-serif; font-size: 12pt; color:
#000000;" data-mce-style="font-family:
lucida console,sans-serif; font-size: 12pt;
color: #000000;">
<div>Hello Everyone,</div>
<div>Why save location will ignore on pv var
when trying save on reply 200 OK.<br>
</div>
<br>
<div>if(is_method("REGISTER") &&
fnmatch("$rs", "200")) {</div>
<div> xlog("L_INFO", "OnReply: Registration
is $rs OK saving --> $avp(rcvcontact)
in db\n");<br>
</div>
<div> $var(oar) = "sip:" + $tU + "@" +
$(avp(rcvcontact){uri.host}) + ":" +
$(avp(rcvcontact){uri.port});</div>
<div>
<div> if(!save("location", "0x04",
"$var(oar)")) {</div>
<div> xlog("L_INFO", "Error saving the
location\n");</div>
<div>}</div>
<br>
<br>
<br>
<div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) ERROR: ***
cfgtrace:onreply_route=[LOCATION_REPLY]
c=[/etc/kamailio/kamailio-prod.cfg]
l=619 a=26 n=xlog</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) INFO: <script>: OnReply:
Registration is 200 OK saving --> <a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:4300@client_pub_ip:31376;transport=tls"
target="_blank">sip:4300@client_pub_ip:31376;transport=tls</a>
in db</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) ERROR: ***
cfgtrace:onreply_route=[LOCATION_REPLY]
c=[/etc/kamailio/kamailio-prod.cfg]
l=620 a=63 n=assign</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) ERROR: ***
cfgtrace:onreply_route=[LOCATION_REPLY]
c=[/etc/kamailio/kamailio-prod.cfg]
l=624 a=16 n=if</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) ERROR: ***
cfgtrace:onreply_route=[LOCATION_REPLY]
c=[/etc/kamailio/kamailio-prod.cfg]
l=621 a=27 n=save</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: <core>
[sruid.c:182]: sruid_next(): new sruid
is [uloc-586147f5-15aa-1] (1 / 20)</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: registrar [save.c:410]:
pack_ci(): generated ruid is:
uloc-586147f5-15aa-1</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: <core>
[sruid.c:182]: sruid_next(): new sruid
is [uloc-586147f5-15aa-2] (2 / 20)</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: registrar [save.c:410]:
pack_ci(): generated ruid is:
uloc-586147f5-15aa-2</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: usrloc
[ucontact.c:1004]:
db_update_ucontact_ruid():
ruid:uloc-5860b463-10c5-1</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: usrloc
[ucontact.c:1133]:
db_update_ucontact_ruid(): contact:<a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="sip:4300@10.18.130.27:5060;transport=udp"
target="_blank">sip:4300@10.18.130.27:5060;transport=udp</a>
----> LAN side contact</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: db_postgres
[km_val.c:163]: db_postgres_val2str():
PQescapeStringConn: in: 10 chars, out:
10 chars</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: db_postgres
[km_val.c:163]: db_postgres_val2str():
PQescapeStringConn: in: 21 chars, out:
21 chars</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: db_postgres
[km_val.c:163]: db_postgres_val2str():
PQescapeStringConn: in: 33 chars, out:
33 chars</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: db_postgres
[km_val.c:163]: db_postgres_val2str():
PQescapeStringConn: in: 40 chars, out:
40 chars</div>
<div>Dec 26 11:43:20 cavprx00 kamailio:
4(5546) DEBUG: db_postgres
[km_val.c:163]: db_postgres_val2str():
PQescapeStringConn: in: 20 chars, out:
20 chars</div>
<br>
<br>
<br>
<div>Slava.</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio
(OpenSER) - sr-users mailing list<br>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:sr-users@lists.sip-router.org"
target="_blank">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) -
sr-users mailing list<br>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:sr-users@lists.sip-router.org"
target="_blank">sr-users@lists.sip-router.org</a><br>
<a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature">--
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
<br>
</div>
</div>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>