I have several older telephones with rotary dials that I would like to use a working museum pieces. I have everything working well except for those hard-coded codes that start with *. In the traditional phone world, dialing 11 in place of * works fine, ie, someone could dial 1172 in place of *72 and so forth. I'm thinking that a simple entry in extensions.conf ought to do the trick, but I get nowhere using various configurations. One such is: exten => 1172,Goto(default,*72,1) But, obviously, that didn't do the trick. A quick search of the archives didn't turn up anything obvious. So, I have to ask: Does anyone know if (and how) this can be done? Thank you.
> I'm thinking that a simple entry in extensions.conf > ought to do the trick, but I get nowhere using various > configurations. > > One such is: > exten => 1172,Goto(default,*72,1) > But, obviously, that didn't do the trick.*sighs* Yeah, that won't work.. which is a shame.. this goes back to the whole debate of "should CLASS service codes be implemented in the dial plan or the channel driver?"
Hmmm... Well, I did a "search and replace" on chan_zap.c, and got most of it converted to 11XX instead of *XX, but the call pickup code still eludes me. Is it set somewhere else?> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Paul Crick > Sent: Monday, May 24, 2004 9:58 PM > To: asterisk-users@lists.digium.com > Subject: RE: [Asterisk-Users] 11 instead of Star > > > I'm thinking that a simple entry in extensions.conf ought to do the > > trick, but I get nowhere using various configurations. > > > > One such is: > > exten => 1172,Goto(default,*72,1) > > But, obviously, that didn't do the trick. > > *sighs* Yeah, that won't work.. which is a shame.. this goes > back to the whole debate of "should CLASS service codes be > implemented in the dial plan or the channel driver?" > > From memory and reading the mailing list for a while now, I > think Mark's dead against having these features in the dial > plan, but I can't remember why. > > All the CLASS features are currently hard coded in the Zap > channel driver so you could probably hack that around a bit > to solve your problem, and a patch to implement 1172 = *72 > etc for all the codes would probably be gratefully received > in to CVS for the purposes of making things nice and complete. > > I think the way it was going to go was a flag which would > allow you to disable all channel driver features like this > and rely on the dial plan to implement the features. > Searching back through the mailing list will shed some light > on the pros, cons and the ongoing debate, but I think for now > you're going to have to get involved with changing channel > driver source to do what you want to do. > > Cheers > Paul > > _______________________________________________ > 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 > > >
Greg Blakely wrote:> Well, I did a "search and replace" on chan_zap.c, and got most of it > converted to 11XX instead of *XX, but the call pickup code still eludes > me. > Is it set somewhere else?res/res_parking.c F
OK. Well, here are a couple of newbie-type thoughts on the whole Vertical Service Code (CLASS) hard-codings. + First: let's get some diffs done to allow either 11 or * to be used as the leading digit(s). This is industry standard. So, if we're hard-coding these assignments in an effort to be CLASS compliant, let's be fully compliant. I am NOT a coder, so anything I do will be really ugly, but I will do SOMETHING just to arouse horror and guffaws, and to create a starting point. + Second: *8 just ain't gonna work for call pickup unless we want to blow away the usefulness of any *8X CLASS codes, unless (as is probably true) I am missing something. So, it would seem that a different code would be desirable -- maybe one of the locally-assignable *94 - *99? + It's just as well that *8# isn't used for call pickup anymore. The "#" on the end really SHOULD mean "end of dialing," and not have any other significance. Or has this already been discussed to death?
> [...] > > I think the way it was going to go was a flag which would > allow you to > > disable all channel driver features like this and rely on the dial > > plan to implement the features. > > This is very much my preferred solution. If there is still > some bizarre obligation to support alien phone standards in > the channel drivers, we should have the option of disabling > this undesired behaviour. >Or... What about having something similar to the tone plans in indications.conf that would allow someone to either choose one of several canned Vertical Service Code plans or roll their own?
> Or... What about having something similar to the tone plans in > indications.conf that would allow someone to either choose one of > several canned Vertical Service Code plans or roll their own?A+ YES BABY PLEASE THAT WOULD KICK SOME SERIOUS ASS Hardcoded values = teh suck. Full stop. End of conversation. Regards, Andrew