RE: [Asterisk-Users] realtime and include

2005-08-30 Thread Luca Lafranchi
I'm interested for this thread, can you explain with an example please?

In my extensions.conf I have

...
[sip.proxy.com]
switch = Realtime/[EMAIL PROTECTED]


in extensions table on mysql I can insert on app field the command
include and in the appdata field my context ?

Luca

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew Boehm
Sent: lunedì, 29. agosto 2005 16:18
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] realtime and include

Urban wrote:
 Hi,
 
 is there any support for include statement in the database when using 
 realtime configurations? I would like to have as much as possible 
 configuration in my postgres db but we have different access controls 
 for different user contexts (allow international, national etc). Today 
 we have different contexts for access rules e.g.
 [allow_international]
 exten = _00.,1,Dial...
 
 and for users we just include the allow_xxx and deny_xxx contexts. This 
 makes it easier since we don't need to change each users dialplan just 
 include the right contexts.
 Is this possible with realtime? The only way I see is to add/remove 
 switch statements in extensions.conf and then we back to make the 
 changes in extensions.conf and not in the database...

If you store the extensions.conf in database, then it will work. If
you 
want to use the switch, then no.

-Matthew


___
--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

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26.08.2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.17/84 - Release Date: 29.08.2005
 

___
--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 and include

2005-08-30 Thread Matthew Boehm

Luca Lafranchi wrote:

I'm interested for this thread, can you explain with an example please?

In my extensions.conf I have

...
[sip.proxy.com]
switch = Realtime/[EMAIL PROTECTED]


in extensions table on mysql I can insert on app field the command
include and in the appdata field my context ?

Luca


Go read:

http://www.voip-info.org/tiki-index.php?page=Asterisk+RealTime+Static

-Matthew

___
--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 and include

2005-08-30 Thread Luca Lafranchi
Ok, if I have understood well... this mean that if I have configured a table
for extension.conf in real time mode, I can't use the static mode
(ast_config table) and consequently I can't use the include command ?

Luca

-Original Message-
From: Matthew Boehm [mailto:[EMAIL PROTECTED] 
Sent: martedì, 30. agosto 2005 19:22
To: [EMAIL PROTECTED]; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [Asterisk-Users] realtime and include

Luca Lafranchi wrote:
 I'm interested for this thread, can you explain with an example please?
 
 In my extensions.conf I have
 
 ...
 [sip.proxy.com]
 switch = Realtime/[EMAIL PROTECTED]
 
 
 in extensions table on mysql I can insert on app field the command
 include and in the appdata field my context ?
 
 Luca

Go read:

http://www.voip-info.org/tiki-index.php?page=Asterisk+RealTime+Static

-Matthew

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.17/84 - Release Date: 29.08.2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.17/84 - Release Date: 29.08.2005
 

___
--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 and include

2005-08-29 Thread Urban

Hi,

is there any support for include statement in the database when using 
realtime configurations? I would like to have as much as possible 
configuration in my postgres db but we have different access controls 
for different user contexts (allow international, national etc). Today 
we have different contexts for access rules e.g.

[allow_international]
exten = _00.,1,Dial...

and for users we just include the allow_xxx and deny_xxx contexts. This 
makes it easier since we don't need to change each users dialplan just 
include the right contexts.
Is this possible with realtime? The only way I see is to add/remove 
switch statements in extensions.conf and then we back to make the 
changes in extensions.conf and not in the database...


/urban
___
--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 and include

2005-08-29 Thread Matthew Boehm

Urban wrote:

Hi,

is there any support for include statement in the database when using 
realtime configurations? I would like to have as much as possible 
configuration in my postgres db but we have different access controls 
for different user contexts (allow international, national etc). Today 
we have different contexts for access rules e.g.

[allow_international]
exten = _00.,1,Dial...

and for users we just include the allow_xxx and deny_xxx contexts. This 
makes it easier since we don't need to change each users dialplan just 
include the right contexts.
Is this possible with realtime? The only way I see is to add/remove 
switch statements in extensions.conf and then we back to make the 
changes in extensions.conf and not in the database...


	If you store the extensions.conf in database, then it will work. If you 
want to use the switch, then no.


-Matthew


___
--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 and include

2005-01-11 Thread Alessio Focardi
Hi,

I'm testing realtime right now, it does not seem to me that realtime
contexts can be included in normal context, like this

[sip]

include=sip-dial

exten=i,1,Hangup

[sip-dial]

switch=Realtime/sip-dial

Am I getting it wrong ?

Tnx !

-- 
Best regards,
 Alessio  mailto:[EMAIL PROTECTED]

___
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 and include

2005-01-11 Thread Matthew Boehm
What is leading you to believe that this isn't working? You didn't give us
much to work with...

-Matthew
- Original Message - 
From: Alessio Focardi [EMAIL PROTECTED]
To: asterisk-users@lists.digium.com
Sent: Tuesday, January 11, 2005 5:07 AM
Subject: [Asterisk-Users] Realtime and include


 Hi,

 I'm testing realtime right now, it does not seem to me that realtime
 contexts can be included in normal context, like this

 [sip]

 include=sip-dial

 exten=i,1,Hangup

 [sip-dial]

 switch=Realtime/sip-dial

 Am I getting it wrong ?

 Tnx !

 -- 
 Best regards,
  Alessio  mailto:[EMAIL PROTECTED]

 ___
 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 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