Hi All I am trying to configure Openser as loadblancer for two more Kamailio. I wan loardbalancer not stay in the middle once routed to other kamilio servers. my first question is, dispathcer list always take IPs or I can configure proxy names as well. at the moment I am checking the to_uri and then redirecting the traffic to my one of Kamilio on my network, it seems to work fine with Linksys but not other phones e.g polycom xlite or even sjphone.
if(to_uri=~"sip:.+@sip.mydomain.ie sip%3A.%2B@sip.mydomain.ie") { ds_select_domain("1", "4"); sl_send_reply("300","Redirect"); exit; } any suggestion.
Thanks in advance
Regards Asim Riaz
Asim Riaz schrieb:
Hi All I am trying to configure Openser as loadblancer for two more Kamailio. I wan loardbalancer not stay in the middle once routed to other kamilio servers. my first question is, dispathcer list always take IPs or I can configure proxy names as well. at the moment I am checking the to_uri and then redirecting the traffic to my one of Kamilio on my network, it seems to work fine with Linksys but not other phones e.g polycom xlite or even sjphone.
What does not work? Your failure description is too vague for helping you. Is the redirect response sent but not accepted by the other phones? Try 302. Usually redirects work fine with xlite. Some clients also have a configuration option to allow this.
btw: if you have various different SIP clients I would not rely on using redirect as not all clients behave the same way.
regards klaus
if(to_uri=~"sip:.+@sip.mydomain.ie mailto:sip%3A.%2B@sip.mydomain.ie") { ds_select_domain("1", "4"); sl_send_reply("300","Redirect"); exit; } any suggestion.
Thanks in advance
Regards Asim Riaz
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
I can see the Kamilio sending redirect but phone does not responce to redirect, is there other way to achive the same ?
Regards Asim Riaz
On Wed, Aug 27, 2008 at 3:25 PM, Klaus Darilion < klaus.mailinglists@pernau.at> wrote:
Asim Riaz schrieb:
Hi All I am trying to configure Openser as loadblancer for two more Kamailio. I wan loardbalancer not stay in the middle once routed to other kamilio servers. my first question is, dispathcer list always take IPs or I can configure proxy names as well. at the moment I am checking the to_uri and then redirecting the traffic to my one of Kamilio on my network, it seems to work fine with Linksys but not other phones e.g polycom xlite or even sjphone.
What does not work? Your failure description is too vague for helping you. Is the redirect response sent but not accepted by the other phones? Try 302. Usually redirects work fine with xlite. Some clients also have a configuration option to allow this.
btw: if you have various different SIP clients I would not rely on using redirect as not all clients behave the same way.
regards klaus
if(to_uri=~"sip:.+@sip.mydomain.ie sip%3A.%2B@sip.mydomain.ie <mailto: sip%3A.%2B@sip.mydomain.ie sip%253A.%252B@sip.mydomain.ie>") { ds_select_domain("1", "4"); sl_send_reply("300","Redirect"); exit; } any suggestion.
Thanks in advance
Regards Asim Riaz
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
El Wednesday 27 August 2008 16:19:27 Asim Riaz escribió:
at the moment I am checking the to_uri and then redirecting the traffic to my one of Kamilio on my network, it seems to work fine with Linksys but not other phones e.g polycom xlite or even sjphone.
if(to_uri=~"sip:.+@sip.mydomain.ie") { ds_select_domain("1", "4"); sl_send_reply("300","Redirect"); exit; }
Don't use "To" but RURI. The routing decission MUST be done based into RURI since if a request is diverted before arriving to your proxy it "To" will remain being the original but the RURI will be the new destination.
Hi Baz, I tried this but same, looks like phones just ignore the 300 messages.
Regards Asim Riaz
On Wed, Aug 27, 2008 at 3:52 PM, Iñaki Baz Castillo ibc@in.ilimit.eswrote:
El Wednesday 27 August 2008 16:19:27 Asim Riaz escribió:
at the moment I am checking the to_uri and then redirecting the traffic
to
my one of Kamilio on my network, it seems to work fine with Linksys but
not
other phones e.g polycom xlite or even sjphone.
if(to_uri=~"sip:.+@sip.mydomain.ie sip%3A.%2B@sip.mydomain.ie") { ds_select_domain("1", "4"); sl_send_reply("300","Redirect"); exit; }
Don't use "To" but RURI. The routing decission MUST be done based into RURI since if a request is diverted before arriving to your proxy it "To" will remain being the original but the RURI will be the new destination.
-- Iñaki Baz Castillo ibc@in.ilimit.es
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
El Wednesday 27 August 2008 17:43:48 Asim Riaz escribió:
Hi Baz, I tried this but same, looks like phones just ignore the 300 messages.
Using RURI instead of To doesn't fix your problem, I know. It just was an advice for other cases (route always based in the RURI).
I tried 302 as well, didnt work. one thing I am redirecting the Registration request not the INVITE , i dont know if the problem is, phones does not support redirection of Register message ? but linksys works for both 300 and 302.
Regards Asim Riaz
On Wed, Aug 27, 2008 at 5:06 PM, Klaus Darilion < klaus.mailinglists@pernau.at> wrote:
Asim Riaz schrieb:
Hi Baz, I tried this but same, looks like phones just ignore the 300 messages.
HAve you tried using 302 instead of 300?
I am really sure eyebeam supports it, thus xlite should support it too.
regards klaus
Hello,
On 08/27/08 17:19, Asim Riaz wrote:
Hi All I am trying to configure Openser as loadblancer for two more Kamailio. I wan loardbalancer not stay in the middle once routed to other kamilio servers. my first question is, dispathcer list always take IPs or I can configure proxy names as well.
dispatcher works with domain names as well.
Cheers, Daniel
at the moment I am checking the to_uri and then redirecting the traffic to my one of Kamilio on my network, it seems to work fine with Linksys but not other phones e.g polycom xlite or even sjphone.
if(to_uri=~"sip:.+@sip.mydomain.ie mailto:sip%3A.%2B@sip.mydomain.ie") { ds_select_domain("1", "4"); sl_send_reply("300","Redirect"); exit; } any suggestion.
Thanks in advance
Regards Asim Riaz
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users