VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
asterisk at solutionen... Guest
|
Posted: Fri Jun 19, 2015 2:15 pm Post subject: [asterisk-users] Run script action when Dahdi phone goes off |
|
|
Hi,
Long story short - I have an ancient Britsh Telecom phone attached to my
Asterisk PBX via Dahdi. It works beautifully, receiving calls, and the
call quality is excellent. However, dialling out is impossible, as
Asterisk consistently mis-reads the number of pulses the dial sends (it
could be a squiffy dial, I'm not sure). Not to mention the fact that, in
today's modern "want it now" age, waiting up to 3 seconds between digits
whilst the rotary dial does its thing gets old very quickly...
As with all Dahdi connected phones, when I lift the handset, I
immediately see:
-- Starting simple switch on 'DAHDI/x-y'
Can I run a script (either in extensions.conf, or ael, or whatever) when
that is detected? If so, I will create a small app which allows me to
type a telephone number on my computer, I can then lift the phone & the
script will go find the number I typed, and dial it for me.
Thanks in advance!
Ade.
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
rmudgett at digium.com Guest
|
Posted: Fri Jun 19, 2015 2:46 pm Post subject: [asterisk-users] Run script action when Dahdi phone goes off |
|
|
On Fri, Jun 19, 2015 at 2:14 PM, asterisk <asterisk@solutionengineers.com (asterisk@solutionengineers.com)> wrote:
Quote: |
Hi,
Long story short - I have an ancient Britsh Telecom phone attached to my Asterisk PBX via Dahdi. It works beautifully, receiving calls, and the call quality is excellent. However, dialling out is impossible, as Asterisk consistently mis-reads the number of pulses the dial sends (it could be a squiffy dial, I'm not sure). Not to mention the fact that, in today's modern "want it now" age, waiting up to 3 seconds between digits whilst the rotary dial does its thing gets old very quickly...
As with all Dahdi connected phones, when I lift the handset, I immediately see:
 -- Starting simple switch on 'DAHDI/x-y'
Can I run a script (either in extensions.conf, or ael, or whatever) when that is detected? If so, I will create a small app which allows me to type a telephone number on my computer, I can then lift the phone & the script will go find the number I typed, and dial it for me.
|
Look at this option in the chan_dahdi.conf.sample file:
; Specify whether the channel should be answered immediately or if the simple
; switch should provide dialtone, read digits, etc.
; Note: If immediate=yes the dialplan execution will always start at extension
; 's' priority 1 regardless of the dialed number!
;
;immediate=yes
Richard |
|
Back to top |
|
|
asterisk at solutionen... Guest
|
Posted: Fri Jun 19, 2015 3:07 pm Post subject: [asterisk-users] Run script action when Dahdi phone goes off |
|
|
On 19/06/2015 20:45, Richard Mudgett wrote:
Quote: |
On Fri, Jun 19, 2015 at 2:14 PM, asterisk <asterisk@solutionengineers.com (asterisk@solutionengineers.com)> wrote:
Quote: |
-- Starting simple switch on 'DAHDI/x-y'
Can I run a script (either in extensions.conf, or ael, or whatever) when that is detected? If so, I will create a small app which allows me to type a telephone number on my computer, I can then lift the phone & the script will go find the number I typed, and dial it for me.
|
Look at this option in the chan_dahdi.conf.sample file:
; Specify whether the channel should be answered immediately or if the simple
; switch should provide dialtone, read digits, etc.
; Note: If immediate=yes the dialplan execution will always start at extension
; 's' priority 1 regardless of the dialed number!
;
;immediate=yes
Richard
|
Oops, didn't spot that. That's perfect, thanks Richard!
Cheers,
Ade. |
|
Back to top |
|
|
asterisk_list at earth... Guest
|
Posted: Mon Jun 22, 2015 3:38 am Post subject: [asterisk-users] Run script action when Dahdi phone goes off |
|
|
On Friday 19 Jun 2015, asterisk wrote:
Quote: | Hi,
Long story short - I have an ancient Britsh Telecom phone attached to my
Asterisk PBX via Dahdi. It works beautifully, receiving calls, and the
call quality is excellent. However, dialling out is impossible, as
Asterisk consistently mis-reads the number of pulses the dial sends (it
could be a squiffy dial, I'm not sure). Not to mention the fact that, in
today's modern "want it now" age, waiting up to 3 seconds between digits
whilst the rotary dial does its thing gets old very quickly...
|
I have a GPO 746 working beautifully on my home machine, with one of the cheap
TDM410P clones you can buy from eBay (it's hardly a production environment).
Your problem most likely is indeed the dial mechanism (you could prove it by
seeing how your card behaves with a push-button, pulse-dialling phone).
These dials are built to industrial standards. They respond well to field-
stripping and re-lubrication, and there are guides on the Internet explaining
how to do this (including the old GPO documentation).
My own solution to the slow dialling issue was just to put some entries with
short extension numbers in the relevant context of my extensions.conf linked
to my most frequently-called destinations; so, for example, I can call my
parents by dialling their old 4-digit number from back in the clicky-clicky
exchange days.
Quote: | Can I run a script (either in extensions.conf, or ael, or whatever) when
that is detected? If so, I will create a small app which allows me to
type a telephone number on my computer, I can then lift the phone & the
script will go find the number I typed, and dial it for me.
|
You can; but personally, I'd just use a CGI script to generate a call file.
Tthe script does its thing, and my phone rings; then when I answer it, the
other person's phone starts ringing and I hear ringing-out tones.
Kontact (and probably other PIM software) can even run a command when you
click onto a phone number, and embed the clicked-on number into the command;
so I used this facility to do a wget on my make_call.cgi script.
--
AJS
Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .
--
_____________________________________________________________________
-- 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 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|