From volga629@skillsearch.ca Wed Jan 4 23:29:23 2017 From: Slava Bendersky To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] location Date: Wed, 04 Jan 2017 17:29:10 -0500 Message-ID: <724765249.117475465.1483568950334.JavaMail.zimbra@skillsearch.ca> In-Reply-To: <2077186208.86733224.1483371633111.JavaMail.zimbra@skillsearch.ca> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1653863231==" --===============1653863231== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello Daniel,=20 Based on wiki page=20 http://www.kamailio.org/docs/modules/4.4.x/modules/registrar.html#registrar.f= .save=20 I should be able do location save with pv var and supply uri.=20 save("location", "0x00", "sip:test(a)kamailio.org");=20 *=20 uri (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.=20 I tested multiply variation all of them ignore pv var.=20 Slava.=20 From: "volga629" =20 To: "miconda" =20 Cc: "sr-users" =20 Sent: Monday, January 2, 2017 11:40:33 AM=20 Subject: Re: [SR-Users] location=20 Hello Daniel,=20 I am trying save user contact on reply 200 OK from freeswitch. Contact is set= in $avp(aor) which contain updated user location.=20 Slava.=20 From: "miconda" =20 To: "volga629" , "sr-users" =20 Sent: Monday, January 2, 2017 10:45:34 AM=20 Subject: Re: [SR-Users] location=20 Hello,=20 the third parameter is not for contact, it is the address of record -- the us= er address, eg., [ mailto:alice(a)sipdomain.com | alice(a)sipdomain.com ] , n= ot [ mailto:alice(a)phone.ip | alice(a)phone.ip ]=20 What exactly do you need to achieve? Maybe there are other options that you c= an use.=20 Cheers,=20 Daniel=20 On 02/01/2017 15:12, Slava Bendersky wrote:=20 Hello Daniel,=20 Meaning if(!save("location", "0x04", "$var(aor)")) ---> $var(aor) ignored. It= use default Contact. Here are the log=20 $var(aor) =3D "sip:" + $tU + "@" + $(avp(rcvcontact){uri.host}) + ":" + $(avp= (rcvcontact){uri.port});=20 INFO: