Проблемма с MGCP
Решил попробовать * как тестер для своего шлюза MGCP. пытаюсь "зарегистрироваться" на * в ответ на RSIP отвечает OK дальше по RFC3435 должен послать RQNT а он молчит. Решил попробовать с CISCO ATA-186 ситуация аналогичная RQNT приходит только после снятия трубки на киске, в моем стеке подобные действия вызывают законные возмущения дескать не определены возможности шлюза чего трубку дергаешь. Может я что-то настраиваю не так? Есть возможность чтобы * нормально выдавал RQNT?
Asterisk version - 1.4.21
Конфиг для моего шлюза:
[192.168.138.12]
host = 192.168.138.12
port = 2428
nat=no
context=from-mgcp
canreinvite = no
wcardep=aaln/*
callerid="64-mgcp" <121000>
dtmfmode=none
slowsequence=no
transfer=no
line => aaln/0
callerid="64-mgcp" <121001>
line => aaln/1
Конфиг для киски:
[192.168.138.70] ; Mac address of the ATA will be used as ID
; in the ATA config "Domain" must be set to "*" to use MAC as ID.
; The MAC address is pronted under your ATA
host = 192.168.138.70 ; addresse of the ATA converter (often provided by DHCP)
context=from-mgcp ; Context where call coming from the ATA will be presented
canreinvite = no ; Force connection via the Asterisk server
nat=no ; Be simple first add a NAT later if needed
wcardep=* ; Required to access some generic message (eg. RestartInProgress at ATA reboot)
callerid="Ata186 Dominique 1" Ext1
callerid="Ata186 Dominique 2" Ext2
line => aaln/1
line => aaln/2
Лог "регистрации" киски:
MGCP read:
RSIP 1 *@192.168.138.70 MGCP 1.0
RM: restart
from 192.168.138.70:2427
Verb: 'RSIP', Identifier: '1', Endpoint: '*@192.168.138.70', Version: 'MGCP 1.0'
2 headers, 0 lines
Handling request 'RSIP' on *@192.168.138.70
-- Resetting interface aaln/2@192.168.138.70
-- Resetting interface aaln/1@192.168.138.70
Transmitting:
200 1 OK
to 192.168.138.70:2427
*CLI>
*CLI> MGCP read:
NTFY 2 aaln/1@192.168.138.70 MGCP 1.0
X: 0
O: L/hd
K: 1
from 192.168.138.70:2427
Verb: 'NTFY', Identifier: '2', Endpoint: 'aaln/1@192.168.138.70', Version: 'MGCP 1.0'
4 headers, 0 lines
Handling request 'NTFY' on aaln/1@192.168.138.70
Transmitting:
200 2 OK
to 192.168.138.70:2427
-- Creating connection for aaln/1@192.168.138.70-1 in cxmode: sendrecv callid: 6620f70c3a52b2c3
We're at 192.168.138.55 port 16516
Answering with capability 4
Answering with capability 8
Posting Request:
CRCX 9 aaln/1@[192.168.138.70] MGCP 1.0
C: 6620f70c3a52b2c3
L: p:20, a:PCMU, a:PCMA
M: sendrecv
X: 3a52b2c3
v=0
o=root 19803 19803 IN IP4 192.168.138.55
s=session
c=IN IP4 192.168.138.55
t=0 0
m=audio 16516 RTP/AVP 0 8
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
to 192.168.138.70:2427
-- MGCP Asked to indicate tone: L/dl on aaln/1@192.168.138.70-1 in cxmode: sendrecv
Posting Request:
RQNT 10 aaln/1@[192.168.138.70] MGCP 1.0
X: 783cbd56
R: L/hu(N),L/hf(N),D/[0-9#*](N)
S: L/dl
to 192.168.138.70:2427
-- MGCP mgcp_new(MGCP/aaln/1@192.168.138.70-1) created in state: Down
MGCP read:
200 9 OK
I: 0
v=0
c=IN IP4 192.168.138.70
m=audio 16384 RTP/AVP 0 8
from 192.168.138.70:2427
Verb: '200', Identifier: '9', Endpoint: 'OK', Version: '(null)'
2 headers, 3 lines
Capabilities: us - 12, them - 12, combined - 12
Non-codec capabilities: us - 1, them - 0, combined - 0
MGCP read:
200 10 OK
from 192.168.138.70:2427
Verb: '200', Identifier: '10', Endpoint: 'OK', Version: '(null)'
1 headers, 0 lines
MGCP read:
NTFY 3 aaln/1@192.168.138.70 MGCP 1.0
X: 783cbd56
O: L/hu
K: 2
from 192.168.138.70:2427
Verb: 'NTFY', Identifier: '3', Endpoint: 'aaln/1@192.168.138.70', Version: 'MGCP 1.0'
4 headers, 0 lines
Handling request 'NTFY' on aaln/1@192.168.138.70
Transmitting:
200 3 OK
to 192.168.138.70:2427
-- MGCP Asked to indicate tone: G/cg on aaln/1@192.168.138.70-1 in cxmode: recvonly
Posting Request:
RQNT 11 aaln/1@[192.168.138.70] MGCP 1.0
X: 783cbd56
R: L/hd(N)
S: G/cg
to 192.168.138.70:2427
-- MGCP mgcp_hangup(MGCP/aaln/1@192.168.138.70-1) on aaln/1@192.168.138.70
-- Delete connection 0 aaln/1@192.168.138.70-1 with new mode: recvonly on callid: 6620f70c3a52b2c3
Posting Request:
DLCX 12 aaln/1@[192.168.138.70] MGCP 1.0
C: 6620f70c3a52b2c3
X: 3a52b2c3
I: 0
to 192.168.138.70:2427
-- MGCP Asked to indicate tone: on aaln/1@192.168.138.70-1 in cxmode: recvonly
Queueing Request:
RQNT 13 aaln/1@[192.168.138.70] MGCP 1.0
X: 783cbd56
R: L/hd(N)
to 192.168.138.70:2427
-- MGCP mgcp_hangup(MGCP/aaln/1@192.168.138.70-1) on aaln/1@192.168.138.70 set vmwi(-)
-- MGCP Asked to indicate tone: L/vmwi(-) on aaln/1@192.168.138.70-1 in cxmode: inactive
Queueing Request:
RQNT 14 aaln/1@[192.168.138.70] MGCP 1.0
X: 783cbd56
R: L/hd(N)
S: L/vmwi(-)
to 192.168.138.70:2427
MGCP read:
200 11 OK
from 192.168.138.70:2427
Verb: '200', Identifier: '11', Endpoint: 'OK', Version: '(null)'
1 headers, 0 lines
Posting Queued Request:
RQNT 13 aaln/1@[192.168.138.70] MGCP 1.0
X: 783cbd56
R: L/hd(N)
to 192.168.138.70:2427
MGCP read:
250 12 OK
from 192.168.138.70:2427
Verb: '250', Identifier: '12', Endpoint: 'OK', Version: '(null)'
1 headers, 0 lines
MGCP read:
200 13 OK
from 192.168.138.70:2427
Verb: '200', Identifier: '13', Endpoint: 'OK', Version: '(null)'
1 headers, 0 lines
Posting Queued Request:
RQNT 14 aaln/1@[192.168.138.70] MGCP 1.0
X: 783cbd56
R: L/hd(N)
S: L/vmwi(-)
to 192.168.138.70:2427
MGCP read:
200 14 OK
from 192.168.138.70:2427
Verb: '200', Identifier: '14', Endpoint: 'OK', Version: '(null)'
1 headers, 0 lines
*CLI> Beginning asterisk shutdown....
Executing last minute cleanups
== Destroying musiconhold processes
Asterisk cleanly ending (0).
|