See the second option, where you copy only the domain part of URIs.
$rd = $dd;
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 06/11/2012 03:28 PM, dileep r wrote:
is there a way to retain the user name?
On Mon, Jun 11, 2012 at 4:34 PM, Bogdan-Andrei Iancu
<[email protected] <mailto:[email protected]>> wrote:
Actually the LB function changes only the destination URI, not the
RURI - my bad. If you want to push the change into the RURI also,
you can do :
$ru = $du ; (change the entire RURI with value of destination
URI - you will loose the username part)
$rd = $dd ; (push only the domain part from destination uri
to RURI)
Do the above after LB function and before the t_relay();
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 06/11/2012 01:55 PM, dileep r wrote:
Bogdan, i would completely agree with you. I don't see the RURI
being changed in the INVITE request.below is the script snippet
for load_balance. please let me know is there any thing to be
corrected.
if (!load_balance("1","calls")) {
send_reply("503","Service Unavailable");
exit;
}
else{
# dst URI points to the new destination
xlog("sending call to $du\n");
# t_relay();
t_relay();
}
On Mon, Jun 11, 2012 at 4:23 PM, dileep r <[email protected]
<mailto:[email protected]>> wrote:
Bogdan, i would completely agree with you. I don't see the
RURI being changed in the INVITE request.below is the script
snippet for load_balance. please let me know is there any
thing to be corrected.
if (!load_balance("1","calls")) {
send_reply("503","Service Unavailable");
exit;
}
else{
# dst URI points to the new destination
xlog("sending call to $du\n");
# t_relay();
t_relay();
}
On Mon, Jun 11, 2012 at 4:13 PM, Bogdan-Andrei Iancu
<[email protected] <mailto:[email protected]>> wrote:
Pleas keep the list CC'ed to this discussion !
The LB function changes only the RURI part from INVITE -
it does not change TO headers. Normally there is no
reason to change it at all, as routing is done based on
RURI only.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 06/11/2012 01:40 PM, dileep r wrote:
Hi Bogdan, i did use t_relay() previously and the SIP
requested was routed to the destination URI . but the
RURI and 'To' header did not change as the destination
URI in the INVITE request. I'm i doing any thing wrong
here?
Thanks
Dileep
On Mon, Jun 11, 2012 at 3:32 PM, Bogdan-Andrei Iancu
<[email protected] <mailto:[email protected]>> wrote:
The LB function does not send out the INVITE, just
sets the RURI to a one of the destinations (from LB
set) - after doing LB, you need to do standard relay
from script (via t_relay() ).
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 06/11/2012 12:45 PM, dileep r wrote:
Hi Bogdan, is there any logging mechanism to check
why the load_balance() , API not routing the INVITE
request to destination URI.
On Mon, Jun 11, 2012 at 3:08 PM, Bogdan-Andrei
Iancu <[email protected]
<mailto:[email protected]>> wrote:
Hi Dileep,
Check some working examples:
- LB tutorial -
http://www.opensips.org/Resources/DocsTutLoadbalancing
- use "menuconfig" to generate a script for
LB scenario -
http://www.opensips.org/Resources/GettingStartedTut
Regards,
Bogdan
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 06/11/2012 10:50 AM, dileep r wrote:
HI all,
I'm trying to set up openSips with LB module
enabled. I have done the all the required
configuration for LB. The load_balance() API
returns success, but i'm not receiving the
INVITE request to my destination server as
configured in the DB. If any one has faced
similar problems or know why this might be
happening,please let me know ?
Thanks
Dileep
_______________________________________________
Users mailing list
[email protected] <mailto:[email protected]>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users