Shenen Shenen
2006-Jun-09 02:37 UTC
[Asterisk-Users] Database file to copy for active sessions.
How can I copy all the contenent of the asterisk database to another machine? I want copy all the active sessions from one asterisk@home to another one and running on the second(this I can do using vrrp protocol, it isn't a problem), I want copy only all the active sessions and softphone registrations to another asterisk@home and then run on it. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060609/1456cb71/attachment.htm
Douglas Garstang
2006-Jun-09 10:53 UTC
[Asterisk-Users] Database file to copy for active sessions.
Two solutions... 1. Set OpenSER to to receive registrations from phones. OpenSER 'fans out' the registrations to multiple Asterisk boxes with the send() command. This will break things like call transfer however unless you can guarantee that a transferred call goes back to the same Asterisk box. 2. Write a script that either reads the /var/lib/asterisk/astdb file directly (with DB module), or screen scrapes it with 'asterisk -rx sip show peers'. Pass the registration info to sipsak who sends the registrations to the other Asterisk boxes. Because the registrations come through the normal channels, Asterisk will update what's in memory and what's in astdb with no locking situations. Unfortunately this 'enterprise grade' software doesn't work well in a clustered environment. Doug. -----Original Message----- From: Jon Sch?pzinsky [mailto:jos@detele.dk] Sent: Friday, June 09, 2006 4:37 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: SV: [Asterisk-Users] Database file to copy for active sessions. There is a solution, but its not straight forward, and not really documented anywhere. A possible solution, is to set a SER server up, before your asterisk, and let that handle the SIP registrations. Jon _____ Fra: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] P? vegne af Shenen Shenen Sendt: 9. juni 2006 12:21 Til: Asterisk Users Mailing List - Non-Commercial Discussion Emne: Re: [Asterisk-Users] Database file to copy for active sessions. So my only solution is to use only X-lite softphone where I can add more than 1 proxy, and a Cisco switchboard where I can set up a VRRP protocol, so in case of fall, the cisco make the resolutions of all tables and permited me to call from IP phones like CISCO IP phones or wi_fi phone without problems or registration in asterisk.....I think......becouse in this way I see there isn't a solution....right? On 6/9/06, Jon Sch?pzinsky < jos@detele.dk> wrote: It's a little more tricky than that. Our solution involves an external manager application, some clever IAX2 routing and dialplan mysql queries. We tried the solution with just copying the registration, but it seems as though the SIP channel has the registry information in an Internal data structure. Jon _____ Fra: asterisk-users-bounces@lists.digium.com [mailto: <mailto:asterisk-users-bounces@lists.digium.com> asterisk-users-bounces@lists.digium.com] P? vegne af Shenen Shenen Sendt: 9. juni 2006 11:56 Til: Asterisk Users Mailing List - Non-Commercial Discussion Emne: Re: [Asterisk-Users] Database file to copy for active sessions. ok...but if I run a softphone and it is registered in the CLI and I see this: -- Registered SIP '655' at 192.168.251.10 <http://192.168.251.10/> port 1175 expires 900 this registration where is put?in which file? Can I copy this registration to another machine? On 6/9/06, Jon Sch?pzinsky < <mailto:jos@detele.dk> jos@detele.dk> wrote: Hello I can save you a lot of time, and tell you that it wont work. It does hold some registration information in the asterisk database, but most of the information is kept internally in Asterisk. Just FYI. Jon _____ Fra: asterisk-users-bounces@lists.digium.com [mailto: <mailto:asterisk-users-bounces@lists.digium.com> asterisk-users-bounces@lists.digium.com] P? vegne af Shenen Shenen Sendt: 9. juni 2006 11:37 Til: asterisk-users@lists.digium.com Emne: [Asterisk-Users] Database file to copy for active sessions. How can I copy all the contenent of the asterisk database to another machine? I want copy all the active sessions from one asterisk@home <mailto:asterisk@home> to another one and running on the second(this I can do using vrrp protocol, it isn't a problem), I want copy only all the active sessions and softphone registrations to another asterisk@home and then run on it. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 08-06-2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 08-06-2006 _______________________________________________ --Bandwidth and Colocation provided by Easynews.com <http://easynews.com/> -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 08-06-2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 08-06-2006 _______________________________________________ --Bandwidth and Colocation provided by Easynews.com <http://easynews.com/> -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 08-06-2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 08-06-2006 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060609/0686c451/attachment.htm