Re: [asterisk-users] Realtime SIP Register
Use #exec directive to execute external script which retrieves registration data from DB, and outputs correct registration string as text. Do not forget to enable #exec in asterisk.conf You will need to do sip reload each time you change registration settings. With reload you will lose all existing registrations and all previously registered devices will be unreachable till they register again. Regards, Mindaugas Kezys http://www.kolmisoft.com VoIP Billing and Routing Solutions -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Philipp Roos [Inlogia GmbH] Sent: 2009 m. lapkričio 27 d. 14:11 To: asterisk-users@lists.digium.com Subject: [asterisk-users] Realtime SIP Register Hi, I would like to have my register directives from sip.conf in my mysql database: register = user[:secret[:authuse...@host[:port][/extension] I already have the sip users and the other config in the DB but how to get the register in there, too? In an old mail (Mon Oct 3 00:49:15 MST 2005) Olle E. Johansson said the [general] section can only be static. Has there anything changed in the last 4 years? Thanks! Philipp ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Realtime SIP Register
Hi, I would like to have my register directives from sip.conf in my mysql database: register = user[:secret[:authuse...@host[:port][/extension] I already have the sip users and the other config in the DB but how to get the register in there, too? In an old mail (Mon Oct 3 00:49:15 MST 2005) Olle E. Johansson said the [general] section can only be static. Has there anything changed in the last 4 years? Thanks! Philipp ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Realtime sip register=
Juan Salas wrote: yes, I tested too and it's works. The Problem is when we want to add (or delete) registers without reload the asterisk. We are using it like a border server wich is registered like many users in a SER machine and the real endpoints are registered in the asterisk. I guess one could create a manager interface function for adding registry entries while running. The app itself has to make sure that these are also stored in a config file, so that they still exist after reload. /Olle ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Realtime sip register=
Hi, I saw (and it's works), that you can mix the realtime and static mode. In extconfig.conf file configure to use sip.conf in realtime ... ;realtime sipusers = mysql,pbx,PBX_sip_buddies sippeers = mysql,pbx,PBX_sip_buddies ... Don't delete the sip.conf file! In the sip.conf file define only the [general] section with your register variables and use sip_buddies table to define your SIP client. When you start Asterisk server, the sip.conf file will read the [general section (with your register variables) and after the sip_buddies table. -Original Message- From: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] On Behalf Of Olle E. Johansson Sent: martedì, 25. ottobre 2005 16:11 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Realtime sip register= Juan Salas wrote: Hello! As I know, the register is a variable of [general] section in sip.conf. You can't use it in database, ie you can't add new registers without reload the asterisk.. You can have a static config in a database, but you will still have to reload. /O ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users __ NOD32 1.1264 (20051024) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Realtime sip register=
yes, I tested too and it's works. The Problem is when we want to add (or delete) registers without reload the asterisk. We are using it like a border server wich is registered like many users in a SER machine and the real endpoints are registered in the asterisk. Regards. Jsalas -Mensaje original- De: Luca Lafranchi Lists [mailto:[EMAIL PROTECTED] Enviado el: Wednesday, October 26, 2005 5:51 AM Para: 'Asterisk Users Mailing List - Non-Commercial Discussion' Asunto: RE: [Asterisk-Users] Realtime sip register= Hi, I saw (and it's works), that you can mix the realtime and static mode. In extconfig.conf file configure to use sip.conf in realtime ... ;realtime sipusers = mysql,pbx,PBX_sip_buddies sippeers = mysql,pbx,PBX_sip_buddies ... Don't delete the sip.conf file! In the sip.conf file define only the [general] section with your register variables and use sip_buddies table to define your SIP client. When you start Asterisk server, the sip.conf file will read the [general section (with your register variables) and after the sip_buddies table. -Original Message- From: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] On Behalf Of Olle E. Johansson Sent: martedì, 25. ottobre 2005 16:11 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Realtime sip register= Juan Salas wrote: Hello! As I know, the register is a variable of [general] section in sip.conf. You can't use it in database, ie you can't add new registers without reload the asterisk.. You can have a static config in a database, but you will still have to reload. /O ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users __ NOD32 1.1264 (20051024) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Realtime sip register=
i want to put sip peer registration command register = in my database . anybody have any idea about it how to do this fahd ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Realtime sip register=
You could check these links. I'm trying to do the sip peer registration like this but I get some error about username / auth name mismatch. I think I do something wrong in the MySQL table. I hope it works for you and if it works I would like to hear it from you. Good luck http://www.voip-info.org/tiki-index.php?page=Asterisk+RealTime http://www.voip-info.org/wiki/view/Asterisk+RealTime+SipOn 10/25/05, Fahd [EMAIL PROTECTED] wrote:i want to put sip peer registrationcommand register = in my database . anybody have any idea about it how to do thisfahd___--Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing listAsterisk-Users@lists.digium.comhttp://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Tijmen van den BrinkWilhelminaweg 463441 XC WoerdenTel: 0642233831MSN: [EMAIL PROTECTED]Skype: [EMAIL PROTECTED]SIP:[EMAIL PROTECTED] ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] Realtime sip register=
Hello! As I know, the "register" is a variable of [general] section in sip.conf. You can't use it in database, ie you can't add new registers without reload the asterisk.. I am right? Regards. Jsalas. -Mensaje original-De: tijmen van den brink [mailto:[EMAIL PROTECTED]Enviado el: Tuesday, October 25, 2005 9:26 AMPara: Asterisk Users Mailing List - Non-Commercial DiscussionAsunto: Re: [Asterisk-Users] Realtime sip register=You could check these links. I'm trying to do the sip peer registration like this but I get some error about username / auth name mismatch.I think I do something wrong in the MySQL table.I hope it works for you and if it works I would like to hear it from you.Good luckhttp://www.voip-info.org/tiki-index.php?page=Asterisk+RealTimehttp://www.voip-info.org/wiki/view/Asterisk+RealTime+Sip On 10/25/05, Fahd [EMAIL PROTECTED] wrote: i want to put sip peer registrationcommand register = in my database . anybody have any idea about it how to do thisfahd___--Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing listAsterisk-Users@lists.digium.comhttp://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users-- Tijmen van den BrinkWilhelminaweg 463441 XC WoerdenTel: 0642233831MSN: [EMAIL PROTECTED]Skype: [EMAIL PROTECTED]SIP:[EMAIL PROTECTED] ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Realtime sip register=
Dear Juan I think you are right. you can't add new registers without reload asterisk. and the register can't be put in the REALTIME database. But there is an alternative to put the sip.conf file in in the database. This is a bit different from the REALTIME engine. This is just a database table with the sip.conf entries. I think you still need to reload if you change the table entries. Extract from /etc/asterisk/extconfig.conf ; Static configuration files: ; ; file.conf = driver,database[,table] ; ; maps a particular configuration file to the given ; database driver, database and table (or uses the ; name of the file as the table if not specified) ; The following files CANNOT be loaded from Realtime storage: ; asterisk.conf ; extconfig.conf (this file) ; logger.conf Are Casilla -- http://astartelecom.com - Independent VOIP Telecoms Broker. Asterisk and Drupal Consultants http://astbill.com - Billing, Routing and Management software for Asterisk and VOIP AstBill DEMO: http://demo.astbill.com On 10/25/05, Juan Salas [EMAIL PROTECTED] wrote: Hello! As I know, the register is a variable of [general] section in sip.conf. You can't use it in database, ie you can't add new registers without reload the asterisk.. I am right? Regards. Jsalas. -Mensaje original-De: tijmen van den brink [mailto:[EMAIL PROTECTED]]Enviado el: Tuesday, October 25, 2005 9:26 AMPara: Asterisk Users Mailing List - Non-Commercial DiscussionAsunto: Re: [Asterisk-Users] Realtime sip register=You could check these links. I'm trying to do the sip peer registration like this but I get some error about username / auth name mismatch.I think I do something wrong in the MySQL table.I hope it works for you and if it works I would like to hear it from you.Good luckhttp://www.voip-info.org/tiki-index.php?page=Asterisk+RealTime http://www.voip-info.org/wiki/view/Asterisk+RealTime+Sip On 10/25/05, Fahd [EMAIL PROTECTED] wrote: i want to put sip peer registrationcommand register = in my database . anybody have any idea about it how to do thisfahd___--Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing listAsterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Tijmen van den BrinkWilhelminaweg 463441 XC WoerdenTel: 0642233831MSN: [EMAIL PROTECTED]Skype: [EMAIL PROTECTED] SIP:[EMAIL PROTECTED] ___--Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing listAsterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-usersTo UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Realtime sip register=
Juan Salas wrote: Hello! As I know, the register is a variable of [general] section in sip.conf. You can't use it in database, ie you can't add new registers without reload the asterisk.. You can have a static config in a database, but you will still have to reload. /O ___ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users