davehorton / drachtio-siprec-recording-client

SIP outbound proxy based on drachtio and freeswitch that includes siprec client functionality
MIT License
19 stars 6 forks source link

No RTP on siprec server while using siprec-recording-server #3

Closed kavinchauhan closed 3 years ago

kavinchauhan commented 3 years ago

I have configured siprec-recording-client using docker. in test scenario siprec server is sipp scenario running on separate docker.

But when I put external siprec server in config file and start client, signalling work perfectly but I am not getting any media and so no call recording available on siprec server.

{"level":30,"time":1618921087277,"msg":"received INVITE from XXXXXX: uri: sip:service@172.31.23.28:5062  {\"family\":\"ipv4\",\"scheme\":\"sip\",\"user\":\"service\",\"host\":\"172.31.23.28\",\"port\":5062,\"params\":{},\"headers\":{}}","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921087800,"msg":"created conference: anon-bc51106d-cd73-4009-9f9a-cce2353b3f82","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921087885,"msg":"incoming member id 27","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921087947,"msg":"outgoing member id 28","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921088012,"msg":"siprecCaller member id 29","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921088076,"msg":"siprecCallee member id 30","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921088118,"msg":"response to conference relate cmd: {\"headers\":[{\"name\":\"Content-Type\",\"value\":\"api/response\"},{\"name\":\"Content-Length\",\"value\":22}],\"hPtr\":null,\"body\":\"+OK 29->28 nohear set\\n\"}","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921088162,"msg":"outdialing sip:service@172.31.23.28:5062","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921088250,"msg":"successfully connected caller, now attempting siprec INVITE","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921088251,"msg":"from: {\"family\":\"ipv4\",\"scheme\":\"sip\",\"user\":\"sipp\",\"host\":\"172.31.20.204\",\"port\":5160,\"params\":{},\"headers\":{}}","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921088251,"msg":"to: {\"family\":\"ipv4\",\"scheme\":\"sip\",\"user\":\"service\",\"host\":\"XXXXXXX\",\"port\":5060,\"params\":{},\"headers\":{}}","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921088251,"msg":"siprec body: --uniqueBoundary\r\nContent-Type: application/sdp\r\n\r\nv=0\r\no=FreeSWITCH 1618901611 1618901612 IN IP4 XXXXXX\r\ns=FreeSWITCH\r\nc=IN IP4 XXXXXX\r\nt=0 0\r\nm=video 27252 RTP/AVP 103\r\nb=AS:1024\r\na=rtpmap:103 VP8/90000\r\na=sendonly\r\na=rtcp-fb:103 ccm fir\r\na=rtcp-fb:103 ccm tmmbr\r\na=rtcp-fb:103 nack\r\na=rtcp-fb:103 nack pli\r\nm=video 24224 RTP/AVP 103\r\nb=AS:1024\r\na=rtpmap:103 VP8/90000\r\na=sendonly\r\na=rtcp-fb:103 ccm fir\r\na=rtcp-fb:103 ccm tmmbr\r\na=rtcp-fb:103 nack\r\na=rtcp-fb:103 nack pli\r\n\r\n--uniqueBoundary\r\nContent-Type: application/rs-metadata+xml\r\n\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<recording xmlns=\"urn:ietf:params:xml:ns:recording:1\">\r\n  <datamode>complete</datamode>\r\n  <session session_id=\"9cdd6070-238d-468f-a422-2445504d7980\">\r\n    <sipSessionID>1-2078@172.31.20.204</sipSessionID>\r\n    <start-time>2021-04-20T12:18:08+00:00</start-time>\r\n  </session>\r\n  <participant participant_id=\"kQNhKFdEEeeJ99D/VsPGWA==\">\r\n    <nameID aor=\"sip:sipp@172.31.20.204\">\r\n      <name>sipp</name>\r\n    </nameID>\r\n  </participant>\r\n  <participantsessionassoc participant_id=\"kQNhKFdEEeeJ99D/VsPGWA==\" session_id=\"9cdd6070-238d-468f-a422-2445504d7980\">\r\n    <associate-time>2021-04-20T12:18:08+00:00</associate-time>\r\n  </participantsessionassoc>\r\n  <stream stream_id=\"kQOH5VdEEeeJ/ND/VsPGWA==\" session_id=\"kQNhKFdEEeeJ9tD/VsPGWA==\">\r\n    <label>1</label>\r\n  </stream>\r\n  <participant participant_id=\"kQNhKFdEEeeJ+ND/VsPGWA==\">\r\n    <nameID aor=\"sip:service@XXXXXX\">\r\n      <name>service</name>\r\n    </nameID>\r\n  </participant>\r\n  <participantsessionassoc participant_id=\"kQNhKFdEEeeJ+ND/VsPGWA==\" session_id=\"9cdd6070-238d-468f-a422-2445504d7980\">\r\n    <associate-time>2021-04-20T12:18:08+00:00</associate-time>\r\n  </participantsessionassoc>\r\n  <stream stream_id=\"kQOH5VdEEeeJ/dD/VsPGWA==\" session_id=\"9cdd6070-238d-468f-a422-2445504d7980\">\r\n    <label>2</label>\r\n  </stream>\r\n  <participantstreamassoc participant_id=\"kQNhKFdEEeeJ99D/VsPGWA==\">\r\n    <send>kQOH5VdEEeeJ/ND/VsPGWA==</send>\r\n    <recv>kQOH5VdEEeeJ/dD/VsPGWA==</recv>\r\n  </participantstreamassoc>\r\n  <participantstreamassoc participant_id=\"kQNhKFdEEeeJ+ND/VsPGWA==\">\r\n    <send>kQOH5VdEEeeJ/dD/VsPGWA==</send>\r\n    <recv>kQOH5VdEEeeJ/ND/VsPGWA==</recv>\r\n  </participantstreamassoc>\r\n</recording>\r\n\r\n--uniqueBoundary\r\n","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921088315,"msg":"successfully connected siprec","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921148256,"msg":"caller hung up, ending call","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
{"level":30,"time":1618921148257,"msg":"ending call","pid":6069,"hostname":"ip-172-31-23-28","callid":"1-2078@172.31.20.204","v":1}
kavinchauhan commented 3 years ago

I have to pass parameter -g711only with fs docker and it's start working.