передача голоса

61 views
Skip to first unread message

758...@gmail.com

unread,
Sep 5, 2014, 4:30:02 AM9/5/14
to ast-...@googlegroups.com
Добрый день. Поднял на двух виртуалках asterisk c H323. Соединил их между собой.
Слышу ответившего. А меня не слышат. По дампу не вижу вообще rtp потока от меня.
Конфиг взят из предыдущей темы.

Denis Kochmashev

unread,
Sep 5, 2014, 6:39:12 AM9/5/14
to ast-...@googlegroups.com
Здравствуйте! Без "дампа" и отладки с Asterisk не разобраться.

758...@gmail.com

unread,
Sep 5, 2014, 9:12:17 AM9/5/14
to ast-...@googlegroups.com
Вот дамп
https://www.dropbox.com/s/m04q8tio0264icj/113?dl=0


== Using SIP RTP CoS mark 5
-- Executing [6300002@from-ast:1] Answer("SIP/ast1-00000004", "") in new stack
-- Executing [6300002@from-ast:2] SayDigits("SIP/ast1-00000004", "1234") in new stack
-- <SIP/ast1-00000004> Playing 'digits/1.gsm' (language 'en')
[Sep 5 17:11:33] NOTICE[23237]: channel.c:4237 __ast_read: Dropping incompatible voice frame on SIP/ast1-00000004 of format ulaw since our native format has changed to 0x8 (alaw)
[Sep 5 17:11:33] NOTICE[23237]: channel.c:4237 __ast_read: Dropping incompatible voice frame on SIP/ast1-00000004 of format ulaw since our native format has changed to 0x8 (alaw)
-- <SIP/ast1-00000004> Playing 'digits/2.gsm' (language 'en')
-- <SIP/ast1-00000004> Playing 'digits/3.gsm' (language 'en')
-- <SIP/ast1-00000004> Playing 'digits/4.gsm' (language 'en')
-- Executing [6300002@from-ast:3] Dial("SIP/ast1-00000004", "h323/informtel2/6300002") in new stack
== Using H323 RTP TOS bits 184
== Using H323 RTP CoS mark 6
----- oh323_queryoption 16 on channel H323/informtel2-5
+++++ oh323_queryoption 16 on channel H323/informtel2-5
-- Requested transfer capability: 0x00 - SPEECH
-- Making call to 630...@193.232.167.134:1720 without gatekeeper.
Using 193.232.167.135 for outbound call
== New H.323 Connection created.
-- asterisk is calling host 630...@193.232.167.134:1720
-- Call token is ip$localhost/7640
-- Call reference is 7640
-- DTMF Payload is 0x7f202001af80
-- Called h323/informtel2/6300002
Setting capabilities to 0x8 (alaw)
Capabilities in preference order is (alaw)
DTMF mode is 1
Allowed Codecs for ip$localhost/7640 (ip$193.232.167.135:60752):
Table:
G.711-ALaw-64k <1>
UserInput/hookflash <2>
UserInput/RFC2833 <3>
Set:
0:
0:
G.711-ALaw-64k <1>
1:
UserInput/hookflash <2>
2:
UserInput/RFC2833 <3>

-- Sending SETUP message
-- Started logical channel: receiving G.711-ALaw-64k
-- channelsOpen = 1
-- Started logical channel: sending G.711-ALaw-64k
-- channelsOpen = 2
- Progress Indicator: 8
-- H323/informtel2-5 is making progress passing it to SIP/ast1-00000004
=-= In OnConnectionEstablished for call 7640
-- Connection Established with "6300002"
-- H323/informtel2-5 answered SIP/ast1-00000004
-- Received RELEASE COMPLETE message...
-- ClearCall: Request to clear call with token ip$localhost/7640, cause EndedByRemoteUser
-- Sending RELEASE COMPLETE
-- ClearCall: Request to clear call with token ip$localhost/7640, cause EndedByTransportFail
channelsOpen = 1
channelsOpen = 0
== Spawn extension (from-ast, 6300002, 3) exited non-zero on 'SIP/ast1-00000004'
ExternalRTPChannel Destroyed
ExternalRTPChannel Destroyed
-- 6300002 has cleared the call
== H.323 Connection deleted.

758...@gmail.com

