Summary: | ASTERISK-02152: chan_mgcp.c does not support PING event | ||
Reporter: | duanecox (duanecox) | Labels: | |
Date Opened: | 2004-07-30 12:47:15 | Date Closed: | 2004-09-25 02:12:17 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) chan_mgcp.c.patch | |
Description: | I've looked through the chan_mgcp.c source and have found that * does not support the PING event. We would like to use this with our device (which supports it) as a heartbeat feature. I'm not sure what kind of response * should send back, maybe just something like a "PONG" Not sure what the spec is. This feature is also available in the CISCO ATA18x ****** ADDITIONAL INFORMATION ****** PING PERIOD (Bits 8-15) : (MGCP ONLY) Period in idle state before a NTFY command with observed event "O: X-NET/ping" is sent to the call agent. This scheme simulates sending a PING and expecting any kind of response. Range = 0 to 255 (seconds) Default: 0 (inactive) DEBUG: ntfy 24050 aaln/*@[63.252.240.2] MGCP 1.0 X: 0 O: X-NET/ping from 63.252.240.2:2427MGCP read: ntfy 24050 aaln/*@[63.252.240.2] MGCP 1.0 X: 0 O: X-NET/ping from 63.252.240.2:2427Verb: 'ntfy', Identifier: '24050', Endpoint: 'aaln/*@[63.252.240.2]', Version: 'MGCP 1.0' 3 headers, 0 lines Handling request 'ntfy' on aaln/*@63.252.240.2 Transmitting:> set verbose 10 200 24050 OK to 63.252.240.2:2427 -- Endpoint 'aaln/*@63.252.240.2-1' observed 'ping' -- MGCP Asked to indicate tone: on aaln/*@63.252.240.2-1 in cxmode: inactive Posting Request:et verbose 10 RQNT 167 aaln/*@[63.252.240.2] MGCP 1.0 X: 6b8b4567 R: L/hd(N) to 63.252.240.2:2427 Jul 30 11:33:59 NOTICE[98310]: chan_mgcp.c:3079 handle_request: Received unknown event 'ping' from aaln/*@63.252.240.2 MGCP read: LI> set verbose 10 200 167 OK from 63.252.240.2:2427MGCP read: 200 167 OK from 63.252.240.2:2427Verb: '200', Identifier: '167', Endpoint: 'OK', Version: '(null)' 1 headers, 0 lines verbose 10 | ||
Comments: | By: duanecox (duanecox) 2004-07-30 13:19:56 * transmits back verb 200 "OK" patch removes verbose error: ntfy 24160 aaln/*@[63.252.240.2] MGCP 1.0 X: 0 O: X-NET/ping from 63.252.240.2:2427MGCP read: ntfy 24160 aaln/*@[63.252.240.2] MGCP 1.0 X: 0 O: X-NET/ping from 63.252.240.2:2427Verb: 'ntfy', Identifier: '24160', Endpoint: 'aaln/*@[63.252.240.2]', Version: 'MGCP 1.0' 3 headers, 0 lines Handling request 'ntfy' on aaln/*@63.252.240.2 Transmitting:> 200 24160 OK to 63.252.240.2:2427 -- Endpoint 'aaln/*@63.252.240.2-1' observed 'ping' -- MGCP Asked to indicate tone: on aaln/*@63.252.240.2-1 in cxmode: inactive Posting Request: RQNT 8 aaln/*@[63.252.240.2] MGCP 1.0 X: 6b8b4567 R: L/hd(N) to 63.252.240.2:2427 MGCP read: LI> 200 8 OK from 63.252.240.2:2427MGCP read: 200 8 OK from 63.252.240.2:2427Verb: '200', Identifier: '8', Endpoint: 'OK', Version: '(null)' 1 headers, 0 lines By: Malcolm Davenport (mdavenport) 2004-07-30 14:16:21 Added to CVS. Thank you. |