Summary: | ASTERISK-28183: Channel SIP message notifier | ||
Reporter: | sungtae kim (pchero) | Labels: | pjsip |
Date Opened: | 2018-11-26 18:18:06.000-0600 | Date Closed: | |
Priority: | Minor | Regression? | |
Status: | In Progress/In Progress | Components: | Resources/NewFeature |
Versions: | 16.0.0 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | Sending a event notification for SIP message.
This module is sending an event messages for a given channel's SIP messages. * type: ChannelSipMessage * direction: direction of message(incoming request, incoming response, outgoing request, outgoing response). * channel: corresponding channel info. * method: method name. {noformat} {"type":"EndpointStateChange","timestamp":"2018-11-27T01:08:28.846+0100","endpoint":{"technology":"PJSIP","resource":"test","state":"online","channel_ids":["1543277308.2"]},"asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"type":"ChannelCreated","timestamp":"2018-11-27T01:08:28.846+0100","channel":{"id":"1543277308.2","name":"PJSIP/test-00000001","state":"Ring","caller":{"name":"sipp","number":"sipp"},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"test","exten":"test","priority":1},"creationtime":"2018-11-27T01:08:28.846+0100","language":"en"},"asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"direction":"incoming request","method":"INVITE","raw":"INVITE sip:test@192.168.200.20:5060 SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.200.20:5061;branch=z9hG4bK-31665-1-0\r\nFrom: sipp <sip:sipp@192.168.200.20:5061>;tag=31665SIPpTag001\r\nTo: test <sip:test@192.168.200.20:5060>\r\nCall-ID: 1-31665@192.168.200.20\r\nCSeq: 1 INVITE\r\nContact: sip:sipp@192.168.200.20:5061\r\nMax-Forwards: 70\r\nSubject: Performance Test\r\nContent-Type: application/sdp\r\nContent-Length: 139\r\n\r\nv=0\r\no=user1 53655765 2353687637 IN IP4 192.168.200.20\r\ns=-\r\nc=IN IP4 192.168.200.20\r\nt=0 0\r\nm=audio 6000 RTP/AVP 0\r\na=rtpmap:0 PCMU/8000\r\n","channel":{"id":"1543277308.2","name":"PJSIP/test-00000001","state":"Ring","caller":{"name":"sipp","number":"sipp"},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"test","exten":"test","priority":1},"creationtime":"2018-11-27T01:08:28.846+0100","language":"en"},"type":"ChannelSipMessage","timestamp":"2018-11-27T01:08:28.846+0100","asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"type":"ChannelDialplan","timestamp":"2018-11-27T01:08:28.848+0100","dialplan_app":"NoOp","dialplan_app_data":"Test dialplan","channel":{"id":"1543277308.2","name":"PJSIP/test-00000001","state":"Ring","caller":{"name":"sipp","number":"sipp"},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"test","exten":"test","priority":1},"creationtime":"2018-11-27T01:08:28.846+0100","language":"en"},"asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"type":"ChannelDialplan","timestamp":"2018-11-27T01:08:28.848+0100","dialplan_app":"Answer","dialplan_app_data":"","channel":{"id":"1543277308.2","name":"PJSIP/test-00000001","state":"Ring","caller":{"name":"sipp","number":"sipp"},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"test","exten":"test","priority":2},"creationtime":"2018-11-27T01:08:28.846+0100","language":"en"},"asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"type":"ChannelStateChange","timestamp":"2018-11-27T01:08:28.848+0100","channel":{"id":"1543277308.2","name":"PJSIP/test-00000001","state":"Up","caller":{"name":"sipp","number":"sipp"},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"test","exten":"test","priority":2},"creationtime":"2018-11-27T01:08:28.846+0100","language":"en"},"asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"direction":"outgoing response","method":"INVITE","raw":"SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 192.168.200.20:5061;rport=5061;received=192.168.200.20;branch=z9hG4bK-31665-1-0\r\nCall-ID: 1-31665@192.168.200.20\r\nFrom: \"sipp\" <sip:sipp@192.168.200.20>;tag=31665SIPpTag001\r\nTo: \"test\" <sip:test@192.168.200.20>;tag=fab4012a-4d08-473d-82a8-ea4ca3b5c69d\r\nCSeq: 1 INVITE\r\nServer: Asterisk PBX GIT-master-b7af9c8b19\r\nContact: <sip:10.0.2.15:5060>\r\nAllow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER\r\nSupported: 100rel, timer, replaces, norefersub\r\nContent-Type: application/sdp\r\nContent-Length: 173\r\n\r\nv=0\r\no=- 53655765 2353687639 IN IP4 10.0.2.15\r\ns=Asterisk\r\nc=IN IP4 10.0.2.15\r\nt=0 0\r\nm=audio 16600 RTP/AVP 0\r\na=rtpmap:0 PCMU/8000\r\na=ptime:20\r\na=maxptime:150\r\na=sendrecv\r\n","channel":{"id":"1543277308.2","name":"PJSIP/test-00000001","state":"Up","caller":{"name":"sipp","number":"sipp"},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"test","exten":"test","priority":2},"creationtime":"2018-11-27T01:08:28.846+0100","language":"en"},"type":"ChannelSipMessage","timestamp":"2018-11-27T01:08:28.849+0100","asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"direction":"incoming request","method":"ACK","raw":"ACK sip:test@192.168.200.20:5060 SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.200.20:5061;branch=z9hG4bK-31665-1-5\r\nFrom: sipp <sip:sipp@192.168.200.20:5061>;tag=31665SIPpTag001\r\nTo: test <sip:test@192.168.200.20:5060>;tag=fab4012a-4d08-473d-82a8-ea4ca3b5c69d\r\nCall-ID: 1-31665@192.168.200.20\r\nCSeq: 1 ACK\r\nContact: sip:sipp@192.168.200.20:5061\r\nMax-Forwards: 70\r\nSubject: Performance Test\r\nContent-Length: 0\r\n\r\n","channel":{"id":"1543277308.2","name":"PJSIP/test-00000001","state":"Up","caller":{"name":"sipp","number":"sipp"},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"test","exten":"test","priority":2},"creationtime":"2018-11-27T01:08:28.846+0100","language":"en"},"type":"ChannelSipMessage","timestamp":"2018-11-27T01:08:28.849+0100","asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"type":"ChannelDialplan","timestamp":"2018-11-27T01:08:29.350+0100","dialplan_app":"Hangup","dialplan_app_data":"","channel":{"id":"1543277308.2","name":"PJSIP/test-00000001","state":"Up","caller":{"name":"sipp","number":"sipp"},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"test","exten":"test","priority":3},"creationtime":"2018-11-27T01:08:28.846+0100","language":"en"},"asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"cause":16,"soft":true,"type":"ChannelHangupRequest","timestamp":"2018-11-27T01:08:29.350+0100","channel":{"id":"1543277308.2","name":"PJSIP/test-00000001","state":"Up","caller":{"name":"sipp","number":"sipp"},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"test","exten":"test","priority":3},"creationtime":"2018-11-27T01:08:28.846+0100","language":"en"},"asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"direction":"outgoing request","method":"BYE","raw":"BYE sip:sipp@192.168.200.20:5061 SIP/2.0\r\nVia: SIP/2.0/ ;rport\r\nFrom: \"test\" <sip:test@192.168.200.20>;tag=fab4012a-4d08-473d-82a8-ea4ca3b5c69d\r\nTo: \"sipp\" <sip:sipp@192.168.200.20>;tag=31665SIPpTag001\r\nCall-ID: 1-31665@192.168.200.20\r\nCSeq: 20722 BYE\r\nReason: Q.850;cause=16\r\nContent-Length: 0\r\n\r\n","channel":{"id":"1543277308.2","name":"PJSIP/test-00000001","state":"Up","caller":{"name":"sipp","number":"sipp"},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"test","exten":"test","priority":3},"creationtime":"2018-11-27T01:08:28.846+0100","language":"en"},"type":"ChannelSipMessage","timestamp":"2018-11-27T01:08:29.352+0100","asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"type":"ChannelDestroyed","timestamp":"2018-11-27T01:08:29.352+0100","cause":16,"cause_txt":"Normal Clearing","channel":{"id":"1543277308.2","name":"PJSIP/test-00000001","state":"Up","caller":{"name":"sipp","number":"sipp"},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"test","exten":"test","priority":3},"creationtime":"2018-11-27T01:08:28.846+0100","language":"en"},"asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {"type":"EndpointStateChange","timestamp":"2018-11-27T01:08:29.353+0100","endpoint":{"technology":"PJSIP","resource":"test","state":"online","channel_ids":[]},"asterisk_id":"08:00:27:2f:9e:d4","application":"hello-world"} {noformat} | ||
Comments: | By: Asterisk Team (asteriskteam) 2018-11-26 18:18:08.268-0600 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. |