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

2014-07-28 Thread Robin Kipp
Hi Ishfaq,

Am 25.07.2014 um 14:34 schrieb Ishfaq Malik i...@pack-net.co.uk:

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

Yep, or write a PHP script that fills in the required info automatically. I was 
just wondering if there was any native Asterisk way of doing it :-)
Thanks!
Robin


signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
_
-- 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

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

2014-07-25 Thread Robin Kipp
Hi Ishfaq,

Am 24.07.2014 um 09:57 schrieb Ishfaq Malik i...@pack-net.co.uk:
 
 
 
 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 :-)
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

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

2014-07-25 Thread Ishfaq Malik
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 mli...@robin-kipp.net wrote:

 Hi Ishfaq,

 Am 24.07.2014 um 09:57 schrieb Ishfaq Malik i...@pack-net.co.uk:




 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 :-)
 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




-- 

Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: i...@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
-- 
_
-- 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

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

2014-07-24 Thread Ishfaq Malik
On 23 July 2014 21:53, Robin Kipp mli...@robin-kipp.net wrote:

 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

-- 

Ishfaq Malik
Department: VOIP Support
Company: Packnet Limited
t: +44 (0)845 004 4994
f: +44 (0)161 660 9825
e: i...@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
-- 
_
-- 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

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

2014-07-23 Thread Robin Kipp
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


signature.asc
Description: Message signed with OpenPGP using GPGMail
-- 
_
-- 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