[asterisk-users] [UK SPECIFIC] DAHDI and a OpenVox Card
Dunc
dunc at lemonia.org
Sun May 24 09:27:57 CDT 2009
Gordon Henderson wrote:
> On Sun, 24 May 2009, Dunc wrote:
>
>> extensions.conf
>> ---------------
>> And the same for extensions.conf......
>>
>> eddie asterisk # cat /etc/asterisk/extensions_dunc.conf
>> [from-sip]
>> exten => 07875123456,1,Dial(DAHDI/1/07875123456,20)
>>
>> [from-internal]
>> exten => 07875123456,1,Dial(DAHDI/1/07875123456,20)
>>
>> [from-pstn]
>> exten => s,1,Dial(DAHDI/2/,20)
>
> Start simpler:
>
> [from-pstn]
> exten => s,1,Answer()
> exten => s,n,Playback(demo-congrats)
> exten => s,n,Hangup()
>
>
> Same for the analogue phone.
>
> Gordon
Hi again Gordon,
As suggested.....
eddie ~ # cat !$
cat /etc/asterisk/extensions_dunc.conf
[from-internal]
exten => 123456,1,Answer()
exten => 123456,2,Playback(demo-congrats)
exten => 123456,3,Hangup()
[from-pstn]
exten => s,1,Answer()
exten => s,2,Playback(demo-congrats)
exten => s,3,Hangup()
If I dial 123456 on my analogue phone, then it's all cool.
*CLI> -- Starting simple switch on 'DAHDI/2-1'
-- Executing [123456 at from-internal:1] Answer("DAHDI/2-1", "") in
new stack
-- Executing [123456 at from-internal:2] Playback("DAHDI/2-1",
"demo-congrats") in new stack
-- <DAHDI/2-1> Playing 'demo-congrats.gsm' (language 'en')
-- Executing [123456 at from-internal:3] Hangup("DAHDI/2-1", "") in
new stack
== Spawn extension (from-internal, 123456, 3) exited non-zero on
'DAHDI/2-1'
-- Hungup 'DAHDI/2-1'
*CLI>
(I'm not actually sure that it should exit non-zero or not, but I
definitely got the recorded message and then it hung up)
So that's fine. There's just incoming to fix now.
When I dial in from external:-
*CLI> [May 24 15:16:56] NOTICE[3834]: chan_dahdi.c:8164
handle_init_event: Alarm cleared on channel 1
-- Starting simple switch on 'DAHDI/1-1'
[May 24 15:16:56] NOTICE[3889]: chan_dahdi.c:7505 ss_thread: Got event
18 (Ring Begin)...
[May 24 15:16:56] NOTICE[3889]: chan_dahdi.c:7505 ss_thread: Got event 2
(Ring/Answered)...
[May 24 15:16:57] NOTICE[3889]: chan_dahdi.c:7505 ss_thread: Got event 4
(Alarm)...
-- Executing [s at from-pstn:1] Answer("DAHDI/1-1", "") in new stack
-- Executing [s at from-pstn:2] Playback("DAHDI/1-1", "demo-congrats")
in new stack
-- <DAHDI/1-1> Playing 'demo-congrats.gsm' (language 'en')
-- Executing [s at from-pstn:3] Hangup("DAHDI/1-1", "") in new stack
== Spawn extension (from-pstn, s, 3) exited non-zero on 'DAHDI/1-1'
-- Hungup 'DAHDI/1-1'
*CLI>
Looks good, but my incoming call from mobile doesn't actually stop
ringing, I still end up at Virgin's voicemail.
I notice that the first line is an alarm clear event. So it looks like
my RED alarm is on right up until there's an incoming call. Other people
on this thread have said that RED means can't detect a voltage from the
line. So that's sort of making sense I think, as there'll definitely be
a voltage
I've just tried your suggestion from your other mail, where you were on
about using the cable from a phone. So I pinched the one from my
analogue phone (it's 2 wires.) The alarm cleared as soon as plugged it
in, and now everything is working :-)
So it WAS the cable all along! Who'd have thought.
I've just tried using the cable I was using between the card and the
wall on my phone, and it doesn't work. I can't believe I didn't think to
try swapping them before. Now I need to hunt down another one of those
cables then.
Thanks so much to everyone who has helped me with this, it's much
appreciated. Now I can get on with playing with asterisk.
Cheers,
Dunc
More information about the asterisk-users
mailing list