Hello,
seturi() just sets the request uri, then the t_replicate function you
call is sending to 2.2.2.2.
You can use km_append_branch(...) which is the function to append
branches inherited from openser times. It is in the kex module:
http://kamailio.org/docs/modules/stable/modules_k/kex.html#id2551404
Just fyi, there is an alternative of distributing the location records
using the presence mechanism, based on an IETF RFC, a recommendation for
IMS networks -- see pua_reginfo and presence_reginfo
http://kamailio.org/docs/modules/stable/modules_k/pua_reginfo.html
http://kamailio.org/docs/modules/stable/modules_k/presence_reginfo.html
Still the t_replicate() should be the simpler approach and should work
just fine with latest version.
Cheers,
Daniel
On 8/4/12 12:30 AM, Henning Holtschneider wrote:
Hello,
I'm trying to migrate an existing configuration from OpenSIPS 1.4.x to Kamailio
3.2.x. The old configuration replicates REGISTER requests to multiple servers using this
code in the REGISTER routing block:
add_sock_hdr("Local-Sock");
add_rcv_param();
append_branch("sip:1.1.1.1:5060");
t_replicate("sip:2.2.2.2:5060");
exit;
From what I read in the documentation, the behaviour of append_branch() is different in
Kamailio, so I modified my code like this:
add_sock_hdr("Local-Sock");
add_rcv_param();
append_branch();
seturi(sip:1.1.1.1:5060");
t_replicate("sip:2.2.2.2:5060");
exit;
Unfortunately, I do not see any REGISTER requests arriving on 1.1.1.1 so I assume that I
made a mistake when forking the request. Can anyone point me in the right direction?
Thanks,
Henning Holtschneider
--
LocaNet oHG -
http://www.loca.net
Lindemannstrasse 81, D-44137 Dortmund
tel +49 231 91596-25, fax +49 231 91596-55
sip 25(a)voip.loca.net
Registergericht Amtsgericht Dortmund HRA 14208
Geschäftsführer Sven Haufe, Henning Holtschneider
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 -
http://asipto.com/u/katu
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 -
http://asipto.com/u/kpw