Hi Daniele,
>>But the phone never receives a CONNECT message on outgoing calls.
>
> Most probably you need to apply patch asterisk-1.2-answer.diff to Asterisk.
I finally found some time to give it another try, but nothing changes
even if I apply the patch.
I am using the visdn-snapshot from yesterday.
The relevant part of the console output with "iax2 debug" and "debug
visdn q931" activated looks like this:
[...]
-- IAX2/80.92.86.42:4569-1 is making progress passing it to
VISDN/visdn0/2.I
q931 visdn0:CALL[2.I]: chan_visdn.c:340 GET (2 => 3)
q931 visdn0:CALL[2.I]: PROGRESS-REQ
q931 visdn0:TEI[87]: message.c:64 GET (2 => 3)
q931 visdn0:CALL[2.I]: Sending message:
q931 -> message type: PROGRESS (3)
q931 -> VL IE 0 ===> 30 (Progress Indicator) -- length 2
q931 -> Coding standard = CCITT (0)
q931 -> Location = Private network serving local user (1)
q931 -> Description = In-band information or appropriate pattern now
available (8)
q931
q931 visdn0:TEI[87]: Releasing message
q931 visdn0:TEI[87]: message.c:44 PUT (3 => 2)
q931 visdn0:CALL[2.I]: chan_visdn.c:2236 PUT (3 => 2)
Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 003 Type: VOICE Subclass: 8
Timestamp: 03576ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
Tx-Frame Retry[-01] -- OSeqno: 003 ISeqno: 004 Type: IAX Subclass: ACK
Timestamp: 03576ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
Tx-Frame Retry[000] -- OSeqno: 003 ISeqno: 004 Type: IAX Subclass: LAGRQ
Timestamp: 09899ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
Rx-Frame Retry[ No] -- OSeqno: 004 ISeqno: 004 Type: IAX Subclass: LAGRP
Timestamp: 09899ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
Tx-Frame Retry[-01] -- OSeqno: 004 ISeqno: 005 Type: IAX Subclass: ACK
Timestamp: 09899ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
Rx-Frame Retry[ No] -- OSeqno: 005 ISeqno: 004 Type: IAX Subclass: LAGRQ
Timestamp: 10002ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
Tx-Frame Retry[000] -- OSeqno: 004 ISeqno: 006 Type: IAX Subclass: LAGRP
Timestamp: 10002ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
Rx-Frame Retry[ No] -- OSeqno: 006 ISeqno: 005 Type: IAX Subclass: ACK
Timestamp: 10002ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
Rx-Frame Retry[ No] -- OSeqno: 006 ISeqno: 005 Type: CONTROL Subclass:
ANSWER
Timestamp: 10999ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
Tx-Frame Retry[-01] -- OSeqno: 005 ISeqno: 007 Type: IAX Subclass: ACK
Timestamp: 10999ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
-- IAX2/80.92.86.42:4569-1 answered VISDN/visdn0/2.I
Tx-Frame Retry[000] -- OSeqno: 005 ISeqno: 007 Type: IAX Subclass: PING
Timestamp: 19894ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
Tx-Frame Retry[000] -- OSeqno: 006 ISeqno: 007 Type: IAX Subclass: LAGRQ
Timestamp: 19897ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
Rx-Frame Retry[ No] -- OSeqno: 007 ISeqno: 006 Type: IAX Subclass: PONG
Timestamp: 19894ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
RR_JITTER : 0
RR_LOSS : 0
RR_PKTS : 1
RR_DELAY : 40
RR_DROPPED : 0
RR_OUTOFORDER : 0
Tx-Frame Retry[-01] -- OSeqno: 006 ISeqno: 008 Type: IAX Subclass: ACK
Timestamp: 19894ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
Rx-Frame Retry[ No] -- OSeqno: 008 ISeqno: 007 Type: IAX Subclass: LAGRP
Timestamp: 19897ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
Tx-Frame Retry[-01] -- OSeqno: 007 ISeqno: 009 Type: IAX Subclass: ACK
Timestamp: 19897ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
Rx-Frame Retry[ No] -- OSeqno: 009 ISeqno: 007 Type: IAX Subclass: PING
Timestamp: 20094ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
Tx-Frame Retry[000] -- OSeqno: 007 ISeqno: 010 Type: IAX Subclass: PONG
Timestamp: 20094ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
RR_JITTER : 0
RR_LOSS : 0
RR_PKTS : 1
RR_DELAY : 40
RR_DROPPED : 0
RR_OUTOFORDER : 0
Rx-Frame Retry[ No] -- OSeqno: 010 ISeqno: 007 Type: IAX Subclass: LAGRQ
Timestamp: 20097ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
Tx-Frame Retry[000] -- OSeqno: 008 ISeqno: 011 Type: IAX Subclass: LAGRP
Timestamp: 20097ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
Rx-Frame Retry[ No] -- OSeqno: 010 ISeqno: 008 Type: IAX Subclass: ACK
Timestamp: 20094ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
Rx-Frame Retry[ No] -- OSeqno: 011 ISeqno: 009 Type: IAX Subclass: ACK
Timestamp: 20097ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
Rx-Frame Retry[ No] -- OSeqno: 011 ISeqno: 009 Type: IAX Subclass:
HANGUP
Timestamp: 23996ms SCall: 00009 DCall: 00001 [80.92.86.42:4569]
CAUSE CODE : 16
Tx-Frame Retry[-01] -- OSeqno: 009 ISeqno: 012 Type: IAX Subclass: ACK
Timestamp: 23996ms SCall: 00001 DCall: 00009 [80.92.86.42:4569]
-- Hungup 'IAX2/80.92.86.42:4569-1'
== Spawn extension (default, xxxxxxxxxxxxx, 1) exited non-zero on
'VISDN/visdn0/2.I'
q931 visdn0:CALL[2.I]: chan_visdn.c:340 GET (2 => 3)
q931 visdn0:CALL[2.I]: chan_visdn.c:1854 PUT (3 => 2)
q931 visdn0:CALL[2.I]: DISCONNECT-REQ
q931 visdn0:TEI[87]: message.c:64 GET (2 => 3)
q931 visdn0:CALL[2.I]: Sending message:
q931 -> message type: DISCONNECT (69)
q931 -> VL IE 0 ===> 8 (Cause) -- length 2
q931 -> Coding standard = CCITT (0)
q931 -> Location = Private network serving local user (1)
q931 -> Cause value = Normal call clearing (16)
q931 -> VL IE 1 ===> 30 (Progress Indicator) -- length 2
q931 -> Coding standard = CCITT (0)
q931 -> Location = Private network serving local user (1)
q931 -> Description = In-band information or appropriate pattern now
available (8)
[...]
And here my config again:
My /etc/visdn/device-pci-0000:01:01.0:
<netdev visdn0>
protocol lapd
role NT
mode P2MP
</netdev>
<port st0>
attribute role NT
attribute timer_t1 1500
attribute timer_t3 1500
<chan D>
connectmodule netdev visdn0
</chan>
</port>
/etc/asterisk/visdn.conf:
[global]
network_role = private
tones_option = yes
language = en
outbound_called_ton = unknown
force_outbound_cli =
force_outbound_cli_ton = no
clir_mode = default_off
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
[visdn0]
network_role = private
context = visdn0_in
language = de
tones_option = yes
outbound_called_ton = unknown
force_outbound_cli =
force_outbound_cli_ton = no
clip_default_name = vISDN
clip_default_number = 300
clip_numbers = 300
clir_mode = default_off
overlap_sending = Yes
overlap_receiving = No
/etc/asterisk/extensions.conf: (the relevant part)
[visdn0_in]
exten => s,1,VISDNOverlapDial()
exten => _00.,1,Dial(IAX2/iaxprovider/${EXTEN})
Thanks in advance for your help,
Tobias
_______________________________________________
Visdn-hackers mailing list
[email protected]
https://mailman.uli.it/mailman/listinfo/visdn-hackers