Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] realtime problem with two Asterisk servers


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
dubravko_caric at yaho...
Guest





PostPosted: Mon May 26, 2008 1:30 am    Post subject: [asterisk-users] realtime problem with two Asterisk servers Reply with quote

Hi all,
I have a problem with using remote MySQL database server with two Asterisk (1.4.17) servers. PhoneA registers with Asterisk#1 using realtime into MySQL on remote server and everything is working fine and when I call Phone A from Phone B (also registered with Asterisk#1) call is established. Problem is when I call PhoneA
(which is registered with Asterisk#1) from PhoneC (which is registered
with Asterisk#2) and call fails because "cause 3 - No route to destination".

This is the record (among other data) for PhoneA in MySQL:
fullcontact/ipaddr/port/regserver
sip:361 at 10.2.4.15:5060;user=phone;transport=udp/10.2.4.15/5060/asterisk

"sip show peers" on Asterisk#1
Name/username Host Dyn Nat ACL Port Status Realtime
361/361 10.2.4.15 D 5060 OK (99 ms)

"sip show peers" on Asterisk#2
Name/username Host Dyn Nat ACL Port Status Realtime

So, I have three questions:
1. Why is "Realtime" column on Asterisk#1 empty for PhoneA when it is registered by using realtime (is this normal condition?)
2. Why doesn't Asterisk#2 use IP address of PhoneA which exists in database
3. If I put this two Asterisk servers in failover mode (Linux HA) does this mean that no calls will be done until all phones register with secondary Asterisk server (e.g. if regexpire is 3600 sec, do I have to wait for one hour before phone reregister to the secondary server)?

I'm missing something, but I don't know what so I would be grateful for any directions. Should I do some kind of cache replication between this two Asterisk servers (if yes, how should I do it?)


Configuration on both Asterisk servers:

extconfig.conf
sippeers => mysql,asterisk,sipfriends
sipusers => mysql,asterisk,sipfriends

res_mysql.conf
dbhost = 10.2.4.13
dbname = asterisk
dbuser = xxx
dbpass = yyy
port = 3306

sip.conf
dbhost = 10.2.4.13
dbname = asterisk
dbuser = xxx
dbpass = yyy
port = 3306


Thanks

Dubravko



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080525/24a461bf/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services