[OpenSIPS-Users] About L4 Swtich + 2 * opensips
Nick Chang
nick.chang at kland.com.tw
Fri Jul 6 08:23:58 CEST 2012
Hello
I found this error.
In my old opensips.cfg
route[generic_relay] {
# for INVITEs enable some additional helper routes
#---- Helper route, if nat=yes in the R-URI set flag 6 ----#
#---- This is used to Process REINVITES ----#
if (subst_uri('/((sip:.*)||(sip:.*:.*));nat=yes/\1/')){
setbflag(6);
};
#---- If caller(flag 5) or callee(flag 6) are behind NAT ---#
#---- Call the route(6) to force the use of the RTP Proxy ---#
if (isflagset(5)||isbflagset(6)) {
route(nat_fixups);
};
if (!t_relay()) {
sl_reply_error();
};
exit;
}
route[user_location]{
if (!lookup("location", "m")) {
switch ($retcode) {
case -1:
case -3:
t_newtran();
send_reply("404", "Not Found");
exit;
case -2:
send_reply("405", "Method Not Allowed");
exit;
}
}
# when routing via usrloc, log the missed calls also
setflag(2); # Account missed calls
t_on_failure("user_failure");
route(generic_relay);
}
Then, I modify it.
route[generic_relay] {
# for INVITEs enable some additional helper routes
#---- Helper route, if nat=yes in the R-URI set flag 6 ----#
#---- This is used to Process REINVITES ----#
if (subst_uri('/((sip:.*)||(sip:.*:.*));nat=yes/\1/')){
setbflag(6);
};
#---- If caller(flag 5) or callee(flag 6) are behind NAT ---#
#---- Call the route(6) to force the use of the RTP Proxy ---#
if (isflagset(5)||isbflagset(6)) {
route(nat_fixups);
};
if (!t_relay()) {
sl_reply_error();
};
exit;
}
route[user_location]{
if (!lookup("location", "m")) {
switch ($retcode) {
case -1:
case -3:
route(generic_relay);
# t_newtran();
# send_reply("404", "Not Found");
# exit;
case -2:
send_reply("405", "Method Not Allowed");
exit;
}
}
# when routing via usrloc, log the missed calls also
setflag(2); # Account missed calls
t_on_failure("user_failure");
route(generic_relay);
}
Now, SIP1 can call to SIP2. It’s OK.
But, If User isn’t online.
It can not display “user not found”, only display “request timeout(408)”
Do everyone have any good suggest??
Can modify it to fine??
Thanks for your support.
Nick
From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Ali Pey
Sent: Thursday, July 05, 2012 11:34 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] About L4 Swtich + 2 * opensips
What do you see in the logs? Is it that it can not find the other user or is it that it can not reach it?
If you can't find the reason in the logs, then post them here.
Regards,
Ali Pey
On Thu, Jul 5, 2012 at 11:05 AM, Nick <nick.chang at kland.com.tw> wrote:
Dear
My two opensips connected to the same location table in the same database
Thanks
Nick
Ali Pey <alipey at gmail.com> 於 2012/7/5 22:24 寫道:
Both opensips server should be connected to the same location table in the same Database.
Regards,
Ali Pey
On Thu, Jul 5, 2012 at 6:18 AM, Nick Chang <nick.chang at kland.com.tw> wrote:
Dear
I have a ServerIronADX 1000.
I have two OpenSIPS Server
Then I setup this L4 Switch for SIP’s load balance
When client1 login to SIP1 and client2 login to SIP2
Then client1 call to client2.
Client1 can’t call to client2. It’s failed.
How to setup OpenSIPS, Lets it found client1 and client2??
Thanks for your help.
It’s my config.
server real SIP1 10.1.3.131
port default disable
port sip
port sip udp-only
!
server real SIP2 10.1.3.132
port default disable
port sip
port sip udp-only
!
server virtual SIP-VIP 10.1.3.130
port sip
port sip udp-only
port sip reset-on-port-fail
bind sip SIP1 sip SIP2 sip
Thanks
Nick
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120706/b945d1ff/attachment-0001.htm>
More information about the Users
mailing list