Столкнулся с проблемой: если у extension нет записывающего устройства(микрофона) то астериск в его сторону не шлет rtp трафик.
Например, имеем софт клиент X-lite, если к компьютеру подключен микрофон, то входящий rtp трафик есть, если отключить микрофон астериск перестаёт передавать голос в сторону клиента.
По tcpdump это выглядит так:
Код: Выделить всё
16:35:38.319175 IP (tos 0x0, ttl 128, id 22782, offset 0, flags [none], proto: UDP (17), length: 813) КЛИЕНТ.52125 > СЕРВЕР.sip: SIP, length: 785
INVITE sip:81112223344@СЕРВЕР SIP/2.0
Via: SIP/2.0/UDP КЛИЕНТ:52125;branch=z9hG4bK-524287-1---115b5b5bcb459b2c;rport
Max-Forwards: 70
Contact: <sip:777@КЛИЕНТ:52125;rinstance=c5f5d9339468104f>
To: <sip:81112223344@СЕРВЕР>
From: "777"<sip:777@СЕРВЕР>;tag=54b32d7b
Call-ID: 76589MmUyNTg3MWE2ZmFjYWI4MDQ1YWFhMWY5MzRmM2NhODg
CSeq: 1 INVITE
Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO, MESSAGE
Content-Type: application/sdp
User-Agent: X-Lite 4.8.4 76589-926d43be-W6.2
Content-Length: 239
v=0
o=- 13100794538338983 1 IN IP4 КЛИЕНТ
s=X-Lite release 4.8.4 stamp 76589
c=IN IP4 КЛИЕНТ
t=0 0
m=audio 57736 RTP/AVP 9 8 0 84 101
a=rtpmap:84 speex/16000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
16:35:38.319583 IP (tos 0x60, ttl 64, id 15409, offset 0, flags [none], proto: UDP (17), length: 587) СЕРВЕР.sip > КЛИЕНТ.52125: SIP, length: 559
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP КЛИЕНТ:52125;branch=z9hG4bK-524287-1---115b5b5bcb459b2c;received=КЛИЕНТ;rport=52125
From: "777"<sip:777@СЕРВЕР>;tag=54b32d7b
To: <sip:81112223344@СЕРВЕР>;tag=as4b5a76b3
Call-ID: 76589MmUyNTg3MWE2ZmFjYWI4MDQ1YWFhMWY5MzRmM2NhODg
CSeq: 1 INVITE
Server: FPBX-2.11.0(11.21.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="3a7b4f62"
Content-Length: 0
16:35:38.321532 IP (tos 0x0, ttl 128, id 22784, offset 0, flags [none], proto: UDP (17), length: 364) КЛИЕНТ.52125 > СЕРВЕР.sip: SIP, length: 336
ACK sip:81112223344@СЕРВЕР SIP/2.0
Via: SIP/2.0/UDP КЛИЕНТ:52125;branch=z9hG4bK-524287-1---115b5b5bcb459b2c;rport
Max-Forwards: 70
To: <sip:81112223344@СЕРВЕР>;tag=as4b5a76b3
From: "777"<sip:777@СЕРВЕР>;tag=54b32d7b
Call-ID: 76589MmUyNTg3MWE2ZmFjYWI4MDQ1YWFhMWY5MzRmM2NhODg
CSeq: 1 ACK
Content-Length: 0
16:35:38.322784 IP (tos 0x0, ttl 128, id 22787, offset 0, flags [none], proto: UDP (17), length: 978) КЛИЕНТ.52125 > СЕРВЕР.sip: SIP, length: 950
INVITE sip:81112223344@СЕРВЕР SIP/2.0
Via: SIP/2.0/UDP КЛИЕНТ:52125;branch=z9hG4bK-524287-1---62a6472de4892b5b;rport
Max-Forwards: 70
Contact: <sip:777@КЛИЕНТ:52125;rinstance=c5f5d9339468104f>
To: <sip:81112223344@СЕРВЕР>
From: "777"<sip:777@СЕРВЕР>;tag=54b32d7b
Call-ID: 76589MmUyNTg3MWE2ZmFjYWI4MDQ1YWFhMWY5MzRmM2NhODg
CSeq: 2 INVITE
Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO, MESSAGE
Content-Type: application/sdp
User-Agent: X-Lite 4.8.4 76589-926d43be-W6.2
Authorization: Digest username="777",realm="asterisk",nonce="3a7b4f62",uri="sip:81112223344@СЕРВЕР",response="b74d73bcd62d19c171848edf04937227",algorithm=MD5
Content-Length: 239
v=0
o=- 13100794538338983 1 IN IP4 КЛИЕНТ
s=X-Lite release 4.8.4 stamp 76589
c=IN IP4 КЛИЕНТ
t=0 0
m=audio 57736 RTP/AVP 9 8 0 84 101
a=rtpmap:84 speex/16000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
16:35:38.324523 IP (tos 0x60, ttl 64, id 15410, offset 0, flags [none], proto: UDP (17), length: 571) СЕРВЕР.sip > КЛИЕНТ.52125: SIP, length: 543
SIP/2.0 100 Trying
Via: SIP/2.0/UDP КЛИЕНТ:52125;branch=z9hG4bK-524287-1---62a6472de4892b5b;received=КЛИЕНТ;rport=52125
From: "777"<sip:777@СЕРВЕР>;tag=54b32d7b
To: <sip:81112223344@СЕРВЕР>
Call-ID: 76589MmUyNTg3MWE2ZmFjYWI4MDQ1YWFhMWY5MzRmM2NhODg
CSeq: 2 INVITE
Server: FPBX-2.11.0(11.21.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 120;refresher=uas
Contact: <sip:81112223344@СЕРВЕР:5060>
Content-Length: 0
16:35:47.915151 IP (tos 0x60, ttl 64, id 15411, offset 0, flags [none], proto: UDP (17), length: 660) СЕРВЕР.sip > КЛИЕНТ.52125: SIP, length: 632
OPTIONS sip:777@КЛИЕНТ:52125;rinstance=c5f5d9339468104f SIP/2.0
Via: SIP/2.0/UDP СЕРВЕР:5060;branch=z9hG4bK766f8980
Max-Forwards: 70
From: "Unknown" <sip:Unknown@СЕРВЕР>;tag=as00ea10fd
To: <sip:777@КЛИЕНТ:52125;rinstance=c5f5d9339468104f>
Contact: <sip:Unknown@СЕРВЕР:5060>
Call-ID: 01c05f2d2e4d65bd263f1010613a2130@СЕРВЕР:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.11.0(11.21.0)
Date: Wed, 24 Feb 2016 13:35:47 GMT
Session-Expires: 120
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
16:35:47.917780 IP (tos 0x0, ttl 128, id 22838, offset 0, flags [none], proto: UDP (17), length: 424) КЛИЕНТ.52125 > СЕРВЕР.sip: SIP, length: 396
SIP/2.0 405 Method Not Allowed
Via: SIP/2.0/UDP СЕРВЕР:5060;branch=z9hG4bK766f8980
To: <sip:777@КЛИЕНТ:52125;rinstance=c5f5d9339468104f>;tag=73dac76b
From: "Unknown" <sip:Unknown@СЕРВЕР>;tag=as00ea10fd
Call-ID: 01c05f2d2e4d65bd263f1010613a2130@СЕРВЕР:5060
CSeq: 102 OPTIONS
Allow: SUBSCRIBE, NOTIFY, INVITE, ACK, CANCEL, BYE, REFER, INFO, MESSAGE
Content-Length: 0
16:35:51.716228 IP (tos 0x60, ttl 64, id 15412, offset 0, flags [none], proto: UDP (17), length: 587) СЕРВЕР.sip > КЛИЕНТ.52125: SIP, length: 559
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP КЛИЕНТ:52125;branch=z9hG4bK-524287-1---62a6472de4892b5b;received=КЛИЕНТ;rport=52125
From: "777"<sip:777@СЕРВЕР>;tag=54b32d7b
To: <sip:81112223344@СЕРВЕР>;tag=as41f59858
Call-ID: 76589MmUyNTg3MWE2ZmFjYWI4MDQ1YWFhMWY5MzRmM2NhODg
CSeq: 2 INVITE
Server: FPBX-2.11.0(11.21.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 120;refresher=uas
Contact: <sip:81112223344@СЕРВЕР:5060>
Content-Length: 0
16:35:55.175752 IP (tos 0x60, ttl 64, id 15413, offset 0, flags [none], proto: UDP (17), length: 873) СЕРВЕР.sip > КЛИЕНТ.52125: SIP, length: 845
SIP/2.0 200 OK
Via: SIP/2.0/UDP КЛИЕНТ:52125;branch=z9hG4bK-524287-1---62a6472de4892b5b;received=КЛИЕНТ;rport=52125
From: "777"<sip:777@СЕРВЕР>;tag=54b32d7b
To: <sip:81112223344@СЕРВЕР>;tag=as41f59858
Call-ID: 76589MmUyNTg3MWE2ZmFjYWI4MDQ1YWFhMWY5MzRmM2NhODg
CSeq: 2 INVITE
Server: FPBX-2.11.0(11.21.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 120;refresher=uas
Contact: <sip:81112223344@СЕРВЕР:5060>
Content-Type: application/sdp
Content-Length: 258
v=0
o=root 1178114513 1178114513 IN IP4 СЕРВЕР
s=Asterisk PBX 11.21.0
c=IN IP4 СЕРВЕР
t=0 0
m=audio 11574 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
16:35:55.180542 IP (tos 0x0, ttl 128, id 22859, offset 0, flags [none], proto: UDP (17), length: 481) КЛИЕНТ.52125 > СЕРВЕР.sip: SIP, length: 453
ACK sip:81112223344@СЕРВЕР:5060 SIP/2.0
Via: SIP/2.0/UDP КЛИЕНТ:52125;branch=z9hG4bK-524287-1---8ee2a338fa25ac68;rport
Max-Forwards: 70
Contact: <sip:777@КЛИЕНТ:52125;rinstance=c5f5d9339468104f>
To: <sip:81112223344@СЕРВЕР>;tag=as41f59858
From: "777"<sip:777@СЕРВЕР>;tag=54b32d7b
Call-ID: 76589MmUyNTg3MWE2ZmFjYWI4MDQ1YWFhMWY5MzRmM2NhODg
CSeq: 2 ACK
User-Agent: X-Lite 4.8.4 76589-926d43be-W6.2
Content-Length: 0
BYE sip:777@КЛИЕНТ:52125;rinstance=c5f5d9339468104f SIP/2.0
Via: SIP/2.0/UDP СЕРВЕР:5060;branch=z9hG4bK20e1afd9;rport
Max-Forwards: 70
From: <sip:81112223344@СЕРВЕР>;tag=as41f59858
To: "777"<sip:777@СЕРВЕР>;tag=54b32d7b
Call-ID: 76589MmUyNTg3MWE2ZmFjYWI4MDQ1YWFhMWY5MzRmM2NhODg
CSeq: 102 BYE
User-Agent: FPBX-2.11.0(11.21.0)
Proxy-Authorization: Digest username="777", realm="asterisk", algorithm=MD5, uri="sip:СЕРВЕР", nonce="3a7b4f62", response="e3be3f37e01cd6ce72fb751ae1aeb6ab"
X-Asterisk-HangupCause: Normal Clearing
X-Asterisk-HangupCauseCode: 16
Content-Length: 0
16:36:03.342962 IP (tos 0x0, ttl 128, id 22924, offset 0, flags [none], proto: UDP (17), length: 419) КЛИЕНТ.52125 > СЕРВЕР.sip: SIP, length: 391
SIP/2.0 200 OK
Via: SIP/2.0/UDP СЕРВЕР:5060;branch=z9hG4bK20e1afd9;rport=5060
Contact: <sip:777@КЛИЕНТ:52125;rinstance=c5f5d9339468104f>
To: "777"<sip:777@СЕРВЕР>;tag=54b32d7b
From: <sip:81112223344@СЕРВЕР>;tag=as41f59858
Call-ID: 76589MmUyNTg3MWE2ZmFjYWI4MDQ1YWFhMWY5MzRmM2NhODg
CSeq: 102 BYE
User-Agent: X-Lite release 4.8.4 stamp 76589
Content-Length: 0
Код: Выделить всё
Module Description Use Count
res_timing_dahdi.so DAHDI Timing Interface 21
res_timing_pthread.so pthread Timing Interface 0
2 modules loaded
Но я никак не могу проверить по факту включен ли internal_timing или нет, в настройках asterisk вообще упоминания о нем нет:
Код: Выделить всё
PBX Core settings
-----------------
Version: 11.21.0
Build Options: LOADABLE_MODULES, BUSYDETECT_TONEONLY
Maximum calls: Not set
Maximum open file handles: Not set
Root console verbosity: 3
Current console verbosity: 0
Debug level: 0
Maximum load average: 0.000000
Minimum free memory: 0 MB
Startup time: 23:23:15
Last reload time: 15:59:41
System: Linux/2.6.18-371.8.1.el5 built by palosanto on x86_64 2016-01-31 11:48:04 UTC
System name:
Entity ID: 00:1e:67:0e:28:56
Default language: en
Language prefix: Enabled
User name and group: /
Executable includes: Enabled
Transcode via SLIN: Enabled
Transmit silence during rec: Enabled
Generic PLC: Enabled
Min DTMF duration:: 80
* Subsystems
-------------
Manager (AMI): Enabled
Web Manager (AMI/HTTP): Disabled
Call data records: Enabled
Realtime Architecture (ARA): Disabled
* Directories
-------------
Configuration file:
Configuration directory: /etc/asterisk
Module directory: /usr/lib64/asterisk/modules
Spool directory: /var/spool/asterisk
Log directory: /var/log/asterisk
Run/Sockets directory: /var/run/asterisk
PID file: /var/run/asterisk/asterisk.pid
VarLib directory: /var/lib/asterisk
Data directory: /var/lib/asterisk
ASTDB: /var/lib/asterisk/astdb
IAX2 Keys directory: /var/lib/asterisk/keys
AGI Scripts directory: /var/lib/asterisk/agi-bin
Еще одна тема один в один на другом сайте (англ): http://forums.asterisk.org/viewtopic.ph ... 95&start=0, но там тоже нет решения вопроса.