[Asterisk-Users] hfc-pci/zaphfc: Asterisk hangs with signalling bri_net_ptmp but not with bri_net

Ralph Aichinger ralph at mail.pangea.at
Sun Aug 28 17:35:56 MST 2005


Please forgive me, if I misunderstand the problem completely.

Following instructions in several german blogs, I want to configure
Asterisk with a hfc-pci card, an old NTBA and an ISDN phone
as a SIP device.

It seems that I have to set signalling in zapata.conf to bri_net_ptmp.
When I do this, Asterisk will hang if started with -vvvvc, the last
lines of output being:

[res_features.so] => (Call Parking Resource)
  == Parsing '/etc/asterisk/features.conf': Found
    -- Registered extension context 'parkedcalls'
    -- Added extension '700' priority 1 to parkedcalls
  == Registered application 'ParkedCall'
  == Registered application 'Park'
  == Manager registered action ParkedCalls
  == Registered application 'HoldedCall'
  == Registered application 'AutoanswerLogin'
  == Registered application 'Autoanswer'
 [chan_zap.so] => (Zapata Telephony w/PRI)
  == Parsing '/etc/asterisk/zapata.conf': Found
    -- Registered channel 1, PRI Signalling signalling
    -- Registered channel 2, PRI Signalling signalling
    -- Automatically generated pseudo channel

Here it hangs.

If I change signalling back to "bri_net", the console
will appear.

If I try to connect to the "hung" Asterisk process
from another terminal with asterisk -r, everything
will look fine, except it seems that zap does not
work, e.g. the command "help" does not give me
the zap commands. show modules shows chan_zap
however:

monk:/etc/asterisk# asterisk -r
    -- Remote UNIX connection
Asterisk , Copyright (C) 1999-2004 Digium.
Written by Mark Spencer <markster at digium.com>
=========================================================================
Connected to Asterisk  currently running on monk (pid = 10973)
Verbosity is at least 5
monk*CLI> help
            debug channel  Enable debugging on a channel
                     help  Display help list, or specific help on a command
                     load  Load a dynamic module by name
            logger reload  Reopens the log files
            logger rotate  Rotates and reopens the log files
         no debug channel  Disable debugging on a channel
                   reload  Reload configuration
                set debug  Set level of debug chattiness
              set verbose  Set level of verboseness
        show applications  Shows registered applications
         show application  Describe a specific application
          show autoanswer  Lists autoanswer channels
            show channels  Display information on channels
             show channel  Display information on a specific channel
      show config handles  Show Config Handles
            show dialplan  Show dialplan
        show file formats  Displays file formats
       show image formats  Displays image formats
     show manager command  Show manager command
    show manager commands  Show manager commands
   show manager connected  Show connected manager users
             show modules  List modules and info
         show parkedcalls  Lists parked calls
            show switches  Show alternative switches
              show uptime  Show uptime information
             show version  Display version info
              soft hangup  Request a hangup on a given channel
                   unload  Unload a dynamic module by name
monk*CLI> show modules
Module                    Description                              Use Count
chan_modem.so             Generic Voice Modem Driver               0
chan_modem_aopen.so       A/Open (Rockwell Chipset) ITU-2 VoiceMod 0
res_musiconhold.so        Music On Hold Resource                   1
res_features.so           Call Parking Resource                    1
chan_zap.so               Zapata Telephony w/PRI                   0
monk*CLI>

My zapata.conf:
;
; Zapata telephony interface
;
; Configuration file

[channels]
;
; Default language
;
;language=en
;
; Default context
;
;
switchtype = euroisdn
; p2mp TE mode
signalling = bri_net_ptmp
;signalling = bri_net

; p2p TE mode
;signalling = bri_cpe
; p2mp NT mode
;signalling = bri_net_ptmp
; p2p NT mode
;signalling = bri_net

pridialplan = local
;prilocaldialplan = local
;nationalprefix = 0
;internationalprefix = 00


echocancel=yes
echotraining = 100
echocancelwhenbridged=yes

immediate=no
overlapdial=yes
group = 1
context=default
channel => 1-2

My zaptel.conf:

# hfc-s pci a span definition
# most of the values should be bogus because we are not really zaptel
loadzone=nl
defaultzone=nl

span=1,1,3,ccs,ami
bchan=1-2
dchan=3

dmesg snippet:
Zapata Telephony Interface Registered on major 196
PCI: Enabling device 0000:00:0d.0 (0000 -> 0003)
ACPI: PCI Interrupt 0000:00:0d.0[A] -> Link [LNKC] -> GSI 10 (level, 
low) -> IRQ 10
zaphfc: CCD/Billion/Asuscom 2BD0 configured at mem 0xd0864f00 fifo 
0xca778000(0xa778000) IRQ 10 HZ 1000
zaphfc: Card 0 configured for NT mode
zaphfc: 1 hfc-pci card(s) in this box.
Registered tone zone 3 (Netherlands)


Any Ideas?

TIA
/ralph



More information about the asterisk-users mailing list