We are trying to use DNS SRV records to load balance
outbound transactions across 2 or more servers.
Something like this:
UA => SER => (Some processing logic) => Back to SER
after a 300 Redirect which contains a Contact phone
number and IP/DNS at which to contact the contact =>
DNS SRV lookup for the contact IP and send it to one
of the two servers returned by the DNS lookup.
So this last leg is where we have to load balance
multiple contact IP servers and we were trying to use
DNS SRV for that. We haven't seen any success in this,
it does load balance when both are up. But as soon as
only one server is up, SER keeps trying to reach the
first one which is down and never tries to reach the
second one. Ultimately the transaction times out.
Has anybody had success in implementing this kind of
scenario for load balancing with DNS SRV? Is anything
else besides using DNS SRV an option?
Thanks in advance!!
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
Marcello,
Here is one method that I have been looking at - has anyone tried
something similar?
# --- Rewrite 50/50 --------------------------------
if (uri=~"test")
{
if (is_gflag("1"))
{
reset_gflag("1");
rewriteuri("sip:test@10.1.1.1");
}
else
{
set_gflag("1");
rewriteuri("sip:vsd@10.1.1.2");
};
t_on_failure("1");
}
# --------------------------------------------------
Thanks,
John Rose
-----Original Message-----
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org] On
Behalf Of Marcello Lupo
Sent: Saturday, September 17, 2005 7:38 AM
To: serusers(a)lists.iptel.org
Subject: [Serusers] SER Load balancing
Hi to all,
did you have suggestions how to accomplish to load balancing load of SER
between 2 machine running both SER and DB to check routing entries??
I was thinking to use LVM but i don't know how to let the same call
messages to go to the same machine. There should be something line an
LVM module able to check the CallID field and keep track of it.
May be some other ways?? Using DNS records or other?
Another question is if there is a searchable archive of this Mailing
list.
Thanks,
Bye,
Marcello
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Hi,
I notice that ser ignores all "REGISTER"s that come from a special server
with the port 5060. All other ports are accepted.
What could be the problem?
Sebastian
I'm having trouble with MySQL starting when the socket file is located
in /var/run/mysql/mysql.sock instead of the default location
/var/lib/mysql/mysql.sock. I have changed the owner and permission of
the new directory, but I still get the following error in the log. I
don't have another mysqld server running on this machine.
050919 12:24:11 [ERROR] Can't start server : Bind on unix socket:
Permission denied
050919 12:24:11 [ERROR] Do you already have another mysqld server
running on socket: /var/run/mysql/mysql.sock ?
050919 12:24:11 [ERROR] Aborting
Paul
Dear Friends,
Has anyone attempted implementing the "Forward On No Answer" service
with SER
who can give me some pointers.
I greatly appreciate your help
Thanks
Ramin
rnikaeen(a)goldline.net
Hi,
I'm trying to do the following things using the avpops:
When I receive a Register Message from uri 666@.., I'd like to register
the uri 1000@... and 2000@... at the same time.
I'd like to do this also for uri 777, to register 778 and 779 when 777
triggers a Register Message.
So I decided to use the SQL Table below to achieve this:
Initnumber: Varchar(64)
Attribute: Varchar(64)
Type: INT (default to 0)
Associated: Varchar(64)
Initnumber attribute type associated
666 register 0 1000
666 register 0 2000
777 register 0 778
777 register 0 779
In Ser.cfg, I put this:
modparam("avpops","avp_url","mysql://ser:heslo@IP/telephone")
modparam("avpops", "avp_table", "associate")
modparam("avpops","username_column","initnumber")
modparam("avpops","attribute_column","attribute")
modparam("avpops","type_column","type")
modparam("avpops","value_column","associated")
if (method=="REGISTER") {
# Authentication Challenge
Challenge
#Test of AVPs
log(1, "LOG: AVP REGISTRATION");
avp_db_load("$from ","s:register");
#to display avp in memory
avp_print();
#fork registration using new avp value to
register
avp_pushto("$from","s:register/g");
save("location");
break;
};
What I expect this to do is to get the values "associated" with
"Initnumber", using avp_db_load and to fork the registration process
using avp_pushto to register the numbers in the associated column.
I use avp_print to see the avp loaded in memory, but I see nothing in
the syslog.
Moreover nothing happens, ie only the uri which initiates the Register
message is registered on SER :'(
Can somebody help me please,
Rodrigue
ok ):
i'll performed that ugly thing named "changing the source code".
Good for me (;
-----Messaggio originale-----
Da: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org]Per
conto di Piccari Gianluca
Inviato: venerdì 16 settembre 2005 13.10
A: serusers(a)lists.iptel.org
Oggetto: [Serusers] fields To/From
Hi all,
i have a big problem... i need to parser information in Header field From() and eventually add or delete part of info in Header field TO.
For istance: if i(n From field there is '55')
add ('55' in To field).
I don't have familiar to SER (i have started to study it last week (: ) and i likr e to know if it is possible to do it using SER's method without
change the source code ....
thanks for your help
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Hi List,
Don't know if this is the right list for this but I hope someone can help
me:
I have a SIP server when it starts on a certain string e.g. 123 it will
forward it to gateway else it will forward to gateway 2.
Gateway 1 will be a cisco 1760 with and FXO port, so whe I dial 12345678 it
should forwar it to the Cisco 1760, using ngep I can see that it's sending
the invite to the CISCO 1760 but I don't know what typre of dial-pper to
define in order for th 1760 to respond, also what typre of dial-peer would
forward it to the FXO port and eventually call PSTN.
TIA
Regards,
nhadie