Hello,

here we have following situation, hfc-e1 card with two spans connected with crossover cable
one span configured as NT, other as TE. When we call to asterisk we get the following

    -- Calling visdn0 on VISDN/null
    -- Calling on interface 'visdn0'
q931 visdn0:TEI[0]: call.c:305 GET (3 => 4)
q931 visdn0:TEI[0]: call.c:306 HOLD (4 => 5)
q931 visdn0:TEI[0]: DLC autorelease timer stopped
q931 visdn0:CALL[25581.O ]: call.c:311 GET (1 => 2)
q931 visdn0:CALL[25581.O]: chan_visdn.c:811 GET (2 => 3)
q931 visdn0:CALL[25581.O]: chan_visdn.c:343 GET (3 => 4)
q931 visdn0:CALL[25581.O]: SETUP-REQ
q931 visdn0[B1]: changed state from AVAILABLE to SELECTED
q931 visdn0:CALL[25581.O]: call.c:397 GET (4 => 5)
q931 visdn0:CALL[25581.O]: call.c:1842 Timer T303 started
q931 visdn0:TEI[0]: message.c:67 GET (4 => 5)
q931 visdn0:CALL[25581.O]: Sending message:
q931 ->  message type: SETUP (5)
q931 ->  VL IE 0 ===> 4 (Bearer Capability) -- length 3
q931 ->    Coding Standard = CCITT (0)
q931 ->    Information Transfer Capability = Speech (0)
q931 ->    Transfer mode = Circuit (0)
q931 ->    Information Transfer Rate = 64 kbps (16)
q931 ->    User information layer 1 protocol = g.711 a-law (3)
q931 ->  VL IE 1 ===> 24 (Channel Identification) -- length 3
q931 ->    Interface id = Implicit (0)
q931 ->    Interface type = Primary (1)
q931 ->    Pref/Excl = Preferred (0)
q931 ->    D channel ident = Is not D channel (0)
q931 ->    Coding standard = CCITT (0)
q931 ->    Channels = B1
q931 ->  VL IE 2 ===> 41 (Date Time) -- length 6
q931 ->    DateTime = Wed Oct 25 22:59:09 2006

q931 ->  VL IE 3 ===> 108 (Calling Party Number) -- length 11
q931 ->    Type of number = Unknown (0)
q931 ->    Numbering plan = Unknown (0)
q931 ->    Presentation indicator = Presentation allowed (0)
q931 ->    Screening indicator = User provided, not screened (0)
q931 ->    Number = 870000123
q931 ->  VL IE 4 ===> 112 (Called Party Number) -- length 4
q931 ->    Type of number = Unknown (0)
q931 ->    Numbering plan = Unknown (0)
q931 ->    Number = 600
q931 ->  VL IE 5 ===> 125 (High Layer Compatibility) -- length 2
q931 ->    Coding standard = CCITT (0)
q931 ->    Characteristics identification = Telephony (1)
q931 ->  SO IE 6 ===> 161 (Sending Complete)
q931
q931 visdn0:TEI[0]: DLC is disconnected, requesting connection
q931 visdn0:TEI[0]: DLC is awaiting connection: message queued
q931 visdn0:CALL[25581.O]: N0_NULL_STATE ==to==> N6_CALL_PRESENT
q931 visdn0:CALL[25581.O]: chan_visdn.c:2254 PUT (5 => 4)
    -- set timeout = 4000
q931 visdn0:CALL[25581.O]: chan_visdn.c:946 PUT (4 => 3)
    -- Called visdn0/600
