RE: [Asterisk-Users] Dialling Hook Flash on Zaptel
I had some similar problems with the X100P and our ATA-2. I also couldn't ever get the Nortel to recognize the DTMF, or get Asterisk to recognize DTMF coming through the Nortel. I wish I could say that I figured out a really cool way to make it work, but instead I moved on and interconnected via PRIs. I did a little more testing here, I've found that from my Cisco 7940 dialing out to my mobile, I can dial DTMF tones and hear them on the mobile. I'm not sure if the Norstar is doing this, as no matter how long I press the button down for I only get a short beep of the DTMF tone on the mobile. Perhaps this means the Norstar can only pass along the tones but not actually interpret them, or maybe the DTMF tone length is too short for the Norstar. Either way, I've changed the station filter for this particular extension to allow a greater range of numbers to be dialled and will control it with the dial plans in Asterisk. I've also considered changing the interconnection method, unfortunately (although this may be a good thing) my system is only a baby CICS with a 4-port analog trunk module and a 4-port BRI module. To connect via the analog trunk would be really neat with a 4-port FXS digium card, but unfortunately this particular Nortel card is not a supervised card, so can't be setup in the Norstar for auto-answer (which was my main reason for installing the BRI card). Then in terms of connecting via BRI, I think it would probably be more effective in the long run to just replace the whole system with SIP handsets since there's only 7 extensions in use (although the cost of Cisco 7940's would quickly add up, but I wouldn't want to use anything less even though they may be cheaper, as these are fantastic phones and really worth it IMHO). Also apart from the handset replacement cost, I think it'll be somewhat hard to beat the near bullet-proof performance the current CICS system has given us. The only outages its ever had was to install the BRI card and the odd power outage that was long enough to fully drain the UPS batteries. Cheers, Chris Lee ___ 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] Dialling Hook Flash on Zaptel
Hi, I'm trying to get my X100P to Dial the following sequence to gain access to speed dial numbers on my Norstar PBX that the X100 is connected to... [FLASH] [*] [0] [22] (where 22 is the speed dial number) But so far I've had no luck, with the following extension:- exten = 922,1,Flash(${DIALOUTANALOG}) exten = 922,2,Dial(${DIALOUTANALOG}/*022) exten = 922,3,Congestion exten = 922,4,Hangup Looking at the console, Asterisk doesn't get past the Flash command, telling me that it's not a valid Zap channel. The call is being made from my Cisco SIP phone through my local Asterisk Box, then via an IAX2 channel to the site with the Asterisk box+X100P connected to the Norstar. CONSOLE LOG -- Accepting AUTHENTICATED call from 192.168.1.1, requested format = 2, actual format = 2 -- Executing Flash([EMAIL PROTECTED]/2, Zap/1) in new stack Feb 3 22:37:19 WARNING[1146896]: app_flash.c:85 flash_exec: [EMAIL PROTECTED]/2 is not a Zap channel == Spawn extension (local, 922, 1) exited non-zero on '[EMAIL PROTECTED]/2' -- Hungup '[EMAIL PROTECTED]/2' CONSOLE LOG Is there some other way to dial a flash with the dial command? I notice there's a W to insert a wait sequence. Thanks, Chris Lee ___ 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] Dialling Hook Flash on Zaptel
At 10:59 PM +1000 2/3/04, Christopher Lee wrote: Hi, I'm trying to get my X100P to Dial the following sequence to gain access to speed dial numbers on my Norstar PBX that the X100 is connected to... [FLASH] [*] [0] [22] (where 22 is the speed dial number) But so far I've had no luck, with the following extension:- exten = 922,1,Flash(${DIALOUTANALOG}) exten = 922,2,Dial(${DIALOUTANALOG}/*022) exten = 922,3,Congestion exten = 922,4,Hangup Looking at the console, Asterisk doesn't get past the Flash command, telling me that it's not a valid Zap channel. The call is being made from my Cisco SIP phone through my local Asterisk Box, then via an IAX2 channel to the site with the Asterisk box+X100P connected to the Norstar. CONSOLE LOG -- Accepting AUTHENTICATED call from 192.168.1.1, requested format = 2, actual format = 2 -- Executing Flash([EMAIL PROTECTED]/2, Zap/1) in new stack Feb 3 22:37:19 WARNING[1146896]: app_flash.c:85 flash_exec: [EMAIL PROTECTED]/2 is not a Zap channel == Spawn extension (local, 922, 1) exited non-zero on '[EMAIL PROTECTED]/2' -- Hungup '[EMAIL PROTECTED]/2' CONSOLE LOG Is there some other way to dial a flash with the dial command? I notice there's a W to insert a wait sequence. Thanks, Chris Lee Just for fun, try this: exten = 922,1,Flash(Zap/1) exten = 922,2,Dial(Zap/1/*022) exten = 922,3,Congestion exten = 922,4,Hangup and see if it gives the same error. I'd be interested to see if there's perhaps some strange variable swapping going on. JT ___ 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] Dialling Hook Flash on Zaptel
On Tue, 2004-02-03 at 06:59, Christopher Lee wrote: Hi, I'm trying to get my X100P to Dial the following sequence to gain access to speed dial numbers on my Norstar PBX that the X100 is connected to... [FLASH] [*] [0] [22] (where 22 is the speed dial number) But so far I've had no luck, with the following extension:- exten = 922,1,Flash(${DIALOUTANALOG}) exten = 922,2,Dial(${DIALOUTANALOG}/*022) exten = 922,3,Congestion exten = 922,4,Hangup Looking at the console, Asterisk doesn't get past the Flash command, telling me that it's not a valid Zap channel. The call is being made from my Cisco SIP phone through my local Asterisk Box, then via an IAX2 channel to the site with the Asterisk box+X100P connected to the Norstar. CONSOLE LOG -- Accepting AUTHENTICATED call from 192.168.1.1, requested format = 2, actual format = 2 -- Executing Flash([EMAIL PROTECTED]/2, Zap/1) in new stack Feb 3 22:37:19 WARNING[1146896]: app_flash.c:85 flash_exec: [EMAIL PROTECTED]/2 is not a Zap channel == Spawn extension (local, 922, 1) exited non-zero on '[EMAIL PROTECTED]/2' -- Hungup '[EMAIL PROTECTED]/2' CONSOLE LOG Is there some other way to dial a flash with the dial command? I notice there's a W to insert a wait sequence. The problem with your example is that a flash must be executed after you have a channel since otherwise there is no offhook event to then be toggled by the on then off hook, you just would be off hook. Second, look at the documentation for flash and you will see that the flash command doesn't accept a argument. As to how to actually accomplish what you want, I don't know how. -- 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] Dialling Hook Flash on Zaptel
Steven Critchfield wrote: On Tue, 2004-02-03 at 06:59, Christopher Lee wrote: Hi, I'm trying to get my X100P to Dial the following sequence to gain access to speed dial numbers on my Norstar PBX that the X100 is connected to... [snip] The problem with your example is that a flash must be executed after you have a channel since otherwise there is no offhook event to then be toggled by the on then off hook, you just would be off hook. Second, look at the documentation for flash and you will see that the flash command doesn't accept a argument. As to how to actually accomplish what you want, I don't know how. since you're connecting an X100P to a Norstar PBX, maybe immediate mode would work? I'm not sure how well that would work with a SIP client like you were talking about... I had some similar problems with the X100P and our ATA-2. I also couldn't ever get the Nortel to recognize the DTMF, or get Asterisk to recognize DTMF coming through the Nortel. I wish I could say that I figured out a really cool way to make it work, but instead I moved on and interconnected via PRIs. How often do your speed dials change? If it's not very often, maybe you should recreate it in *. You could have an extension which sends you into a context that asks for the speed dial code. You could then key it in, and it would send you where you want to go. Not elegant, but it might be good enough. ___ 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] Dialling Hook Flash on Zaptel
On Tue, 2004-02-03 at 09:53, David Gomillion wrote: Steven Critchfield wrote: On Tue, 2004-02-03 at 06:59, Christopher Lee wrote: Hi, I'm trying to get my X100P to Dial the following sequence to gain access to speed dial numbers on my Norstar PBX that the X100 is connected to... [snip] The problem with your example is that a flash must be executed after you have a channel since otherwise there is no offhook event to then be toggled by the on then off hook, you just would be off hook. Second, look at the documentation for flash and you will see that the flash command doesn't accept a argument. As to how to actually accomplish what you want, I don't know how. since you're connecting an X100P to a Norstar PBX, maybe immediate mode would work? I'm not sure how well that would work with a SIP client like you were talking about... Not to flame, you but you really need to work on those critical reading skills. The example message that was quoted till you trimmed it had IAX2 as the VoIP not SIP. Next, Immediate mode only is of use when you have dialed, or been dialed. We are still in the state of not having dialed and therefore selected a outbound line. How often do your speed dials change? If it's not very often, maybe you should recreate it in *. You could have an extension which sends you into a context that asks for the speed dial code. You could then key it in, and it would send you where you want to go. Not elegant, but it might be good enough. This is probably the only useful suggestion, and most likely the only one to work. -- 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] Dialling Hook Flash on Zaptel
Steven Critchfield wrote: On Tue, 2004-02-03 at 09:53, David Gomillion wrote: Steven Critchfield wrote: On Tue, 2004-02-03 at 06:59, Christopher Lee wrote: Hi, I'm trying to get my X100P to Dial the following sequence to gain access to speed dial numbers on my Norstar PBX that the X100 is connected to... [snip] The problem with your example is that a flash must be executed after you have a channel since otherwise there is no offhook event to then be toggled by the on then off hook, you just would be off hook. Second, look at the documentation for flash and you will see that the flash command doesn't accept a argument. As to how to actually accomplish what you want, I don't know how. since you're connecting an X100P to a Norstar PBX, maybe immediate mode would work? I'm not sure how well that would work with a SIP client like you were talking about... Not to flame, you but you really need to work on those critical reading skills. The example message that was quoted till you trimmed it had IAX2 as the VoIP not SIP. Does it matter? It's VoIP. The concept is the same: I didn't know if it could be done in VoIP, and I was reading a few messages about SIP. Forgive me, this will be my last message to the user's list. Next, Immediate mode only is of use when you have dialed, or been dialed. We are still in the state of not having dialed and therefore selected a outbound line. what about something like this? NOTE: THIS IS NOT WORKING CODE. It is an idea, a concept. If you want to try it to make it work, then you will have to build on this. exten = _*XX,1,Dial(Zap/1/1) (dials a 1 on the outgoing zap interface, probably needs a short timeout) exten = _*XX,2,Flash() exten = _*XX,3,Dial(Zap/1/${EXTEN}) The flash is probably on the wrong side, as I look at it more closely. This will probably send the flash to your VoIP client. But maybe you could look into scripting with AGI. How often do your speed dials change? If it's not very often, maybe you should recreate it in *. You could have an extension which sends you into a context that asks for the speed dial code. You could then key it in, and it would send you where you want to go. Not elegant, but it might be good enough. This is probably the only useful suggestion, and most likely the only one to work. And with that, I bid the fair Asterisk-User's list a farewell, at least for posting. I will now become one of the countless other leaches who give nothing back to the community. It was good to get help, and I tried to help others out, but I have a lot better things to do than spend my time helping others only to get flamed every time I turn around. You need to remember that we're all volunteers. I will only take it in the teeth so many times before I say goodbye. Go ahead and rip me a new one. Have fun. Rant, rave, call me stupid. Tell me I have no value, and that I contribute nothing. The more you say it, the more accurate it becomes. ___ 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] Dialling Hook Flash on Zaptel
On Tue, 2004-02-03 at 11:33, David Gomillion wrote: Steven Critchfield wrote: On Tue, 2004-02-03 at 09:53, David Gomillion wrote: Steven Critchfield wrote: On Tue, 2004-02-03 at 06:59, Christopher Lee wrote: Hi, I'm trying to get my X100P to Dial the following sequence to gain access to speed dial numbers on my Norstar PBX that the X100 is connected to... [snip] The problem with your example is that a flash must be executed after you have a channel since otherwise there is no offhook event to then be toggled by the on then off hook, you just would be off hook. Second, look at the documentation for flash and you will see that the flash command doesn't accept a argument. As to how to actually accomplish what you want, I don't know how. since you're connecting an X100P to a Norstar PBX, maybe immediate mode would work? I'm not sure how well that would work with a SIP client like you were talking about... Not to flame, you but you really need to work on those critical reading skills. The example message that was quoted till you trimmed it had IAX2 as the VoIP not SIP. Does it matter? It's VoIP. The concept is the same: I didn't know if it could be done in VoIP, and I was reading a few messages about SIP. Forgive me, this will be my last message to the user's list. It probably doesn't matter other than keeping the answer from being muddied by technologies not involved. Flash most likely will not work in VoIP as the kind of information sent to a switch via a flash and then some other interaction is usually sent OOB in VoIP. Next, Immediate mode only is of use when you have dialed, or been dialed. We are still in the state of not having dialed and therefore selected a outbound line. what about something like this? NOTE: THIS IS NOT WORKING CODE. It is an idea, a concept. If you want to try it to make it work, then you will have to build on this. exten = _*XX,1,Dial(Zap/1/1) (dials a 1 on the outgoing zap interface, probably needs a short timeout) exten = _*XX,2,Flash() exten = _*XX,3,Dial(Zap/1/${EXTEN}) The flash is probably on the wrong side, as I look at it more closely. This will probably send the flash to your VoIP client. But maybe you could look into scripting with AGI. When dial times out in priority 1, you loose the zap channel. Interesting enough, you may have hit on the correct idea though. The dialing of the line maybe without any digits will pick up the line. Time it out, and then do a dial out again this time with real digits. This would simulate picking up the line, flashing(implied through the hangup and then new dial) and then dialing. How often do your speed dials change? If it's not very often, maybe you should recreate it in *. You could have an extension which sends you into a context that asks for the speed dial code. You could then key it in, and it would send you where you want to go. Not elegant, but it might be good enough. This is probably the only useful suggestion, and most likely the only one to work. And with that, I bid the fair Asterisk-User's list a farewell, at least for posting. I will now become one of the countless other leaches who give nothing back to the community. It was good to get help, and I tried to help others out, but I have a lot better things to do than spend my time helping others only to get flamed every time I turn around. You need to remember that we're all volunteers. I will only take it in the teeth so many times before I say goodbye. Go ahead and rip me a new one. Have fun. Rant, rave, call me stupid. Tell me I have no value, and that I contribute nothing. The more you say it, the more accurate it becomes. Dude, you need to take your ego out of the equation here. Like any other human interaction, if you allow it to hit you in the teeth, you only loose teeth. As you should notice here, when you distill the problem and people continue to interact, a solution can usually be found. The solution above is mostly you, and I have just helped simplify it to a point it should work. Please continue to post. Eventually we all learn, and as you learn, you will probably flip to the other side of the interaction you are complaining about. -- 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] Dialling Hook Flash on Zaptel
On Tue, 3 Feb 2004 11:33:24 -0600, David Gomillion wrote Steven Critchfield wrote: On Tue, 2004-02-03 at 09:53, David Gomillion wrote: Steven Critchfield wrote: On Tue, 2004-02-03 at 06:59, Christopher Lee wrote: [flames, non-flames etc. snipped] what about something like this? NOTE: THIS IS NOT WORKING CODE. It is an idea, a concept. If you want to try it to make it work, then you will have to build on this. exten = _*XX,1,Dial(Zap/1/1) (dials a 1 on the outgoing zap interface, probably needs a short timeout) exten = _*XX,2,Flash() exten = _*XX,3,Dial(Zap/1/${EXTEN}) The flash is probably on the wrong side, as I look at it more closely. This will probably send the flash to your VoIP client. But maybe you could look into scripting with AGI. I'm not sure it'll work as Dial doesn't return to the dialplan. It seems like the only clean method to do this would be to extend chan_zap to include flash as an extra digit (a'la W). Would a copy-paste from app_flash do? I have no zaptel devices to begin with so I can't really check. Or maybe some voodoo with transfers, local channels etc. would work? And with that, I bid the fair Asterisk-User's list a farewell, at least for posting. I will now become one of the countless other leaches who give nothing back to the community. It was good to get help, and I tried to help others out, but I have a lot better things to do than spend my time helping others only to get flamed every time I turn around. You need to remember that we're all volunteers. I will only take it in the teeth so many times before I say goodbye. Go ahead and rip me a new one. Have fun. Rant, rave, call me stupid. Tell me I have no value, and that I contribute nothing. The more you say it, the more accurate it becomes. Hey, why take things personally? I think Steven is known for his inflammatory posts. Sure it isn't nice to be flamed openly and IMHO Steven is doing a fine job scaring people away from the list (sometimes just *too* fine), but we (=the newbies, like me) all end up learning something. In this way I find his posts doing more good than harm. From a third-person perspective (not being flamed by him - yet?) I'd describe his posts somewhere between informative and funny with an occasional flamebait (yes, I do hang out on /.) That being said, I'm mostly a lurker myself. Regards and don't feel too offended :) Greg ___ 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] Dialling Hook Flash on Zaptel
Just for fun, try this: exten = 922,1,Flash(Zap/1) exten = 922,2,Dial(Zap/1/*022) exten = 922,3,Congestion exten = 922,4,Hangup and see if it gives the same error. I'd be interested to see if there's perhaps some strange variable swapping going on. I gave that a try, but the same problem on the console that this is not a Zap channel. Also tried David's Gomillion's approach with a dial then flash, but still the same problem about not being a zap channel. And indeed, flash doesn't accept an argument so there's not much point in me placing it there, I was just trying out a non-working example/food for thought that was posted previously... http://www.mail-archive.com/[EMAIL PROTECTED]/msg23426.html I've been toying with the extension a little more in the hope of perhaps doing a pseudo flash as per David's dial then flash suggestion but tweaked as follows:- exten = 922,1,Dial(Zap/1/*022,1) exten = 922,2,Dial(Zap/1/*022) exten = 922,3,Congestion exten = 922,4,Hangup (I've tried a few variations on the above, including a 1 in place of the *, and first line dialing 0 instead of the full command) Indeed, Asterisk picks up the line, dials (hopefully correctly) *022 then hangs up after 1000ms. Then hopefully hammers the line open again so the Norstar sees it as a flash and continues to dial *022 again. Unfortunately it doesn't work, Asterisk seems to be doing it correctly, but the Nortel can be a cantankerous beast with it's analog ports. I just get the rapid congestion tone from it that somethings not right with the way I dialled. As per the further suggestions, my speed dials rarely ever change, and I think I will relent and take this approach... basically I was wanting to not have to change the restriction filters on the Nortel for that analog port (since the speed dials override restrictions), but I think I'll fine grain the dialing restrictions through my Asterisk dial plans, should be the most pain free approach. The other thing was I just wanted to learn a little more about what can be done on the X100P, as there's many other commands that can be sent to the Norstar that are prefixed with a flash, although I doubt I'll really ever need to use any of them. Thanks very much for all the suggestions though, much appreciated. And David I hope you continue on the list, if only as a reader, as your input and contributions are definitely appreciated. Cheers, Chris Lee ___ 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