Re: [Asterisk-Users] Dynamic SIP.CONF

2004-05-22 Thread Fran Boon
Darren Nay wrote:
We are looking to expand our usage of Asterisk and I am trying to make as
much of the configuration dynamic as I possibly can.  The only part that I'm
having problems with is sip.conf.  I can get asterisk to register each
extension with our local SER SIP proxy dynamically by using the
sipfriends table in the database, but I'm having trouble with the message
waiting indicators (ie. SIP NOTIFY packets when a new voicemail is waiting).
-SNIP-
Is there a way to make this dynamic so that I don't have to add this into
sip.conf -every- single time that I add a new extension?
Only by extending the functionality of sip friends to include this extra 
field...

I wouldn't bother doing this as ast_data (formally res_data) is being 
developed to replace sip/iax friends.
If you want to take a sneak preview at this then see:
http://svn.asteriskdocs.org/res_data/ast_data/

I tried the following, but it didn't work ..
[default]
type=peer
host=dynamic
dtmfmode=inband
username=${EXTEN}
Mailbox=${EXTEN}
Am I on the right track, or way off base? :-)
Way off base ;)
That kind of syntax only works in extensions.conf
F
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] Dynamic SIP.CONF

2004-05-22 Thread Brian Cuthie
So I've been kind of struggling with the notion of making my Asterisk 
implementations dynamic, too. While I'd like to make everything directly 
database driven, I'm not sure Asterisk is quite there yet.

I've been thinking of writing something that creates appropriate 
configuration files from the database on a periodic basis, and then does 
an Asterisk reload. This would introduce a small delay into 
configuration changes, but it does have other benefits such as 
decoupling the design of the database from Asterisk.

Any thoughts?
-brian
Fran Boon wrote:
Darren Nay wrote:
We are looking to expand our usage of Asterisk and I am trying to 
make as
much of the configuration dynamic as I possibly can.  The only part 
that I'm
having problems with is sip.conf.  I can get asterisk to register each
extension with our local SER SIP proxy dynamically by using the
sipfriends table in the database, but I'm having trouble with the 
message
waiting indicators (ie. SIP NOTIFY packets when a new voicemail is 
waiting).
-SNIP-
Is there a way to make this dynamic so that I don't have to add this 
into
sip.conf -every- single time that I add a new extension?

Only by extending the functionality of sip friends to include this 
extra field...

I wouldn't bother doing this as ast_data (formally res_data) is being 
developed to replace sip/iax friends.
If you want to take a sneak preview at this then see:
http://svn.asteriskdocs.org/res_data/ast_data/

I tried the following, but it didn't work ..
[default]
type=peer
host=dynamic
dtmfmode=inband
username=${EXTEN}
Mailbox=${EXTEN}
Am I on the right track, or way off base? :-)

Way off base ;)
That kind of syntax only works in extensions.conf
F
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] Dynamic SIP.CONF

2004-05-22 Thread Pablo Endres
What I do is have a cron with a perl script that recreates a sip-db.conf
(which has an #include in the sip.conf) then do a sip reload.

I's rather simple, all you have to write a temp and diff, if its
changed replace and reload, if not don't do a thing.  

Do the same with extensions


On Sat, 2004-05-22 at 12:39, Fran Boon wrote:
 Darren Nay wrote:
  We are looking to expand our usage of Asterisk and I am trying to make as
  much of the configuration dynamic as I possibly can.  The only part that I'm
  having problems with is sip.conf.  I can get asterisk to register each
  extension with our local SER SIP proxy dynamically by using the
  sipfriends table in the database, but I'm having trouble with the message
  waiting indicators (ie. SIP NOTIFY packets when a new voicemail is waiting).
 -SNIP-
  Is there a way to make this dynamic so that I don't have to add this into
  sip.conf -every- single time that I add a new extension?
 
 Only by extending the functionality of sip friends to include this extra 
 field...
 
 I wouldn't bother doing this as ast_data (formally res_data) is being 
 developed to replace sip/iax friends.
 If you want to take a sneak preview at this then see:
 http://svn.asteriskdocs.org/res_data/ast_data/
 
  I tried the following, but it didn't work ..
  [default]
  type=peer
  host=dynamic
  dtmfmode=inband
  username=${EXTEN}
  Mailbox=${EXTEN}
  Am I on the right track, or way off base? :-)
 
 Way off base ;)
 That kind of syntax only works in extensions.conf
 
 F
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Pablo Endres [EMAIL PROTECTED]
ComVoz Comunications

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] Dynamic SIP.CONF

2004-05-22 Thread Fran Boon
Brian Cuthie wrote:
So I've been kind of struggling with the notion of making my Asterisk 
implementations dynamic, too. While I'd like to make everything directly 
database driven, I'm not sure Asterisk is quite there yet.
I've been thinking of writing something that creates appropriate 
configuration files from the database on a periodic basis, and then does 
an Asterisk reload. This would introduce a small delay into 
configuration changes, but it does have other benefits such as 
decoupling the design of the database from Asterisk.
Any thoughts?
This is exactly what I do - works very well so far :)
I guess that it will reach scalability limits at some stage...but so 
far, so good...

I write out:
users-sip.conf
users-iax.conf
users-voicemail.conf
mapping.conf(username- extension)
These are #included into the main files.
I restart Asterisk via the manager port, since 'asterisk -r -x reload' 
doesn't return properly  the web UI 'sticks' horribly otherwise.

I complement this by using ODBCGet in the dialplan.
(Previously I #included dnd.conf, calldiversion.conf to achieve this 
functionality)

F
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users