[OpenSIPS-Users] opensips cluster / problem with t_replicate and Mobicents

Holger Arendt holger.arendt at gmail.com
Mon Apr 23 14:22:11 CEST 2012


Hi,

seems my last email got truncated by the ML software, so i resend this:

I have a problem with setting up a cluster of opensips proxies and
mobicents application servers.
The setup i have works fine with one opensips proxy and one mobicents
app server.

My current idea (based on what i read on the mailinglist) is to use
opensips t_replicate to
send the REGISTER from one proxy to several others, doing something like this:

if( "register is from the outside" ) {
  add_path_received()
  add_rcv_param("1")
  force_send_socket(externalip:port)
  t_replicate(box2)
  t_replicate(box3)
  // etc.
  save("location","f")
} else {
 # register has been send here via t_replicate
 save("location","mfrp2v");
}

All opensips proxies are sharing the same database. usrloc db_mode is 0.

This works, as i can register one user on proxy1, another user at
proxy2 and send e.g.
MESSAGEs or INVITEs from user1 to user2.

Now, when i forward REGISTER or INVITES from opensips to a mobicents
app server, mobicents
complains about the sip message format, or to be precise, about the
format of the request URI.

Example of an INVITE:

INVITE sip:+151xxxxx at 192.168.2.103:12345;transport=tcp;received="sip:84.xx.xxx.xxx:56350;transport=TCP"
SIP/2.0


To which mobicents replies

SIP/2.0 400 Bad Request ([C at 7f9b61af
Unexpected Token : )



More information about the Users mailing list