but I am doing  on my existing configuration, i am rewriting the contact information and saving it once i received 200 ok, this is true that the registration time is not the same as I received in first register message.
what i am trying to do is to hold all the contact info in AVP and then save the AVP into location  once I received the 200 reply 
here is the script i am using; it does work but I want to do it through AVPs
f (method=="REGISTER") {
            route(2);
            exit;
          }
route[2] {
t_on_reply("2");
 fix_nated_register();
   force_rport();
            avp_write("$from/username","$avp(i:678)");
            subst('/^Contact:.*<sip:(.*)@(.*)>/Contact:<sip:$avp(i:678)kamailio_ip@>/ig');
            add_rcv_param();
t_relay("udp:my_registrar_ip:5060");

route[6] {
save_noreply("location");
        exit;
}

onreply_route[2] {
  if(status=="200") {
   route(6);
   }

          




 PM, Klaus Darilion <klaus.mailinglists@pernau.at> wrote:
Path feature would solve this issue, but it requires that the main
proxy/registrar supports Path too and unfortunately Asterisk does not
support it.

Conclusion: there is currently no way to implement the contact rewriting
and saving in the reply route with Openser

klaus

Vadim Berezniker schrieb:
> I don't believe it would help in my case as I need it for a different
> purpose.
>
> Problem is you can't always share registration between PBXs. For example
> Asterisk doesn't support it.
> So if you want to reach a UA on a PBX where it's not registered, one
> possibility is to route the call through kamailio which knows where all
> the UAs are.
> I realize that's it's a limitation of the PBXs, but this is something
> that could certainly be addressed in kamailio until PBXs catch up.
>
> Of course you do not want to store the information until an OK is
> received for the registration.
> Also the expiration in the OK might be different in the OK than in the
> initial REGISTER.
> This is not possible right now because you can only use save() on the
> initial register, not on the successful reply.
>
> If there are better ways to do this, I'm happy to learn.
> I know there are many things I do not know.
>
>
> -----Original Message-----
> From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
> Sent: Tuesday, August 26, 2008 7:54 AM
> To: Vadim Berezniker
> Cc: users@lists.kamailio.org
> Subject: Re: [Kamailio-Users] AVP to store user contact information
>
>
>
> Vadim Berezniker schrieb:
>> I'm actually interested in similar behavior.
>>
>> I believe I saw a thread on this topic before, but I haven't been able
>
>> to locate it.
>>
>>
>>
>> One of the problems is that you can only use the save() registrar
>> function from the request route.
>>
>> I wish to save the information after the registrar have accepted the
>> registration.
>
> Can't you use the "path" feature?
>
> klaus
>

_______________________________________________
Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users