Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[asterisk-users] SIP configuration in realtime static and realtime dynamic


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ish at pack-net.co.uk
Guest





PostPosted: Thu Jul 24, 2014 2:57 am    Post subject: [asterisk-users] SIP configuration in realtime static and re Reply with quote

On 23 July 2014 21:53, Robin Kipp <mlists@robin-kipp.net (mlists@robin-kipp.net)> wrote:
Quote:
Hi all,
I’m currently in the process of familiarizing myself with Asterisk, and am trying to move certain configuration objects (such as SIP peers) into a MySQL database, accessed by Asterisk using the ODBC connector.
Now, I’ve imported the sippeers MySQL table from the contrib directory of the Asterisk source, and I could add SIP users in here. However, I currently don’t understand whether this realtime dynamic configuration table is meant to replace or just supplement sip.conf. This is because the sippeers table does not offer certain fields for entries in the [general] section of my sip.conf file, such as the ‚udpbindaddr‘ variable.
So, am I supposed to put all that in the database by adding appropriate table columns, or can I leave this in the sip.conf file and chan_sip.so will read both the file and MySQL table once loaded? Also, is there anyway that I could use templates, so that I don’t have to redefine everything for each SIP peer?
Thanks a lot for help!
Robin




Hi


It supplements it.


In fact, you can define some peers in the sip.conf and some in the MySQL table. However, if you do add any in the sip.conf directly, you'll have to do a sip reload which will clear your realtime cache.


Regards


Ish 



--
Quote:
Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
Back to top
mlists at robin-kipp.net
Guest





PostPosted: Fri Jul 25, 2014 6:37 am    Post subject: [asterisk-users] SIP configuration in realtime static and re Reply with quote

Hi Ishfaq,
Am 24.07.2014 um 09:57 schrieb Ishfaq Malik <ish@pack-net.co.uk (ish@pack-net.co.uk)>:
Quote:


It supplements it.


In fact, you can define some peers in the sip.conf and some in the MySQL table. However, if you do add any in the sip.conf directly, you'll have to do a sip reload which will clear your realtime cache.





Thanks a lot for the information! Makes a lot more sense to me now Smile
What about templates though, is there any way of doing that? For example, defining templates in sip.conf and then referencing them in the MySQL database…
Thanks!
Robin
Back to top
ish at pack-net.co.uk
Guest





PostPosted: Fri Jul 25, 2014 7:34 am    Post subject: [asterisk-users] SIP configuration in realtime static and re Reply with quote

Not that I know of but since you are using a database you can update multiple rows at once.

Please note, if you change the settings in the database entry of a peer that is currently connected, you will need to flush the realtime cache with the following command


sip prune realtime <peer-name>


The next time the endpoint registers it will pick up the new configuration.



On 25 July 2014 12:38, Robin Kipp <mlists@robin-kipp.net (mlists@robin-kipp.net)> wrote:
Quote:
Hi Ishfaq,
Am 24.07.2014 um 09:57 schrieb Ishfaq Malik <ish@pack-net.co.uk (ish@pack-net.co.uk)>:
Quote:


It supplements it.


In fact, you can define some peers in the sip.conf and some in the MySQL table. However, if you do add any in the sip.conf directly, you'll have to do a sip reload which will clear your realtime cache.






Thanks a lot for the information! Makes a lot more sense to me now Smile
What about templates though, is there any way of doing that? For example, defining templates in sip.conf and then referencing them in the MySQL database…
Thanks!
Robin



--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




--
Quote:
Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: ish@pack-net.co.uk (ish@pack-net.co.uk)
w: http://www.pack-net.co.uk

Registered Address: PACKNET LIMITED, Duplex 2, Ducie House
37 Ducie Street
Manchester, M1 2JW
COMPANY REG NO. 04920552
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