RE: [Asterisk-Users] Thousands of contexts?
Jeremy McNamara wrote: > Michael Bielicki wrote: > >> Hi Sim :) >> you seem to be one of the top candidates as a ast_data power tester >> :) > > ast_data has gotten bloated beyond belief. > > > All one needs is a proper understanding of the power of Asterisk's > dial > plan and you won't EVER have a need for thousands of contexts. > > > Use what Mark has already given us, don't bastardize it with fluff. Very well said!!! ___ 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] Thousands of contexts?
Michael Bielicki wrote: Hi Sim :) you seem to be one of the top candidates as a ast_data power tester :) ast_data has gotten bloated beyond belief. All one needs is a proper understanding of the power of Asterisk's dial plan and you won't EVER have a need for thousands of contexts. Use what Mark has already given us, don't bastardize it with fluff. Jeremy McNamara ___ 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] Thousands of contexts?
AGI script with SQL backend. You know the user (callerid) and the dialed number (exten) going into the script, and you return a variable that says yay or nay. > -Original Message- > From: Florian Overkamp [mailto:[EMAIL PROTECTED] > Sent: Saturday, June 19, 2004 5:15 AM > To: [EMAIL PROTECTED] > Subject: RE: [Asterisk-Users] Thousands of contexts? > > > Hi, > > > -Original Message- > > But the thought is correct, use a database to store the data > > and one context that does a lookup into the database and > > populates your callerid. It is a better way of doing things. > > You could even host it in the ast_db and then it shouldn't be > > too slow as you aren't spawning any outside apps. > > Here's another scenario I'm working with: I am using contexts > per user to 'include' the numberranges they are allowed to > dial. Any suggestions how to do that without a context per user ? > > > Best regards, > Florian > > ___ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/aster> isk-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] Thousands of contexts?
check #sboost and open your eyes :) all that does not work as promised yet is: I can't seem to get context includes right MWI is tricky and I don't know how to specify odecs correctly Besides that it works fantasticly, even in chaos DB setup where the extension from he table triggers a ODBCget app :)) On Sat, 2004-06-19 at 13:39, Florian Overkamp wrote: > Hi Michael, > > > -Original Message- > > Hi Sim :) > > you seem to be one of the top candidates as a ast_data power tester :) > > I'm game, tell me more :-) > > > > Here's another scenario I'm working with: I am using > > contexts per user > > > to 'include' the numberranges they are allowed to dial. Any > > > suggestions how to do that without a context per user ? > > Florian > > ___ > 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] Thousands of contexts?
Hi Michael, > -Original Message- > Hi Sim :) > you seem to be one of the top candidates as a ast_data power tester :) I'm game, tell me more :-) > > Here's another scenario I'm working with: I am using > contexts per user > > to 'include' the numberranges they are allowed to dial. Any > > suggestions how to do that without a context per user ? Florian ___ 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] Thousands of contexts?
Hi Sim :) you seem to be one of the top candidates as a ast_data power tester :) On Sat, 2004-06-19 at 12:14, Florian Overkamp wrote: > Hi, > > > -Original Message- > > But the thought is correct, use a database to store the data > > and one context that does a lookup into the database and > > populates your callerid. It is a better way of doing things. > > You could even host it in the ast_db and then it shouldn't be > > too slow as you aren't spawning any outside apps. > > Here's another scenario I'm working with: I am using contexts per user to > 'include' the numberranges they are allowed to dial. Any suggestions how to > do that without a context per user ? > > > Best regards, > Florian > > ___ > 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] Thousands of contexts?
Hi, > -Original Message- > But the thought is correct, use a database to store the data > and one context that does a lookup into the database and > populates your callerid. It is a better way of doing things. > You could even host it in the ast_db and then it shouldn't be > too slow as you aren't spawning any outside apps. Here's another scenario I'm working with: I am using contexts per user to 'include' the numberranges they are allowed to dial. Any suggestions how to do that without a context per user ? Best regards, Florian ___ 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] Thousands of contexts?
On Fri, 2004-06-18 at 12:46, Chris Bond wrote: > Why not use mysql as it should be faster I'd suspect I doubt it would be faster as asterisk will keep it all in memory, only changes might be slowed. But the thought is correct, use a database to store the data and one context that does a lookup into the database and populates your callerid. It is a better way of doing things. You could even host it in the ast_db and then it shouldn't be too slow as you aren't spawning any outside apps. > -Original Message- > From: Manuel Wenger [mailto:[EMAIL PROTECTED] > Sent: 18 June 2004 5:43 PM > To: [EMAIL PROTECTED] > Subject: [Asterisk-Users] Thousands of contexts? > > By reading the Wiki's I found out that an Asterisk server with many (>1) > extensions and/or SIP users can become slow when reloading. But what happens > when you also have many contexts in extensions.conf? More precisely, one > context for each SIP user? > > I need this because I will have users with random usernames that they can > choose, but I obviously cannot set that username as the outgoing caller ID > when passing the call to our PSTN gateway. I need to change the CLI before > dialling out. Now, every SIP user has his CLI, so I thought of creating a > context for every user, where I would SetCallerID() before issuing the > Dial() command. Obviously I would use some sort of script reading from a > database to re-create the extensions.conf and sip.conf after making changes. > > Do you see any issues which could arise? Is Asterisk going to crash, or is > it just going to be slow when reloading? > > Thank you for your help > -Manuel > > > ___ > Ticinocom SA - Via Stazione 5 - 6600 Muralto > Tel 0844 007070 - Fax 0844 007071 > http://www.ticinocom.com > > ___ > 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 -- Steven Critchfield <[EMAIL PROTECTED]> ___ 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] Thousands of contexts?
Is there any reason you can't use the callerid="name" in sip.conf instead of a ton of contexts to do this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Bond Sent: Friday, June 18, 2004 1:47 PM To: [EMAIL PROTECTED] Subject: RE: [Asterisk-Users] Thousands of contexts? Why not use mysql as it should be faster I'd suspect -Original Message- From: Manuel Wenger [mailto:[EMAIL PROTECTED] Sent: 18 June 2004 5:43 PM To: [EMAIL PROTECTED] Subject: [Asterisk-Users] Thousands of contexts? By reading the Wiki's I found out that an Asterisk server with many (>1) extensions and/or SIP users can become slow when reloading. But what happens when you also have many contexts in extensions.conf? More precisely, one context for each SIP user? I need this because I will have users with random usernames that they can choose, but I obviously cannot set that username as the outgoing caller ID when passing the call to our PSTN gateway. I need to change the CLI before dialling out. Now, every SIP user has his CLI, so I thought of creating a context for every user, where I would SetCallerID() before issuing the Dial() command. Obviously I would use some sort of script reading from a database to re-create the extensions.conf and sip.conf after making changes. Do you see any issues which could arise? Is Asterisk going to crash, or is it just going to be slow when reloading? Thank you for your help -Manuel ___ 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] Thousands of contexts?
Manuel Wenger [EMAIL PROTECTED] wrote: > By reading the Wiki's I found out that an Asterisk server with many > (>1) extensions and/or SIP users can become slow when reloading. But > what happens when you also have many contexts in extensions.conf? More > precisely, one context for each SIP user? > > I need this because I will have users with random usernames that they can > choose, but I obviously cannot set that username as the outgoing caller > ID when passing the call to our PSTN gateway. I need to change the CLI > before dialling out. Now, every SIP user has his CLI, so I thought of > creating a context for every user, where I would SetCallerID() before > issuing the Dial() command. Obviously I would use some sort of script > reading from a database to re-create the extensions.conf and sip.conf > after making changes. > > Do you see any issues which could arise? Is Asterisk going to crash, or > is it just going to be slow when reloading? > I don't quite understand your Caller*ID dilemma. In your sip.conf, you'd have a block for each user, say [abc123]. That's your random username, yes? The same block would also define the password and other directives. Why can't you simply include the "callerid" directive to set the Caller*ID name and number? The following should do the trick: callerid = "Kevin Walsh" <1234567890> I don't know whether Asterisk would slow down when reloading thousands of contexts, but it sounds reasonable to me - I wouldn't expect it to get any quicker. :-) -- _/ _/ _/_/_/_/ _/_/ _/_/_/ _/_/ _/_/_/ _/_/ _/_/_/_/_/ _/ K e v i n W a l s h _/ _/_/ _/ _/ _/_/ _/_/[EMAIL PROTECTED] _/ _/ _/_/_/_/ _/_/_/_/ _/_/ ___ 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] Thousands of contexts?
Manuel Wenger wrote: By reading the Wiki's I found out that an Asterisk server with many (>1) extensions and/or SIP users can become slow when reloading. But what happens when you also have many contexts in extensions.conf? More precisely, one context for each SIP user? I need this because I will have users with random usernames that they can choose, but I obviously cannot set that username as the outgoing caller ID when passing the call to our PSTN gateway. I need to change the CLI before dialling out. Now, every SIP user has his CLI, so I thought of creating a context for every user, where I would SetCallerID() before issuing the Dial() command. Obviously I would use some sort of script reading from a database to re-create the extensions.conf and sip.conf after making changes. Do you see any issues which could arise? Is Asterisk going to crash, or is it just going to be slow when reloading? You need to learn more about Asterisk, especially power of Asterisk's dial plan. There is absolutely no need for thousands of contexts on one box. We have a tremendous amount of endpoints on our various systems, yet we only have 4 or 5 contexts. If you cannot use the callerid directive in the sip.conf (or equivalent) to set the callerid once and forget it, you can always use astdb to store and have the ability to update callerid in real-time. Then again, you could do what we do and let the customer specify their own callerid, until we receive any complaints then we would simply override it with a callerid directive in the appropriate config file on our system. Jeremy McNamara ___ 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] Thousands of contexts?
Why not use mysql as it should be faster I'd suspect -Original Message- From: Manuel Wenger [mailto:[EMAIL PROTECTED] Sent: 18 June 2004 5:43 PM To: [EMAIL PROTECTED] Subject: [Asterisk-Users] Thousands of contexts? By reading the Wiki's I found out that an Asterisk server with many (>1) extensions and/or SIP users can become slow when reloading. But what happens when you also have many contexts in extensions.conf? More precisely, one context for each SIP user? I need this because I will have users with random usernames that they can choose, but I obviously cannot set that username as the outgoing caller ID when passing the call to our PSTN gateway. I need to change the CLI before dialling out. Now, every SIP user has his CLI, so I thought of creating a context for every user, where I would SetCallerID() before issuing the Dial() command. Obviously I would use some sort of script reading from a database to re-create the extensions.conf and sip.conf after making changes. Do you see any issues which could arise? Is Asterisk going to crash, or is it just going to be slow when reloading? Thank you for your help -Manuel ___ Ticinocom SA - Via Stazione 5 - 6600 Muralto Tel 0844 007070 - Fax 0844 007071 http://www.ticinocom.com ___ 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