q931 visdn0:TEI[0]: DL-RELEASE-INDICATION
q931 visdn0:CALL[25581.O]: input.c:144 GET (3 => 4)
q931 visdn0:CALL[25581.O ]: call.c:436 Timer T301 stopped
q931 visdn0:CALL[25581.O]: call.c:437 Timer T302 stopped
q931 visdn0:CALL[25581.O]: call.c:409 PUT (4 => 3)
q931 visdn0:CALL[25581.O]: call.c:438 Timer T303 stopped
q931 visdn0:CALL[ 25581.O]: call.c:439 Timer T304 stopped
q931 visdn0:CALL[25581.O]: call.c:440 Timer T305 stopped
q931 visdn0:CALL[25581.O]: call.c:441 Timer T306 stopped
q931 visdn0:CALL[25581.O]: call.c:442 Timer T308 stopped
q931 visdn0:CALL[25581.O]: call.c:443 Timer T309 stopped
q931 visdn0:CALL[25581.O]: call.c:444 Timer T310 stopped
q931 visdn0:CALL[25581.O]: call.c:445 Timer T312 stopped
q931 visdn0:CALL[25581.O]: call.c:446 Timer T313 stopped
q931 visdn0:CALL[25581.O]: call.c:447 Timer T314 stopped
q931 visdn0:CALL[25581.O]: call.c:448 Timer T316 stopped
q931 visdn0:CALL[25581.O]: call.c:449 Timer T318 stopped
q931 visdn0:CALL[25581.O]: call.c:450 Timer T319 stopped
q931 visdn0:CALL[25581.O]: call.c:451 Timer T320 stopped
q931 visdn0:CALL[25581.O]: call.c:452 Timer T321 stopped
q931 visdn0:CALL[25581.O]: call.c:453 Timer T322 stopped
q931 visdn0[B1]: changed state from SELECTED to AVAILABLE
q931 visdn0:CALL[25581.O]: N6_CALL_PRESENT ==to==> N0_NULL_STATE
q931 visdn0:CALL[25581.O]: call.c:377 PUT (3 => 2)
q931 visdn0:CALL[25581.O]: chan_visdn.c:377 GET (2 => 3)
q931 visdn0:CALL[25581.O]: input.c:156 PUT (3 => 2)
q931 Releasing message
    -- set timeout = -1
    -- visdn_q931_release_indication
q931 visdn0:CALL[25581.O]: chan_visdn.c:4521 PUT (2 => 1)
    -- set timeout = -1
    -- visdn_hangup VISDN/visdn0/25581.O
q931 visdn0:CALL[25581.O]: chan_visdn.c:1858 PUT (1 => 0)
q931 visdn0:CALL[25581.O]: Freeing call
q931 visdn0:TEI[0]: DLC autorelease timer started
q931 visdn0:TEI[0]: call.c:360 PUT (5 => 4)
    -- visdn_hangup VISDN/visdn0/25581.O DONE

So there is nothing received on visdn1...

I would like to ask someone to send working configs in this situation:

device-pci files
visdn.conf
extensions.conf

our config is as follows:

PBXA:~# cat /usr/local/etc/visdn/device-pci-0000\:03\: 08.0
#
# Sample configuration file for a HFC-E1 board with the netdev
# interface being named visdn3.
#

<netdev visdn0>
  protocol lapd
  type PRI
  role NT
  mode P2P
</netdev>

<port e1>
  attribute role NT
  attribute rx_line_code HDB3
  attribute rx_full_baud 0
  attribute rx_crc4 1
  attribute tx_line_code HDB3
  attribute tx_full_baud 0
  attribute tx_crc4 1

  <chan 16>
    connectmodule netdev visdn0
  </chan>
</port>

PBXA:~# cat /usr/local/etc/visdn/device-pci-0000\:03\:09.0
#
# Sample configuration file for a HFC-E1 board with the netdev
# interface being named visdn3.
#

<netdev visdn1>
  protocol lapd
  type PRI
  role TE
  mode P2P
</netdev>

<port e1>
  attribute role TE
  attribute rx_line_code HDB3
  attribute rx_full_baud 0
  attribute rx_crc4 1
  attribute tx_line_code HDB3
  attribute tx_full_baud 0
  attribute tx_crc4 1

  <chan 16>
    connectmodule netdev visdn1
  </chan>
</port>

[general]

[global]
network_role = private
tones_option = yes
language = en
outbound_called_ton = unknown
force_outbound_cli =
force_outbound_cli_ton = no
clir_mode = unrestricted_default
cli_rewriting = No
national_prefix = 0
international_prefix = 00
network_specific_prefix =
subscriber_prefix =
abbreviated_prefix =
overlap_sending = Yes
overlap_receiving = No
autorelease_dlc = 10
call_bumping = No

[huntgroup:telco]
mode = sequential
members = visdn0 visdn1

PBXA:~# cat /etc/asterisk/visdn.conf
[visdn0]
network_role = private
context = visdn0_in
tones_option = yes
outbound_called_ton = unknown
force_outbound_cli =
force_outbound_cli_ton = no
clip_default_name = vISDN E1.0
clip_default_number = 300
clip_numbers = 300
clir_mode = unrestricted_default
overlap_sending = Yes
overlap_receiving = No
tei = 0

[visdn1]
network_role = private
context = visdn1_in
tones_option = yes
outbound_called_ton = unknown
force_outbound_cli =
force_outbound_cli_ton = no
clip_default_name = vISDN E1.1
clip_default_number = 300
clip_numbers = 300
clir_mode = unrestricted_default
overlap_sending = Yes
overlap_receiving = No
tei = 0

Thank You.
_______________________________________________
Visdn-hackers mailing list
[email protected]
https://mailman.uli.it/mailman/listinfo/visdn-hackers

Reply via email to