unread,
Sep 5, 2014, 9:15:45 AM9/5/14
to ast-...@googlegroups.com
а это с принимающей машины
H.323 Debugging Enabled
== New H.323 Connection created.
--Received SETUP message
-- Setting up Call
-- Call token: [ip$193.232.167.135:56484/7641]
-- Calling party name: [74955445500]
-- Calling party number: [74955445500]
-- Called party name: [6300002]
-- Called party number: [6300002]
-- Calling party IP: [193.232.167.135]
Setting capabilities to 0x8 (alaw)
Capabilities in preference order is (alaw)
DTMF mode is 1
Allowed Codecs for ip$193.232.167.135:56484/7641 (ip$193.232.167.134:1720):
Table:
G.711-ALaw-64k <1>
UserInput/hookflash <2>
UserInput/RFC2833 <3>
Set:
0:
0:
G.711-ALaw-64k <1>
1:
UserInput/hookflash <2>
2:
UserInput/RFC2833 <3>

== Using H323 RTP TOS bits 184
== Using H323 RTP CoS mark 6
=-= In OnAnswerCall for call 7641
- Progress Indicator: 3
- Inserting PI of 8 into ALERTING message
-- Executing [6300002@from-ast:1] Answer("H323/ip$193.232.167.135:56484/7641", "") in new stack
-- Started logical channel: sending G.711-ALaw-64k
-- channelsOpen = 1
External RTP Session Starting
RTP channel id 1 parameters:
-- remoteIpAddress: 193.232.167.135
-- remotePort: 10546
-- ExternalIpAddress: 193.232.167.134
-- ExternalPort: 15500
-- Started logical channel: receiving G.711-ALaw-64k
-- channelsOpen = 2
External RTP Session Starting
RTP channel id 1 parameters:
-- remoteIpAddress: 193.232.167.135
-- remotePort: 10546
-- ExternalIpAddress: 193.232.167.134
-- ExternalPort: 15500
Answering call ip$193.232.167.135:56484/7641
=-= In OnConnectionEstablished for call 7641
-- Connection Established with "74955445500"
-- Executing [6300002@from-ast:2] Dial("H323/ip$193.232.167.135:56484/7641", "SIP/889265897436") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/889265897436
[Sep 5 17:13:55] WARNING[6597]: chan_h323.c:1119 oh323_indicate: OH323: Don't know how to indicate condition 22 on ip$193.232.167.135:56484/7641
[Sep 5 17:13:55] WARNING[6597]: chan_h323.c:1119 oh323_indicate: OH323: Don't know how to indicate condition 22 on ip$193.232.167.135:56484/7641
[Sep 5 17:13:55] WARNING[6597]: chan_h323.c:1119 oh323_indicate: OH323: Don't know how to indicate condition 22 on ip$193.232.167.135:56484/7641
[Sep 5 17:13:55] WARNING[6597]: chan_h323.c:1119 oh323_indicate: OH323: Don't know how to indicate condition 22 on ip$193.232.167.135:56484/7641
-- SIP/889265897436-00000004 is ringing
[Sep 5 17:13:57] WARNING[6597]: chan_h323.c:1119 oh323_indicate: OH323: Don't know how to indicate condition 22 on ip$193.232.167.135:56484/7641
[Sep 5 17:13:57] WARNING[6597]: chan_h323.c:1119 oh323_indicate: OH323: Don't know how to indicate condition 22 on ip$193.232.167.135:56484/7641
-- SIP/889265897436-00000004 answered H323/ip$193.232.167.135:56484/7641
== Spawn extension (from-ast, 6300002, 2) exited non-zero on 'H323/ip$193.232.167.135:56484/7641'
-- Sending RELEASE COMPLETE
-- ClearCall: Request to clear call with token ip$193.232.167.135:56484/7641, cause EndedByRemoteUser
channelsOpen = 1
channelsOpen = 0
ExternalRTPChannel Destroyed
ExternalRTPChannel Destroyed
-- ClearCall: Request to clear call with token ip$193.232.167.135:56484/7641, cause EndedByTransportFail
-- 74955445500 has cleared the call
== H.323 Connection deleted.

758...@gmail.com

unread,
Sep 8, 2014, 8:33:08 AM9/8/14
to ast-...@googlegroups.com
удалось решить проблему

во первых включил debug. увидел
DEBUG[2818]: res_rtp_asterisk.c:1343 ast_rtp_write: No remote address on RTP instance '0x7fe530005448' so dropping frame

в пире прописал
[informtel2]
host= 193.232.167.134
port= 1720
type= friend
context= from-ast
faststart=no ; это
h245Tunneling=yes ; это
Reply all
Reply to author
Forward
0 new messages