[asterisk-bugs] [JIRA] (ASTERISK-28183) Channel SIP message notifier
Joshua C. Colp (JIRA)
noreply at issues.asterisk.org
Tue Nov 27 04:58:50 CST 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-28183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on ASTERISK-28183 started by sungtae kim.
> Channel SIP message notifier
> ----------------------------
>
> Key: ASTERISK-28183
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-28183
> Project: Asterisk
> Issue Type: New Feature
> Security Level: None
> Components: Resources/NewFeature
> Affects Versions: 16.0.0
> Reporter: sungtae kim
> Assignee: sungtae kim
> Severity: Minor
> Labels: pjsip
>
> 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 at 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 at 192.168.200.20:5061>;tag=31665SIPpTag001\r\nTo: test <sip:test at 192.168.200.20:5060>\r\nCall-ID: 1-31665 at 192.168.200.20\r\nCSeq: 1 INVITE\r\nContact: sip:sipp at 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 at 192.168.200.20\r\nFrom: \"sipp\" <sip:sipp at 192.168.200.20>;tag=31665SIPpTag001\r\nTo: \"test\" <sip:test at 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 at 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 at 192.168.200.20:5061>;tag=31665SIPpTag001\r\nTo: test <sip:test at 192.168.200.20:5060>;tag=fab4012a-4d08-473d-82a8-ea4ca3b5c69d\r\nCall-ID: 1-31665 at 192.168.200.20\r\nCSeq: 1 ACK\r\nContact: sip:sipp at 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 at 192.168.200.20:5061 SIP/2.0\r\nVia: SIP/2.0/ ;rport\r\nFrom: \"test\" <sip:test at 192.168.200.20>;tag=fab4012a-4d08-473d-82a8-ea4ca3b5c69d\r\nTo: \"sipp\" <sip:sipp at 192.168.200.20>;tag=31665SIPpTag001\r\nCall-ID: 1-31665 at 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}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list