[Asterisk-bsd] Zaptel X100P card dropping calls

Kirk Davis Kirk.Davis at epsb.ca
Wed May 4 17:17:54 CDT 2005


Right not I don't have any SIP phones connected up to it.  I'm using the
default install from the ports and it should pick up an incoming POTS call
using the zaptel card and play the demo message. Zap->asterisk

Here is the context that answers the call from extensions.conf
[demo]
;
; We start with what to do when a call first comes in.
;
exten => s,1,Wait,1                     ; Wait a second, just for fun
exten => s,2,Answer                     ; Answer the line
exten => s,3,DigitTimeout,5             ; Set Digit Timeout to 5 seconds
exten => s,4,ResponseTimeout,10         ; Set Response Timeout to 10 seconds
exten => s,5,BackGround(demo-congrats)  ; Play a congratulatory message
exten => s,6,BackGround(demo-instruct)  ; Play some instructions

And the output of asterisk -vvvvvvv -c -f
    
	-- Starting simple switch on 'Zap/1-1'
	May  4 16:08:20 NOTICE[31109]: chan_zap.c:5626 ss_thread: Got event
2 (Ring/Answered)...
    -- Executing Wait("Zap/1-1", "1") in new stack
    -- Executing Answer("Zap/1-1", "") in new stack
    -- Executing DigitTimeout("Zap/1-1", "5") in new stack
    -- Set Digit Timeout to 5
    -- Executing ResponseTimeout("Zap/1-1", "10") in new stack
    -- Set Response Timeout to 10
    -- Executing BackGround("Zap/1-1", "demo-congrats") in new stack
    -- Playing 'demo-congrats' (language 'en')
    -- Executing BackGround("Zap/1-1", "demo-instruct") in new stack
    -- Playing 'demo-instruct' (language 'en')

