[OpenSIPS-Users] OpenSIPs load balancer question

Mohammad Sajedi mohammad.sajedi at overturenetworks.com
Mon Jan 12 17:20:53 CET 2015


Hi Bogdan,

I have created three servers, and connected them in the following topology:


SIPp (10.241.88.34/27) ------------ (10.241.88.36/27) OpenSIPs (10.241.88.68/27) ------------------- (10.241.88.67/27) Asterisk


On OpenSIPs
Have added  --> opensips_loadbalancer_2015-1-8_11\:43\:20.cfg   file (see attached)
And changed the UDP listen line to:
listen=udp:10.241.88.36:5060   # CUSTOMIZE ME

Also Added the following to MySQL
mysql -uopensips -popensipsrw opensips -e "INSERT INTO load_balancer VALUES(1,1,'sip:10.241.88.66:5060','pstn=500;sip=500',2,'');"


On Asterisk, added the following to the Asterisk configuration files:

/etc/asterisk/extensions.conf

[sipp]
exten => 2005,1,Answer
exten => 2005,2,SetMusicOnHold(default)
exten => 2005,3,WaitMusicOnHold(20)
exten => 2005,4,Hangup


/etc/asterisk/sip.conf

[sipp]
type=friend
context=sipp
host=dynamic
port=6000
user=sipp
canreinvite=no
disallow=all
allow=ulaw


On SIPp, issued:
./sipp -sn uac -d 20000 -s 2005 10.241.88.36  -l 30



The SIP packets are coming out of (10.241.88.68/27) OpenSIPs interface with destination IP address of 10.241.88.36.
How can I configure OpenSIPs such that OpenSIPs changes the destination IP address to 10.241.88.66?

Thanks
Mohammad


This email and attachments may contain privileged or confidential information intended only for the addressee(s) indicated. The sender does not waive any of its rights, privileges or protections respecting this information. If you are not the named addressee, an employee, or agent responsible for sending this message to the named addressee (or this message was received by mistake), you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If received in error, please notify us immediately by e-mail, discard any paper copies and delete all electronic files of the email.

Computer viruses can be transmitted via email. The recipient should check this email and any attachments for viruses. Email transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender accepts no liability for any damage caused by any transmitted viruses or errors or omissions in the contents of this message.

Overture Networks, Inc. 637 Davis Drive, Morrisville, NC USA 27560 www.overturenetworks.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150112/c40c0db0/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opensips_loadbalancer_2015-1-8_11%3A43%3A20.cfg
Type: application/octet-stream
Size: 7497 bytes
Desc: opensips_loadbalancer_2015-1-8_11%3A43%3A20.cfg
URL: <http://lists.opensips.org/pipermail/users/attachments/20150112/c40c0db0/attachment-0001.obj>


More information about the Users mailing list