drachtio / drachtio-siprec-recording-server

SIPREC recording server based on drachtio and rtpengine
MIT License
83 stars 34 forks source link

Avaya SBC + Drachtio + rtpengine - "msg":"Error connecting call: TypeError: Cannot read property '0' of undefined" #21

Open MaximSRS opened 4 years ago

MaximSRS commented 4 years ago

Hi . I am having this error and hope you can help. sdp1: drachtio:siprec-recording-server 'v=0\r\no=- 830037 1 IN IP4 212.111.68.111\r\ns=SipCall\r\nc=IN IP4 10.201.1.168\r\nt=0 0\r\nm=audio 35468 RTP/AVP 8 103\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:103 telephone-event/8000\r\na=label:10\r\na=sendonly\r\na=ptime:20\r\n', drachtio:siprec-recording-server sdp2: drachtio:siprec-recording-server 'v=0\r\no=- 830037 1 IN IP4 212.111.68.111\r\ns=SipCall\r\nc=IN IP4 10.201.1.168\r\nt=0 0\r\nm=audio 35064 RTP/AVP 8 103\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:103 telephone-event/8000\r\na=label:20\r\na=sendonly\r\na=ptime:20\r\n' } payload parser results +29s {"level":50,"time":1573550781197,"msg":"Error connecting call: TypeError: Cannot read property '0' of undefined","pid":5891,"hostname":"SIPREC","callid":"6b2bfd3fd9110b29173fad6093579f76","v":1}

davehorton commented 4 years ago

Can you show the incoming INVITE, with the full body (metadata + sdp)?

MaximSRS commented 4 years ago

Thanks for help! INVITE sip:10.40.42.157:5060;transport=tcp SIP/2.0 From: "9878942259" sip:9878942259@212.188.68.145:5060;transport=udp;user=phone;tag=000EF06A-4290-1DB9-AFE4-C8BC280AAA77-6186790 To: sip:10.40.42.157:5060;transport=tcp CSeq: 50 INVITE Call-ID: d41b421218f2580e93fbff1dd3241a28 Contact: sip:10.201.1.168:5060;transport=tcp;+sip.src Record-Route: sip:10.201.1.168:5060;ipcs-line=831174;lr;transport=tcp Allow: ACK, BYE, CANCEL, INFO, INVITE, MESSAGE, OPTIONS, PRACK, REFER Supported: uui, replaces Max-Forwards: 69 Via: SIP/2.0/TCP 10.201.1.168:5060;branch=z9hG4bK-s1632-001956695061-1--s1632- Require: siprec P-Asserted-Identity: sip:9878942259@212.188.68.145;transport=udp;user=phone Content-Type: multipart/mixed;boundary=foobar User-to-User: 00FA0800705D4C5DCAAC41;encoding=hex X-Genesys-CallInfo: routed IN_TRANSFER: NO CR_ID: 56 SURVEY: NULL MR: PV R_NAME: Orenburg R_SKILL: skillOrenburg SERVICE_ID: FB_bez_greid DNIS: 80015063 GRADE: GRADE_4 P-Access-Network-Info: GEN-ACCESS;"area-number=+79128401012" X-Genesys-CallUUID: 00BIKK22I0ERJBV4P2U2G2LAES02D8A5 X-ISCC-CofId: location=KRR_SIP_GVP;cofid=20209245 Content-Length: 1887

--foobar Content-Type: application/sdp

v=0 o=- 831174 1 IN IP4 212.188.68.146 s=SipCall c=IN IP4 10.201.1.168 t=0 0 m=audio 38606 RTP/AVP 8 97 a=rtpmap:8 PCMA/8000 a=rtpmap:97 telephone-event/8000 a=label:10 a=sendonly a=ptime:20 m=audio 35744 RTP/AVP 8 97 a=rtpmap:8 PCMA/8000 a=rtpmap:97 telephone-event/8000 a=label:20 a=sendonly a=ptime:20

--foobar Content-Type: application/rs-metadata+xml Content-Disposition: recording-session

?xml version="1.0" encoding="UTF-8"? recording xmlns="urn:ietf:params:xml:ns:recording:1" dataModecomplete/dataMode session session_id="00FA0800705D4C5DCAAC41"/session sessionrecordingassoc session_id="00FA0800705D4C5DCAAC41" associate-time2019-11-12T15:57:37/associate-time /sessionrecordingassoc participant participant_id="9a2de728ba0bc348db1e" nameID aor="sip:9878942259@212.188.68.145"/nameID /participant participantsessionassoc participant_id="9a2de728ba0bc348db1e" session_id="00FA0800705D4C5DCAAC41" associate-time2019-11-12T15:57:37/associate-time /participantsessionassoc participantstreamassoc participant_id="9a2de728ba0bc348db1e" sende6988909e02ca808ec0a/send /participantstreamassoc participant participant_id="abcdef12345678901234" nameID aor="sip:ASBCE@asbce.com"/nameID /participant participantsessionassoc participant_id="abcdef12345678901234" session_id="00FA0800705D4C5DCAAC41" associate-time2019-11-12T15:57:37/associate-time /participantsessionassoc participantstreamassoc participant_id="abcdef12345678901234" send261ddd3615629f108092/send /participantstreamassoc stream stream_id="e6988909e02ca808ec0a" session_id="00FA0800705D4C5DCAAC41" label10/label /stream stream stream_id="261ddd3615629f108092" session_id="00FA0800705D4C5DCAAC41" label20/label /stream /recording --foobar-- SIP/2.0 100 Trying Via: SIP/2.0/TCP 10.201.1.168:5060;branch=z9hG4bK-s1632-001956695061-1--s1632-;rport=16219 Record-Route: sip:10.201.1.168:5060;ipcs-line=831174;lr;transport=tcp From: "9878942259" sip:9878942259@212.188.68.145:5060;transport=udp;user=phone;tag=000EF06A-4290-1DB9-AFE4-C8BC280AAA77-6186790 To: sip:10.40.42.157:5060;transport=tcp Call-ID: d41b421218f2580e93fbff1dd3241a28 CSeq: 50 INVITE Content-Length: 0 full dump siprec.zip

davehorton commented 4 years ago

can you retry with the latest commit? It looks like one of the fields I was parsing from the metadata is optional, and not provided in your case.

MaximSRS commented 4 years ago

Thanks, but I need time.