<< Right here it answers the POTS line and then hangs it up >>

    -- Timeout on Zap/1-1
  == CDR updated on Zap/1-1
    -- Executing Goto("Zap/1-1", "#|1") in new stack
    -- Goto (default,#,1)
    -- Executing Playback("Zap/1-1", "demo-thanks") in new stack
    -- Playing 'demo-thanks' (language 'en')
    -- Executing Hangup("Zap/1-1", "") in new stack
  == Spawn extension (default, #, 2) exited non-zero on 'Zap/1-1'
    -- Hungup 'Zap/1-1'



	Also even though it has dropped the call, asterisk doesn't seem to
detect the dropped call.  

---- Kirk


 

-----Original Message-----
From: asterisk-bsd-bounces at lists.digium.com
[mailto:asterisk-bsd-bounces at lists.digium.com] On Behalf Of Kiel R Stirling
Sent: May 3, 2005 8:34 PM
To: Asterisk on BSD discussion
Subject: Re: [Asterisk-bsd] Zaptel X100P card dropping calls

Umm what I am thinking is that maybe * is dropping the call due to a codec 
issue. can u send more details on your setup eg, sip->asterisk->zap ?? 
inbound call goes zap->asterisk->h323?

-Kiel

----- Original Message ----- 
From: "Kirk Davis" <Kirk.Davis at epsb.ca>
To: "'Asterisk on BSD discussion'" <asterisk-bsd at lists.digium.com>
Sent: Wednesday, May 04, 2005 12:30 AM
Subject: RE: [Asterisk-bsd] Zaptel X100P card dropping calls


> Hmmm...  I'm not sure where to go from here then.
>
> I removed all unneeded hardware from the system and also made sure the 
> X100P
> card was locked down to it's own interrupt. I cvs'ed up my FreeBSD to the
> latest 5.3 (I'm waiting until 5.4 is out of RC status) and rebuilt the
> asterisk and zaptel ports.
>
> The only thing I have added from the stock install was to create the
> /usr/local/etc/zaptel.conf file as follows:
>
> # Span 1: WCFXO/0 "Generic Clone Board 1"
> fxsks=1
> # Global data
> loadzone        = us
> defaultzone     = us
>
> I also changed the default /usr/local/etc/asterisk/zapata.conf.  I changed
> the signalling to signalling=fxs_ks and added channel => 1 at the end.
>
> If I don't run asterisk it will not pick up the call, just rings. When I 
> run
> asterisk it will answer the call after the third ring but then just drops
> the call right away but asterisk doesn't detect the dropped call and
> continues to go though it's Background tasks.
>
> I'm stuck now and will even accept and wild guesses ;-)
>
> ---- Kirk
>
> -----Original Message-----
> From: asterisk-bsd-bounces at lists.digium.com
> [mailto:asterisk-bsd-bounces at lists.digium.com] On Behalf Of Kiel R 
> Stirling
> Sent: May 2, 2005 5:02 PM
> To: Asterisk on BSD discussion
> Subject: Re: [Asterisk-bsd] Zaptel X100P card dropping calls
>
> Hi,
>
> I run 5.3-STABLE with an XP clone and the ported versions of the required
> software. Touch wood, so far I've been really happy with the results. Are
> you sure its not an interrupt problem? I've seen hardware clashes do funny
> things to theses cards.
>
> -Kiel
>
>
> ----- Original Message ----- 
> From: "Luigi Rizzo" <rizzo at icir.org>
> To: "Asterisk on BSD discussion" <asterisk-bsd at lists.digium.com>
> Sent: Tuesday, May 03, 2005 8:39 AM
> Subject: Re: [Asterisk-bsd] Zaptel X100P card dropping calls
>
>
>> no idea about 5.3 but things do work for me on FreeBSD 4.11 with
>> the driver in the ports (patched to fix a bug in the loader glue
>> that should affect only  4.x)
>>
>> cheers
>> luigi
>>
>> On Mon, May 02, 2005 at 04:28:59PM -0600, Kirk Davis wrote:
>>> Hi,
>>> I'm not sure if this is a zaptel-bsd driver problem or asterisk.  I
>>> have looked through the archives with out much luck.
>>>
>>> I have a X100P Clone Card.  It works perfectly find under linux.
>>> I'm now trying to get Asterisk 1.0.7 (from the ports) working under
>>> FreeBSD
>>> 5.3.  I have tried the zaptel drivers from the ports collection and also
>>> the
>>> latest SVN snapshot with the same results.
>>>
>>> When I dial the number of the POTS line that the zaptel card is
>>> connected to, asterisk detects the incoming call.  The line rings 3 time
>>> (one more after the Answer("Zap/1-1", "") line shows on asterisk).  Then
>>> the
>>> line is dropped by the X100P card.  Asterisk doesn't seem to detect the
>>> dropped call because it goes on to try and play the background message I
>>> have and then eventually times out.  I get the Timeout message long 
>>> after
>>> the call is already dropped.
>>>
>>> Here is what I see under asterisk:
>>>
>>> -- Starting simple switch on 'Zap/1-1'
>>> May  2 16:15:37 NOTICE[55666]: chan_zap.c:5626 ss_thread: Got event
>>> 2 (Ring/Answered)...
>>>     -- Executing Answer("Zap/1-1", "") in new stack
>>>     -- Executing BackGround("Zap/1-1", "demo-instruct") in new stack
>>>     -- Playing 'demo-instruct' (language 'en')
>>> May  2 16:16:55 WARNING[55666]: pbx.c:1949 ast_pbx_run: Timeout, but
>>> no rule 't' in context 'default'
>>>     -- Hungup 'Zap/1-1'
>>>
>>> Any ideas where to begin trouble shooting this?
>>>
>>> Here is the zaptel device information from dmesg
>>>
>>> May  1 11:33:17 devel kernel: Zapata Telephony Interface Registered
>>> on major 196
>>> May  1 11:33:17 devel kernel: ZapTel device: vendor=e159 device=1
>>> subvendor=8086
>>> May  1 11:33:17 devel kernel: wcfxo0: <Generic Clone> port
>>> 0x9800-0x98ff mem 0xf9023000-0xf9023fff irq 22 at device 11.0 on pci2
>>> May  1 11:33:17 devel kernel: ZapTel Attach for wcfxo0: deviceID :
>>> 0xe159
>>> May  1 11:33:17 devel kernel: wcfxo0: [GIANT-LOCKED]
>>> May  1 11:33:18 devel kernel: wcfxo: DAA mode is 'FCC'
>>> May  1 11:33:18 devel kernel: Found a Wildcard FXO: Generic Clone
>>> May  1 11:33:18 devel kernel: ZapTel device loaded.
>>> May  1 11:33:42 devel kernel: Registered tone zone 0 (United States
>>> / North America)
>>>
>>> ----- Kirk
>>
>>> _______________________________________________
>>> Asterisk-BSD mailing list
>>> Asterisk-BSD at lists.digium.com
>>> http://lists.digium.com/mailman/listinfo/asterisk-bsd
>>
>> _______________________________________________
>> Asterisk-BSD mailing list
>> Asterisk-BSD at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-bsd
>>
>
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
> 

_______________________________________________
Asterisk-BSD mailing list
Asterisk-BSD at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-bsd


More information about the Asterisk-BSD mailing list