Re: [asterisk-users] hint priority with 50 channels
Ups, some more details. I just tried with different values: 800, 8000, 24000 I did a make clean && make && make install, restarted asterisk etc... Unfortunately it does not seem to work correctly. So I have a hint priorities like this: *1,hint,SIP/1&SIP/2.SIP&100 *2,hint,SIP/1 *3,hint,SIP/1&SIP/2.SIP&100 If SIP/1 or SIP/2 rings the priorities are all updated. But if I call SIP/60 only *1 is updated and not *3. This is strange. Any idea is welcome. Loic On Sat, 2008-11-22 at 11:41 -0600, Tilghman Lesher wrote: > On Saturday 22 November 2008 10:31:34 Loic Didelot wrote: > > Thanks for that idea. That what I had in mind. Now I just need to figure > > out where to change and test for side effects. > > In main/pbx.c, search for "ast_add_extension2" (in my branch, it's at line > 1917, but it may vary slightly). The top line of the function has: > char hint[AST_MAX_EXTENSION]. Change AST_MAX_EXTENSION to something > larger (say, 512) and recompile. BTW, I'm going to make this change in trunk, > so starting in 1.6.1, it will no longer be as much of a problem. > ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hint priority with 50 channels
I just tried with different values: 800, 8000, 24000 I did a make clean && make && make install, restarted asterisk etc... Unfortunately it does not seem to work. So I have a hint priority like this: *1,hint,SIP/1&SIP/2.SIP&100 If SIP/1 or SIP/2 rings the priority is updated but not for SIP/60 etc... Any idea is welcome. Loic On Sat, 2008-11-22 at 11:41 -0600, Tilghman Lesher wrote: > On Saturday 22 November 2008 10:31:34 Loic Didelot wrote: > > Thanks for that idea. That what I had in mind. Now I just need to figure > > out where to change and test for side effects. > > In main/pbx.c, search for "ast_add_extension2" (in my branch, it's at line > 1917, but it may vary slightly). The top line of the function has: > char hint[AST_MAX_EXTENSION]. Change AST_MAX_EXTENSION to something > larger (say, 512) and recompile. BTW, I'm going to make this change in trunk, > so starting in 1.6.1, it will no longer be as much of a problem. > ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hint priority with 50 channels
Thanks for the help. Loic. On Sat, 2008-11-22 at 11:41 -0600, Tilghman Lesher wrote: > On Saturday 22 November 2008 10:31:34 Loic Didelot wrote: > > Thanks for that idea. That what I had in mind. Now I just need to figure > > out where to change and test for side effects. > > In main/pbx.c, search for "ast_add_extension2" (in my branch, it's at line > 1917, but it may vary slightly). The top line of the function has: > char hint[AST_MAX_EXTENSION]. Change AST_MAX_EXTENSION to something > larger (say, 512) and recompile. BTW, I'm going to make this change in trunk, > so starting in 1.6.1, it will no longer be as much of a problem. > ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hint priority with 50 channels
On Saturday 22 November 2008 10:31:34 Loic Didelot wrote: > Thanks for that idea. That what I had in mind. Now I just need to figure > out where to change and test for side effects. In main/pbx.c, search for "ast_add_extension2" (in my branch, it's at line 1917, but it may vary slightly). The top line of the function has: char hint[AST_MAX_EXTENSION]. Change AST_MAX_EXTENSION to something larger (say, 512) and recompile. BTW, I'm going to make this change in trunk, so starting in 1.6.1, it will no longer be as much of a problem. -- Tilghman ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hint priority with 50 channels
Thanks for that idea. That what I had in mind. Now I just need to figure out where to change and test for side effects. Loic On Sat, 2008-11-22 at 08:19 -0700, Anthony Francis wrote: > Loic Didelot wrote: > > Why do we put 80 character limits, computers have GB or memory? > > > > > > Loic > > > > > Asterisk was written in c and they do have to declare how much memory > should be reserved for a variable in c, so the programmer arbitrarily > chose a number. They may have put some logic or investigation behind it, > but thats pretty much it. If you don't like that chose, edit the > definition in the source code and then recompile and voila! you have > your longer string handling. > > ___ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hint priority with 50 channels
Loic Didelot wrote: > Why do we put 80 character limits, computers have GB or memory? > > > Loic > > Asterisk was written in c and they do have to declare how much memory should be reserved for a variable in c, so the programmer arbitrarily chose a number. They may have put some logic or investigation behind it, but thats pretty much it. If you don't like that chose, edit the definition in the source code and then recompile and voila! you have your longer string handling. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hint priority with 50 channels
Here is the scenario. My customer has 3 groups each with 10 users. Every user has the users of his group programmed on the snom phone for pickup etc... This works perfectly. Now they want one global button for each group. so if any phone in another group rings then they can pick it up. Why do we put 80 character limits, computers have GB or memory? Loic On Fri, 2008-11-21 at 13:19 -0700, Anthony Francis wrote: > Just curious but why would you want to have a lot of devices all have > the exact same state information? > > Philipp Kempgen wrote: > > Loic Didelot schrieb: > > > > > >> I noticed that my hint priority stops working when I add to many > >> extensions/channels. It looks like everything exceeding 80 characters is > >> discarded. > >> > >> By stop working I mean the status is and stays "Unavailable". > >> > >> > >> This works > >> exten => *1,hint,SIP/loicvoip1_1&IAX2/loicvoip1_1&SIP/loicvoip1_1_a1 > >> > >> This does not work: > >> exten => > >> *1,hint,SIP/bla1&SIP/bla2&SIP/bla3&SIP/bla4&SIP/bla9&SIP/bla5&SIP/bla6&SIP/bla7&SIP/loicvoip1_1&IAX2/loicvoip1_1&SIP/loicvoip1_1_a1 > >> > >> > >> I tested on several asterisk 1.4 versions like 1.4.21*. > >> > >> > >> Is this a bug or something like working as designed? > >> > > > > It's by design. 80 characters is likely to be the limit. > > > > > >> Is there another > >> possibility to monitor a bigger number of channels? > >> > > > > In Asterisk 1.6 you could build something with "Custom" hints > > and DEVICE_STATE(). > > > >Philipp Kempgen > > > > > ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hint priority with 50 channels
Just curious but why would you want to have a lot of devices all have the exact same state information? Philipp Kempgen wrote: > Loic Didelot schrieb: > > >> I noticed that my hint priority stops working when I add to many >> extensions/channels. It looks like everything exceeding 80 characters is >> discarded. >> >> By stop working I mean the status is and stays "Unavailable". >> >> >> This works >> exten => *1,hint,SIP/loicvoip1_1&IAX2/loicvoip1_1&SIP/loicvoip1_1_a1 >> >> This does not work: >> exten => >> *1,hint,SIP/bla1&SIP/bla2&SIP/bla3&SIP/bla4&SIP/bla9&SIP/bla5&SIP/bla6&SIP/bla7&SIP/loicvoip1_1&IAX2/loicvoip1_1&SIP/loicvoip1_1_a1 >> >> >> I tested on several asterisk 1.4 versions like 1.4.21*. >> >> >> Is this a bug or something like working as designed? >> > > It's by design. 80 characters is likely to be the limit. > > >> Is there another >> possibility to monitor a bigger number of channels? >> > > In Asterisk 1.6 you could build something with "Custom" hints > and DEVICE_STATE(). > >Philipp Kempgen > > -- Thank you and have any kind of day you want, Anthony Francis Rockynet VOIP (303) 444-7052 opt 2 [EMAIL PROTECTED] ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hint priority with 50 channels
Loic Didelot schrieb: > I noticed that my hint priority stops working when I add to many > extensions/channels. It looks like everything exceeding 80 characters is > discarded. > > By stop working I mean the status is and stays "Unavailable". > > > This works > exten => *1,hint,SIP/loicvoip1_1&IAX2/loicvoip1_1&SIP/loicvoip1_1_a1 > > This does not work: > exten => > *1,hint,SIP/bla1&SIP/bla2&SIP/bla3&SIP/bla4&SIP/bla9&SIP/bla5&SIP/bla6&SIP/bla7&SIP/loicvoip1_1&IAX2/loicvoip1_1&SIP/loicvoip1_1_a1 > > > I tested on several asterisk 1.4 versions like 1.4.21*. > > > Is this a bug or something like working as designed? It's by design. 80 characters is likely to be the limit. > Is there another > possibility to monitor a bigger number of channels? In Asterisk 1.6 you could build something with "Custom" hints and DEVICE_STATE(). Philipp Kempgen -- http://www.das-asterisk-buch.de - http://www.the-asterisk-book.com Amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 -- ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] hint priority with 50 channels
Just a guess, but since extensions.conf is basically a "card file", there may be a 80 character limit to the line or data size. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Loic Didelot Sent: Friday, November 21, 2008 11:52 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] hint priority with 50 channels Hi, I noticed that my hint priority stops working when I add to many extensions/channels. It looks like everything exceeding 80 characters is discarded. By stop working I mean the status is and stays "Unavailable". This works exten => *1,hint,SIP/loicvoip1_1&IAX2/loicvoip1_1&SIP/loicvoip1_1_a1 This does not work: exten => *1,hint,SIP/bla1&SIP/bla2&SIP/bla3&SIP/bla4&SIP/bla9&SIP/bla5&SIP/bla6&SIP/b la7&SIP/loicvoip1_1&IAX2/loicvoip1_1&SIP/loicvoip1_1_a1 I tested on several asterisk 1.4 versions like 1.4.21*. Is this a bug or something like working as designed? Is there another possibility to monitor a bigger number of channels? Best regards, Loic Didelot -- Loïc DIDELOT MIXvoip S.a. Tel: +352 20 20 Fax: +352 20 90 [EMAIL PROTECTED] http://www.mixvoip.com ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users