We always need a local tag, but handover adds its own.
| 354 | |
| 355 | // We always need a local tag, but handover adds its own. |
| 356 | void DialogStateVars::dsSetLocalHeaderMT(SipPreposition *toheader, bool addTag) |
| 357 | { |
| 358 | LOG(DEBUG); |
| 359 | // We will parse the contact to see if there is already a tag, which would be an error. |
| 360 | mLocalHeader = *toheader; |
| 361 | if (addTag) { |
| 362 | if (!mLocalHeader.mTag.empty()) { |
| 363 | LOG(ERR) <<"MT Dialog initiation had a pre-existing to-tag:"<<toheader; |
| 364 | // Now what? Keep the tag I guess. |
| 365 | // The dialog is probably impossible. |
| 366 | } else { |
| 367 | mLocalHeader.setTag(make_tag()); |
| 368 | } |
| 369 | } |
| 370 | } |
| 371 | |
| 372 | void writePrivateHeaders(SipMessage *msg, const L3LogicalChannel *l3chan) |
| 373 | { |
no test coverage detected