The URI may have almost any chars except it may not have embedded space.
| 267 | |
| 268 | // The URI may have almost any chars except it may not have embedded space. |
| 269 | string parseLineURI(SipParamList ¶ms, 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. |
no test coverage detected