From 9ee91e2b275978ff4ecc81abcdf3b24661296ddb Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 3 Mar 2009 08:25:38 +0000 Subject: [PATCH] adds parsing of u= line (URI in SDP) git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1289 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmSdp.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/core/AmSdp.cpp b/core/AmSdp.cpp index 860d91e8..b9116863 100644 --- a/core/AmSdp.cpp +++ b/core/AmSdp.cpp @@ -433,8 +433,16 @@ static bool parse_sdp_line_ex(AmSdp* sdp_msg, char*& s) s = next; break; } + + case 'u': { + DBG("parse_sdp_line_ex: found uri\n"); + s = is_eql_next(s); + next = get_next_line(s); + sdp_msg->uri = string(s, int(next-s)-2); + s = next; + } break; + case 'i': - case 'u': case 'e': case 'p': case 'b':