MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / parseLineURI

Method parseLineURI

SIP/SIPParse.cpp:269–292  ·  view source on GitHub ↗

The URI may have almost any chars except it may not have embedded space.

Source from the content-addressed store, hash-verified

267
268 // The URI may have almost any chars except it may not have embedded space.
269 string parseLineURI(SipParamList &params, SipParamList &headers)
270 {
271 //params.clear(); headers.clear(); // make sure
272
273 if (strncaseeql(pp,"sip:",4)) {
274 pp += 4;
275 } else if (strncaseeql(pp,"sips:",5)) {
276 pp += 5;
277 } else {
278 LOG(ERR) << "Unrecognized URI scheme (not sip or sips):"<<pp;
279 return "";
280 }
281
282 string address = scanToSet(";?> \t\f");
283 while (*pp == ';') {
284 pp++;
285 scanUriParam(";?> \t\f",params);
286 }
287 while (*pp == '?' || *pp == '&') {
288 pp++;
289 scanUriParam("&> \t\f",headers);
290 }
291 return address;
292 }
293};
294
295// We are not currently using this because we dont care about them.

Callers 1

parseURIFunction · 0.80

Calls 1

strncaseeqlFunction · 0.85

Tested by

no test coverage detected