{"action":"created","issue":{"url":"https://api.github.com/repos/davehorton/drachtio-server/issues/41","repository_url":"https://api.github.com/repos/davehorton/drachtio-server","labels_url":"https://api.github.com/repos/davehorton/drachtio-server/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/davehorton/drachtio-server/issues/41/comments","events_url":"https://api.github.com/repos/davehorton/drachtio-server/issues/41/events","html_url":"https://github.com/davehorton/drachtio-server/issues/41","id":342605101,"node_id":"MDU6SXNzdWUzNDI2MDUxMDE=","number":41,"title":"Drachtio-Server doesn't send ACK to 200 OK Message","user":{"login":"salihy","id":4982519,"node_id":"MDQ6VXNlcjQ5ODI1MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/4982519?v=4","gravatar_id":"","url":"https://api.github.com/users/salihy","html_url":"https://github.com/salihy","followers_url":"https://api.github.com/users/salihy/followers","following_url":"https://api.github.com/users/salihy/following{/other_user}","gists_url":"https://api.github.com/users/salihy/gists{/gist_id}","starred_url":"https://api.github.com/users/salihy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salihy/subscriptions","organizations_url":"https://api.github.com/users/salihy/orgs","repos_url":"https://api.github.com/users/salihy/repos","events_url":"https://api.github.com/users/salihy/events{/privacy}","received_events_url":"https://api.github.com/users/salihy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-07-19T07:10:54Z","updated_at":"2018-07-23T07:53:01Z","closed_at":null,"author_association":"NONE","body":"Hi, I am trying to use drachtio as a B2BUA with Rtpengine, everything works fine except 2 minor problems.\r\n\r\n1, When trunk sends 200 OK with SDP, I think drachtio should send ACK message, here is a sample log from drachtio-server (192.168.0.87)\r\n![image](https://user-images.githubusercontent.com/4982519/42926557-75691322-8b3a-11e8-8a6e-553a27d6f569.png)\r\n\r\nAnd here is eyebeam softphone with same trunk (192.168.1.50)\r\n![image](https://user-images.githubusercontent.com/4982519/42926613-a1a108a0-8b3a-11e8-965b-43fc67c23b06.png)\r\n\r\n2. When creating rtpengine and b2bua, cannot create uas object but rtp and sip works, when destroying call, since it cannot find uas object, call cannot be disconnected automatically.\r\nHere is Error:\r\n\r\n> Error proxying call with media: TypeError: Cannot destructure property `uas` of 'undefined' or 'null'.: TypeError: Cannot destructure property `uas` of 'undefined' or 'null'.\r\n    at rtpengine.offer.then.then.then (C:\\TFS\\vcp\\vcp.B2BUAVirtualPbx\\app.js:266:19)\r\n\r\nHere is Code:\r\n    \r\n```\r\n        dest = `sip:${uri.user}@${config.get('destination')}`;\r\n        var trunk = config.get(\"trunks\")[0];\r\n        //dest = `sip:${config.get('FromAccount')}@${config.get('destination')}`\r\n\r\n        //req.callingNumber = config.get('FromAccount');\r\n\r\n        rtpengine.offer(locRtp, Object.assign(details, { 'sdp': req.body, 'record call': 'yes' }))\r\n            .then((rtpResponse) => {\r\n                console.log(`got response from rtpengine: ${JSON.stringify(rtpResponse)}`);\r\n                if (rtpResponse && rtpResponse.result === 'ok') return rtpResponse.sdp;\r\n                throw new Error('rtpengine failure');\r\n            })\r\n            .then((sdpB) => {\r\n                console.log(`rtpengine offer returned sdp ${sdpB}`);\r\n                return srf.createB2BUA(req, res, dest, {\r\n                    localSdpB: sdpB,\r\n                    localSdpA: getSdpA.bind(null, details),\r\n                    auth: {\r\n                        username: trunk.username,\r\n                        password: trunk.password\r\n                    }\r\n                })\r\n                .catch((err) => {\r\n                    console.log(`Error connecting call: ${err.message}`);\r\n                });\r\n            })\r\n            .then(({ uas, uac }) => {\r\n                console.log('call connected with media proxy');\r\n\r\n                return endCall(uas, uac, details);\r\n            })\r\n            .catch((err) => {\r\n                console.error(`Error proxying call with media: ${err}: ${err.stack}`);\r\n            });\r\n```"},"comment":{"url":"https://api.github.com/repos/davehorton/drachtio-server/issues/comments/406971436","html_url":"https://github.com/davehorton/drachtio-server/issues/41#issuecomment-406971436","issue_url":"https://api.github.com/repos/davehorton/drachtio-server/issues/41","id":406971436,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjk3MTQzNg==","user":{"login":"salihy","id":4982519,"node_id":"MDQ6VXNlcjQ5ODI1MTk=","avatar_url":"https://avatars1.githubusercontent.com/u/4982519?v=4","gravatar_id":"","url":"https://api.github.com/users/salihy","html_url":"https://github.com/salihy","followers_url":"https://api.github.com/users/salihy/followers","following_url":"https://api.github.com/users/salihy/following{/other_user}","gists_url":"https://api.github.com/users/salihy/gists{/gist_id}","starred_url":"https://api.github.com/users/salihy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salihy/subscriptions","organizations_url":"https://api.github.com/users/salihy/orgs","repos_url":"https://api.github.com/users/salihy/repos","events_url":"https://api.github.com/users/salihy/events{/privacy}","received_events_url":"https://api.github.com/users/salihy/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T07:53:01Z","updated_at":"2018-07-23T07:53:01Z","author_association":"NONE","body":"First problem continues.\r\n\r\n![image](https://user-images.githubusercontent.com/4982519/43064076-8fd76ad6-8e66-11e8-84a4-ac0a809171e0.png)\r\n"}}
{"actor":{"display_login":"salihy"}}