[sr-dev] mediaproxy-ng failed to rewrite sdp from jssip ws client

Peter Dunkley peter.dunkley at crocodilertc.net
Fri Oct 25 15:07:53 CEST 2013


Hi Juha,

You need to use the '-' and '+' flags for adding/removing ICE candidates.

Regards,

Peter


On 25 October 2013 12:14, Juha Heinanen <jh at tutpro.com> wrote:

> > Peter Dunkley writes:
>
> > I've been using mediaproxy-ng with JsSIP on Chrome for a couple of months
> > now.  It works fine for me and I was running a live demo using it for
> this
> > at AstriCon two weeks ago.
>
> peter,
>
> when jssip client calls regular sip client, i made the same
> rtpproxy_offer(co1spr)/rtpproxy_answer("co2SPr") calls as before, and
> rtpproxy_answer resulted in the same error as before. (below)
>
> my mediaproxy-ng is from current git master.
>
> how does your tests differ from the above, since you have got it
> working?
>
> -- juha
>
> Oct 25 13:57:43 rautu /usr/sbin/sip-proxy[4544]: INFO: ===== making
> rtpproxy_offer(co1spr)
> Oct 25 13:57:43 rautu mediaproxy-ng[3966]: Got valid command from
> 127.0.0.1:58370: offer - { "sdp": "v=0#015#012o=- 6629324318443950012 2
> IN IP4 127.0.0.1#015#012s=-#015#012t=0 0#015#012a=group:BUNDLE audio
> video#015#012a=msid-semantic: WMS
> 8zlXTq7nO5eohdbQ3mmCJkvIVtFhOVDR9iKR#015#012m=audio 60820 RTP/SAVPF 111 103
> 104 0 8 107 106 105 13 126#015#012c=IN IP4
> 192.98.102.10#015#012a=rtcp:60820 IN IP4
> 192.98.102.10#015#012a=candidate:488769141 1 udp 2113937151 192.98.102.10
> 60820 typ host generation 0#015#012a=candidate:488769141 2 udp 2113937151
> 192.98.102.10 60820 typ host generation 0#015#012a=candidate:1403124357 1
> tcp 1509957375 192.98.102.10 0 typ host generation
> 0#015#012a=candidate:1403124357 2 tcp 1509957375 192.98.102.10 0 typ host
> generation
> 0#015#012a=ice-ufrag:k0UQQqMWy/JxtLBG#015#012a=ice-pwd:+Ym1+aCA8LJnck6S82R7W9gD#015#012a=ice-options:google-ice#015#012a=fingerprint:sha-256
> D1:B4:83:5B:FD:14:CD:04:02:75:AE:66:57:5D:4C:D6:BE:2A:43:0E:CE:37:7C:73:F5:A9:F3:96:B3:97:C2:1C#015#012a=mid:audio#015#012a=extmap:1
> urn:ietf:params:rtp-hdrext:ssrc-audio-level#015#012a=sendrecv#015#012a=rtcp-mux#015#012a=crypto:1
> AES_CM_128_HMAC_SHA1_80
> inline:hqp5gRaEPOOIoxYDnEp7B02yDhsGvIfdC0W7gBa4#015#012a=rtpmap:111
> opus/48000/2#015#012a=fmtp:111 minptime=10#015#012a=rtpmap:103
> ISAC/16000#015#012a=rtpmap:104 ISAC/32000#015#012a=rtpmap:0
> PCMU/8000#015#012a=rtpmap:8 PCMA/8000#015#012a=rtpmap:107
> CN/48000#015#012a=rtpmap:106 CN/32000#015#012a=rtpmap:105
> CN/16000#015#012a=rtpmap:13 CN/8000#015#012a=rtpmap:126
> telephone-event/8000#015#012a=maxptime:60#015#012a=ssrc:1211836873
> cname:8pC2LNmeFanLlBRT#015#012a=ssrc:1211836873
> msid:8zlXTq7nO5eohdbQ3mmCJkvIVtFhOVDR9iKR
> 8zlXTq7nO5eohdbQ3mmCJkvIVtFhOVDR9iKRa0#015#012a=ssrc:1211836873
> mslabel:8zlXTq7nO5eohdbQ3mmCJkvIVtFhOVDR9iKR#015#012a=ssrc:1211836873
> label:8zlXTq7nO5eohdbQ3mmCJkvIVtFhOVDR9iKRa0#015#012m=video 60820 RTP/SAVPF
> 100 116 117#015#012c=IN IP4 192.98.102.10#015#012a=rtcp:60820 IN IP4
> 192.98.102.10#015#012a=candidate:488769141 1 udp 2113937151 192.98.102.10
> 60820 typ host gene
> Oct 25 13:57:43 rautu mediaproxy-ng[3966]: [ittjbhuqn89agk18s2cf] Creating
> new call
> Oct 25 13:57:43 rautu mediaproxy-ng[3966]: [ittjbhuqn89agk18s2cf -
> z9hG4bK2891912] Opened ports 50000..50001 for RTP
> Oct 25 13:57:43 rautu mediaproxy-ng[3966]: [ittjbhuqn89agk18s2cf -
> z9hG4bK2891912] Opened ports 50002..50003 for RTP
> Oct 25 13:57:43 rautu mediaproxy-ng[3966]: Returning to SIP proxy:
> d3:sdp2709:v=0#015#012o=- 6629324318443950012 2 IN IP4
> 192.98.102.30#015#012s=-#015#012t=0 0#015#012a=group:BUNDLE audio
> video#015#012a=msid-semantic: WMS
> 8zlXTq7nO5eohdbQ3mmCJkvIVtFhOVDR9iKR#015#012m=audio 50000 RTP/AVP 111 103
> 104 0 8 107 106 105 13 126#015#012c=IN IP4
> 192.98.102.30#015#012a=candidate:488769141 1 udp 2113937151 192.98.102.10
> 60820 typ host generation 0#015#012a=candidate:488769141 2 udp 2113937151
> 192.98.102.10 60820 typ host generation 0#015#012a=candidate:1403124357 1
> tcp 1509957375 192.98.102.10 0 typ host generation
> 0#015#012a=candidate:1403124357 2 tcp 1509957375 192.98.102.10 0 typ host
> generation
> 0#015#012a=ice-ufrag:k0UQQqMWy/JxtLBG#015#012a=ice-pwd:+Ym1+aCA8LJnck6S82R7W9gD#015#012a=ice-options:google-ice#015#012a=fingerprint:sha-256
> D1:B4:83:5B:FD:14:CD:04:02:75:AE:66:57:5D:4C:D6:BE:2A:43:0E:CE:37:7C:73:F5:A9:F3:96:B3:97:C2:1C#015#012a=mid:audio#015#012a=sendrecv#015#012a=rtpmap:111
> opus/48000/2#015#012a=fmtp:111 minptime=10#015#012a=rtpmap:103
> ISAC/16000#015#012a=rtpmap:104 ISAC/32000#015#012a=rtpmap:0
> PCMU/8000#015#012a=rtpmap:8 PCMA/8000#015#012a=rtpmap:107
> CN/48000#015#012a=rtpmap:106 CN/32000#015#012a=rtpmap:105
> CN/16000#015#012a=rtpmap:13 CN/8000#015#012a=rtpmap:126
> telephone-event/8000#015#012a=maxptime:60#015#012a=ssrc:1211836873
> cname:8pC2LNmeFanLlBRT#015#012a=ssrc:1211836873
> msid:8zlXTq7nO5eohdbQ3mmCJkvIVtFhOVDR9iKR
> 8zlXTq7nO5eohdbQ3mmCJkvIVtFhOVDR9iKRa0#015#012a=ssrc:1211836873
> mslabel:8zlXTq7nO5eohdbQ3mmCJkvIVtFhOVDR9iKR#015#012a=ssrc:1211836873
> label:8zlXTq7nO5eohdbQ3mmCJkvIVtFhOVDR9iKRa0#015#012a=rtcp:50001#015#012a=candidate:P7f12vpGOKrMUtvG
> 1 UDP 2130706432 192.98.102.30 50000 typ
> host#015#012a=candidate:P7f12vpGOKrMUtvG 2 UDP 2130706431 192.98.102.30
> 50001 typ host#015#012m=video 50000 RTP/AVP 100 116 117#015#012c=IN IP4
> 192.98.102.30#015#012a=candidate:488769141 1 udp 2113937151 192.98.102.10
> 60820 typ host generation 0#015#012a=candidate:488769141 2 udp 2113937151
> 192.98.102.10 60820 typ host generat
>
> Oct 25 13:57:43 rautu /usr/sbin/sip-proxy[4504]: INFO: ===== making
> rtpproxy_answer(co2SP)
> Oct 25 13:57:43 rautu mediaproxy-ng[3966]: Got valid command from
> 127.0.0.1:36344: answer - { "sdp": "v=0#015#012o=sems 1247856735
> 1328844996 IN IP4 192.98.102.30#015#012s=sems#015#012c=IN IP4
> 192.98.102.30#015#012t=0 0#015#012m=audio 40000 RTP/AVP 103 8 0
> 126#015#012a=rtpmap:103 ISAC/16000#015#012a=rtpmap:8
> PCMA/8000#015#012a=rtpmap:0 PCMU/8000#015#012a=rtpmap:126
> telephone-event/8000#015#012a=sendrecv#015#012a=direction:both#015#012m=video
> 0 RTP/AVP 100#015#012a=inactive#015#012", "flags": [ "trust-address" ],
> "replace": [ "session-connection", "origin" ], "transport-protocol":
> "RTP/SAVPF", "call-id": "ittjbhuqn89agk18s2cf", "via-branch":
> "z9hG4bK2891912", "received-from": [ "IP4", "127.0.0.1" ], "from-tag":
> "clo5c0v16a", "to-tag": "7AB5F2F4-526A4EA7000B2A2D-B4827B70", "command":
> "answer" }
> Oct 25 13:57:43 rautu mediaproxy-ng[3966]: [ittjbhuqn89agk18s2cf -
> z9hG4bK2891912] Got LOOKUP, but no usable callstreams found
> Oct 25 13:57:43 rautu mediaproxy-ng[3966]: Error rewriting SDP
> Oct 25 13:57:43 rautu mediaproxy-ng[3966]: Protocol error in packet from
> 127.0.0.1:36344: Error rewriting SDP [d3:sdp299:v=0#015#012o=sems
> 1247856735 1328844996 IN IP4 192.98.102.30#015#012s=sems#015#012c=IN IP4
> 192.98.102.30#015#012t=0 0#015#012m=audio 40000 RTP/AVP 103 8 0
> 126#015#012a=rtpmap:103 ISAC/16000#015#012a=rtpmap:8
> PCMA/8000#015#012a=rtpmap:0 PCMU/8000#015#012a=rtpmap:126
> telephone-event/8000#015#012a=sendrecv#015#012a=direction:both#015#012m=video
> 0 RTP/AVP
> 100#015#012a=inactive#015#0125:flagsl13:trust-addresse7:replacel18:session-connection6:origine18:transport-protocol9:RTP/SAVPF7:call-id20:ittjbhuqn89agk18s2cf10:via-branch14:z9hG4bK289191213:received-froml3:IP49:127.0.0.1e8:from-tag10:clo5c0v16a6:to-tag34:7AB5F2F4-526A4EA7000B2A2D-B4827B707:command6:answere]
> Oct 25 13:57:43 rautu mediaproxy-ng[3966]: Returning to SIP proxy:
> d6:result5:error12:error-reason19:Error rewriting SDPe
> Oct 25 13:57:43 rautu /usr/sbin/sip-proxy[4504]: ERROR: rtpproxy-ng
> [rtpproxy.c:1348]: rtpp_function_call(): proxy replied with error: Error
> rewriting SDP
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>



-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20131025/939ffab3/attachment-0001.html>


More information about the sr-dev mailing list