<div dir="ltr"><div class="gmail_extra"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Thanks Daniel, your help was very useful.</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">With this I created a header by append_hf () before calling the function</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">t_replicate and standby server retrieved the value of this header and</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">assigns this value to the parameter avp</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Example</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">$avp(s:rcv) = $hdr(IP-source);</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Best regards</span><br style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(80,0,80);font-family:arial,sans-serif;font-size:13px">Raphael</span><br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_quote">Hello,<br><div text="#000000" bgcolor="#FFFFFF">
<br>
the received is taken from an avp specified by parameter
received_avp of registrar module:<br>
<br>
<a href="http://kamailio.org/docs/modules/devel/modules/registrar.html#idp4433296" target="_blank">http://kamailio.org/docs/modules/devel/modules/registrar.html#idp4433296</a><br>
<br>
You can carry the original details via a header on the replicated
REGISTER (using append_hf()), then take the header on the second
server and store its value in the avp.<br>
<br>
Cheers,<br>
Daniel<div><div class="h5"><div><div><br>
<br>
<div>On 7/18/13 9:05 PM, Raphael Borges
wrote:<br>
</div>
</div></div></div></div><blockquote type="cite"><div><div class="h5"><div><div>
<div dir="ltr"><b>Hello,</b><br>
<br>
<br>
I have two servers in kamailio duality, I am using the function
t_replicate () for replication log as below:<br>
Server 1 active<br>
t_replicate ("xxx.xxx.xxx.2", "5060");<br>
Server 2 reserves<br>
t_replicate ("xxx.xxx.xxx.1", "5060");<br>
<br>
But when the record is replicated to the standby server the
parameter
received is being filled with the active server IP, where the IP
would
Correro UAC, registry problems generating the backup server.<br>
<br>
Example<br>
Server 1 active xxx.xxx.xxx.1<br>
<br>
$ Kamctl ul show<br>
Domain :: location table = 512 records = 1 = 1 max_slot<br>
AOR :: 4301<br>
Contact :: sip: <a href="mailto:4301@yyy.yyy.yyy.100" target="_blank">4301@yyy.yyy.yyy.100</a>; transport
= udp Q =<br>
Expires :: 4566<br>
Callid ::
ccd0431c-6a4c-1231-0a94-7356c4f466e6<br>
CSeq :: 46740150<br>
User-agent :: stepo_LITE<br>
Received :: sip: yyy.yyy.yyy.100: 5060<br>
State :: CS_SYNC<br>
Flags :: 0<br>
CFLAG :: 0<br>
Socket :: udp: xxx.xxx.xxx.1: 5060<br>
Methods :: 8159<br>
<br>
Server 2 Reserve xxx.xxx.xxx.2<br>
<br>
$ Kamctl ul show<br>
Domain :: location table = 512 records = 1 = 1 max_slot<br>
AOR :: 4301<br>
Contact :: sip: <a href="mailto:4301@yyy.yyy.yyy.100" target="_blank">4301@yyy.yyy.yyy.100</a>; transport
= udp Q =<br>
Expires :: 6665<br>
Callid ::
ec7cfd42-6a7c-1231-0f94-7356c4f466e6<br>
CSeq :: 46750472<br>
User-agent :: stepo_LITE<br>
Received :: sip: xxx.xxx.xxx.1: 5060<br>
State :: CS_SYNC<br>
Flags :: 0<br>
CFLAG :: 0<br>
Socket :: udp: xxx.xxx.xxx.2: 5060<br>
Methods :: 8159<br>
<div><font color="#606060"><font size="1"><font face="Verdana, Arial, Helvetica"><br>
<br>
<br>
Tkanks<br>
<br>
Raphael<br>
</font></font></font></div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div></div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a 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><span class=""><font color="#888888"><span><font color="#888888">
</font></span></font></span></pre><span class=""><font color="#888888"><span><font color="#888888">
</font></span></font></span></blockquote><span class=""><font color="#888888"><span><font color="#888888">
<br>
<pre cols="72">--
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
</pre>
</font></span></font></span></div><span class=""><font color="#888888">
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a 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>
<br></font></span></div><br></div>
</blockquote></div><br></div></div>