<div dir="ltr"><div>Dear Daniel,</div><div><br></div><div><div><br></div><div>I'm using this way that you mentioned, but did not succeed. Must assign the virtual IP socket server parameter standby. But as this is virtual IP at the time of replication on the active server, is not allowed, because of a protection from "get_sock_hdr" to ./registrar/save.c</div>
</div><div><br></div><div>It's possible to somehow assign this virtual IP socket parameter of the server standby?</div><div><br></div><div>Thanks in advance</div><div>Cheers</div><div>Raphael</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/7/25 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
for the socket, there is already an embedded header, look at the
readme for registrar module for sock header, or something like that.
You just need to set that header to the value you want.<br>
<br>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<div>On 7/24/13 10:33 PM, Raphael Borges
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hello, anyone have any idea for this my problem? Need to
somehow override the value of the server socket standy by
entering the virtual IP in this field.</div>
<div><br>
</div>
<div>Thanks in advance.</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/7/23 Raphael Borges <span dir="ltr"><<a href="mailto:raphaelsilvaborges@gmail.com" target="_blank">raphaelsilvaborges@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div style="font-family:arial,sans-serif;font-size:13px">Daniel,
I had another similar problem. Would you like a
procedure similar to the socket parameter. It is
possible to add a new header and assign the parameter
socket in server standby somehow?</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">Thanks
in advance.</div>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">
<div>
<img src="https://mail.google.com/mail/u/0/images/cleardot.gif"></div>
</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/7/23 Raphael Borges <span dir="ltr"><<a href="mailto:raphaelsilvaborges@gmail.com" target="_blank">raphaelsilvaborges@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>Daniel, I had another similar problem.
Would you like a procedure similar to the
socket parameter. It is possible to add a new
header and assign the parameter socket in
server standby somehow?</div>
<div>
<br>
</div>
<div>Thanks in advance.</div>
<span><font color="#888888">
<div>Raphael</div>
</font></span></div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/7/22 Raphael
Borges <span dir="ltr"><<a href="mailto:raphaelsilvaborges@gmail.com" target="_blank">raphaelsilvaborges@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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><span><font color="#888888"><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>
</font></span></div>
<div>
<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>
<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>
<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><font color="#888888"><span><font color="#888888">
</font></span></font></span></pre>
<span><font color="#888888"><span><font color="#888888"> </font></span></font></span></blockquote>
<span><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/#%21/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><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>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<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>
</div></div></div>
</blockquote></div><br></div>