virendra bhati
2012-Aug-03 04:27 UTC
[asterisk-users] Asterisk realtime don't support 'n' as extension's next priority
Hi Team, I want to used *'n*' as priority in asterisk realtime but asterisk don't support n as next priority.... I am using Asterisk 1.4.41 -- Thanks and regards Virendra Bhati +91-9718300881 Asterisk Developer E-mail-: virbhati at gmail.com Skype id:- virbhati2 New Delhi(India) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120803/3f31b22e/attachment.htm>
Leandro Dardini
2012-Aug-03 06:20 UTC
[asterisk-users] Asterisk realtime don't support 'n' as extension's next priority
It is reasonable 'n' is not usable as priority number. How can asterisk know the second priority if all other priority have 'n' as priority number? In a relational database there is no 'sequential read'. In other words, you need to assign the priority to all entries. Leandro Il giorno 03/ago/2012 06:27, "virendra bhati" <virbhati at gmail.com> ha scritto:> Hi Team, > > I want to used *'n*' as priority in asterisk realtime but asterisk don't > support n as next priority.... > > I am using Asterisk 1.4.41 > > -- > > Thanks and regards > > Virendra Bhati > +91-9718300881 > Asterisk Developer > E-mail-: virbhati at gmail.com > Skype id:- virbhati2 > New Delhi(India) > > > -- > _____________________________________________________________________ > -- 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120803/351e3ded/attachment.htm>
A J Stiles
2012-Aug-03 10:01 UTC
[asterisk-users] Asterisk realtime don't support 'n' as extension's next priority
On Friday 03 August 2012, virendra bhati wrote:> Hi Team, > > I want to used *'n*' as priority in asterisk realtime but asterisk don't > support n as next priority.... > > I am using Asterisk 1.4.41Well, what you are wanting would be mathematically impossible! A simple text file is read sequentially, so you can infer priorities from the position of lines within the file. A database is truly random-access, and so doesn't have any such natural ordering. You have to indicate the sequence explicitly within a field in each record, and refer to this with an ORDER BY clause. -- AJS Answers come *after* questions.
Bryant Zimmerman
2012-Aug-03 12:53 UTC
[asterisk-users] Asterisk realtime don't support 'n' as extension's next priority
Leandro I have to disagree reasonable designers would have done a better job with this one. But we developers are not always so reasonable. The issue is many developers when pushing to put features in they don't put on their designers hat and think out side the box first.Heaven knows I have been guilty of this one over the years and had to go back and refactor. It is not so reasonable to think that this limitation has to exist developers have been putting order by fields in db driven systems for years. What of the guy who want's to use n(target) or 4(target) (I know this may have not been an option when RT was first done now it is) so they can add specialized jumping code. If I had been designing the Realtime (today) I would have added a field for the priority and made it a full alpha / numeric and added an order by field. As it sits now how do you do n, i, h or tags ect.... It kinda sucks and limits the Realtime. Not to bash on the developer who did this I get that we don't always think out side the box all the time nor was some of this ability available when the RT was written. but know it does so what do we do. Unfortunately I am not a ansi C guy or I could probably fix it . Thanks Bryant Zimmerman (ZK Tech Inc.) ---------------------------------------- From: "Leandro Dardini" <ldardini at gmail.com> Sent: Friday, August 03, 2012 2:18 AM To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Subject: Re: [asterisk-users] Asterisk realtime don't support 'n' as extension's next priority It is reasonable 'n' is not usable as priority number. How can asterisk know the second priority if all other priority have 'n' as priority number? In a relational database there is no 'sequential read'. In other words, you need to assign the priority to all entries. Leandro Il giorno 03/ago/2012 06:27, "virendra bhati" <virbhati at gmail.com> ha scritto: Hi Team, I want to used 'n' as priority in asterisk realtime but asterisk don't support n as next priority.... I am using Asterisk 1.4.41 -- Thanks and regards Virendra Bhati +91-9718300881 Asterisk Developer E-mail-: virbhati at gmail.com Skype id:- virbhati2 New Delhi(India) -- _____________________________________________________________________ -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120803/ae21792b/attachment-0001.htm>
C. Savinovich
2012-Aug-03 14:54 UTC
[asterisk-users] Asterisk realtime don't support 'n' as extension's next priority
<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div><br></div><div>>>><span><span style="font-family: Arial,Helvetica,sans-serif; font-size: 10pt; clear: both;" mce_style="font-family:Arial,Helvetica,sans-serif;font-size:10pt">Not to bash on the developer who did this I get that we don't always think out side the box all the time</span></span><br></div><div><br></div><div>You can bash others all you want for not thinking outside the box, but where is your effort to think outside the box yourself?. All you have to do, (that's what I did, and took me like 4 hours) is write a program that parses through your dialplan code and translates the n's into actual numbers, including the translation of the gotos into line numbers. Sucks? yes. Is the realtime limitation going to stop me from doing what I want? no way.<br></div><div><br></div><div>Christian Savinovich</div><div><strong><em>VoIP & Telephony Consultant</em></strong></div><div>646-982-3572</div><div> </div><div><br><br></div> <blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;"> <div id="wmQuoteWrapper"> -------- Original Message --------<br> Subject: Re: [asterisk-users] Asterisk realtime don't support 'n' as<br> extension's next priority<br> From: Leandro Dardini <<a href="mailto:ldardini@gmail.com">ldardini@gmail.com</a>><br> Date: Fri, August 03, 2012 10:11 am<br> To: <a href="mailto:bryantz@zktech.com">bryantz@zktech.com</a>, Asterisk Users Mailing List - Non-Commercial<br> Discussion <<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br> <br> I am kissing every inch of land where each one of the asterisk's developer is putting his feet. In the last 10 years I have worked thanks to the availability of the asterisk code. Most of my income was possible just thanks to asterisk, so I am pretty biased when trying to evaluate if the asterisk code is good or not. You can understand if I "love" the way asterisk has been coded.<div> Nevertheless things can be better and they can be better thanks to you. Asterisk is open source and Mark is a very kind person when you submit patches, so put your ideas in new code and send to him. If you don't know how to code, hire some developer and have him to code your view of a better RT code. If it will be accepted by the core developer, all us will be happy. if it will not accepted, you'll be happy with you own personal branch. I run for a small period of time my personal asterisk tree because the italian telephony system is flawed and clients want services not suitable for the general asterisk audience, so there is nothing to worry to have your personal asterisk code.</div> <div><br></div><div>Leandro</div><div><br></div><div>PS</div><div>I think your idea of extension RT can be accomplished with some triggers and replacing the extension table with a view on your own n-enabled extension table<br> <br><div class="gmail_quote">2012/8/3 Bryant Zimmerman <span dir="ltr"><<a href="mailto:BryantZ@zktech.com" target="_blank">BryantZ@zktech.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <span style="font-family:Arial,Helvetica,sans-serif;font-size:10pt">Leandro<br> <br> I have to disagree reasonable designers would have done a better job with this one. But we developers are not always so reasonable. The issue is many developers when pushing to put features in they don't put on their designers hat and think out side the box first.Heaven knows I have been guilty of this one over the years and had to go back and refactor. It is not so reasonable to think that this limitation has to exist developers have been putting order by fields in db driven systems for years. What of the guy who want's to use n(target) or 4(target) (I know this may have not been an option when RT was first done now it is) so they can add specialized jumping code. If I had been designing the Realtime (today) I would have added a field for the priority and made it a full alpha / numeric and added an order by field. As it sits now how do you do n, i, h or tags ect.... It kinda sucks and limits the Realtime. Not to bash on the developer who did this I get that we don't always think out side the box all the time nor was some of this ability available when the RT was written. but know it does so what do we do. Unfortunately I am not a ansi C guy or I could probably fix it . <br> <br> <div>Thanks<br> <br> Bryant Zimmerman (ZK Tech Inc.)<br> <br> <span style="font-family:tahoma,arial,sans-serif;font-size:10pt"><hr align="center" size="2" width="100%"> <b>From</b>: "Leandro Dardini" <<a href="mailto:ldardini@gmail.com" target="_blank">ldardini@gmail.com</a>><br> <b>Sent</b>: Friday, August 03, 2012 2:18 AM<br> <b>To</b>: "Asterisk Users Mailing List - Non-Commercial Discussion" <<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a>><br> <b>Subject</b>: Re: [asterisk-users] Asterisk realtime don't support 'n' as extension's next priority</span><br> <br> </div><div class="im"> <div>It is reasonable 'n' is not usable as priority number. How can asterisk know the second priority if all other priority have 'n' as priority number? In a relational database there is no 'sequential read'.</div> <div>In other words, you need to assign the priority to all entries. </div> <div>Leandro</div> </div><div class="gmail_quote"><div class="im">Il giorno 03/ago/2012 06:27, "virendra bhati" <<a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a>> ha scritto:<br type="attribution"> </div><blockquote class="gmail_quote" style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex"> <div dir="ltr">Hi Team,<br> <br> I want to used <b>'n</b>' as priority in asterisk realtime but asterisk don't support n as next priority....<div class="im"><br> <br> I am using Asterisk 1.4.41 <br clear="all"> <br></div><div class="im"> -- <br> <div dir="ltr"><br> Thanks and regards<br> <br> Virendra Bhati<br> <span style="color:#888888"><a target="_blank" value="+919718300881">+91-9718300881</a></span><br> Asterisk Developer<br> E-mail-: <a href="mailto:virbhati@gmail.com" target="_blank">virbhati@gmail.com</a><br> Skype id:- virbhati2<br> New Delhi(India)<br> </div> <br> </div></div> <br><div class="im"> --<br> _____________________________________________________________________<br> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br> New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br> <br> asterisk-users mailing list<br> To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br> </div></blockquote></div> <br></span> <br>--<br> _____________________________________________________________________<br> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br> New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br> <br> asterisk-users mailing list<br> To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div> <hr>--<br> _____________________________________________________________________<br> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br> New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br> <br> asterisk-users mailing list<br> To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a> </div> </blockquote></span></body></html>
C. Savinovich
2012-Aug-03 16:35 UTC
[asterisk-users] Asterisk realtime don't support 'n' as extension's next priority
<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div><br></div><div>AJ,</div><div><br></div><div> You don't use 'n's in your dialplan?, you number it yourself? man, what if you have a 300 line dialplan and then you decide to insert a new line in the middle?<br></div><div><br></div><div>Christian Savinovich</div><div><strong><em>VoIP & Telephony Consultant</em></strong></div><div>646-982-3572</div><div> </div><div><br><br></div> <blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;"> <div id="wmQuoteWrapper"> -------- Original Message --------<br> Subject: Re: [asterisk-users] Asterisk realtime don't support 'n' as<br> extension's next priority<br> From: A J Stiles <<a href="mailto:asterisk_list@earthshod.co.uk">asterisk_list@earthshod.co.uk</a>><br> Date: Fri, August 03, 2012 11:45 am<br> To: "Asterisk Users Mailing List - Non-Commercial Discussion"<br> <<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br> <br> On Friday 03 August 2012, C. Savinovich wrote:<br>> >>>Not to bash on the developer who did this I get that we don't always<br> > >>>think out side the box all the time<br> > <br> > You can bash others all you want for not thinking outside the box, but<br> > where is your effort to think outside the box yourself?. All you have to<br> > do, (that's what I did, and took me like 4 hours) is write a program that<br> > parses through your dialplan code and translates the n's into actual<br> > numbers, including the translation of the gotos into line numbers. Sucks?<br> > yes. Is the realtime limitation going to stop me from doing what I want?<br> > no way.<br><br> That is the sort of thing that might actually be worth submitting upstream. <br> There must be loads of dialplans out there that use "same", "n" and labels all <br> over the place. The only reason mine don't, is because I've been using <br> Asterisk since before these features were introduced and I got used to the old <br> ways.<br> <br> -- <br> AJS<br> <br> Answers come *after* questions.<br> <br> --<br> _____________________________________________________________________<br> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br> New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br> <br> asterisk-users mailing list<br> To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br> </div> </blockquote></span></body></html>
C. Savinovich
2012-Aug-03 18:58 UTC
[asterisk-users] Asterisk realtime don't support 'n' as extension's next priority
<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div><br></div><div>Basic?... no man, I am kid!<br></div><div><br></div><div>Christian Savinovich</div><div><strong><em>VoIP & Telephony Consultant</em></strong></div><div>646-982-3572</div><div> </div><div><br><br></div> <blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;"> <div id="wmQuoteWrapper"> -------- Original Message --------<br> Subject: Re: [asterisk-users] Asterisk realtime don't support 'n' as<br> extension's next priority<br> From: "Raj Mathur (राज माथुर)" <<a href="mailto:raju@linux-delhi.org">raju@linux-delhi.org</a>><br> Date: Fri, August 03, 2012 2:21 pm<br> To: <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br> <br> On Friday 03 Aug 2012, C. Savinovich wrote:<br>> You don't use 'n's in your dialplan?, you number it yourself?<br> > man, what if you have a 300 line dialplan and then you decide to<br> > insert a new line in the middle?<br><br> If you ever used BASIC you'd remember the trick is to increment line <br> numbers (priorities) by 10. I presume a dialplan would work fine even <br> if the priorities aren't sequential, as long as they're increasing <br> monotonically.<br> <br> Could someone confirm?<br> <br> Having said that, I use n with abandon.<br> <br> Regards,<br> <br> -- Raj<br> -- <br> Raj Mathur || <a href="mailto:raju@kandalaya.org">raju@kandalaya.org</a> || GPG:<br> <a href="http://otheronepercent.blogspot.com">http://otheronepercent.blogspot.com</a> || <a href="http://kandalaya.org">http://kandalaya.org</a> || CC68<br> It is the mind that moves || <a href="http://schizoid.in">http://schizoid.in</a> || D17F<br> <br> --<br> _____________________________________________________________________<br> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a> --<br> New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br> <br> asterisk-users mailing list<br> To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br> </div> </blockquote></span></body></html>