| 334 | } |
| 335 | |
| 336 | string SipMessage::smGetPrecis() const |
| 337 | { |
| 338 | const char *methodname = smGetMethodName(); // May be empty, but never NULL |
| 339 | if (*methodname) { |
| 340 | return format("method=%s to=%s",methodname,smGetToHeader().c_str()); |
| 341 | } else { |
| 342 | return format("response code=%d %s %s to=%s",smGetCode(),smGetReason(),smCSeqMethod().c_str(),smGetToHeader().c_str()); |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | |
| 347 | // Multipart SIP body looks like this: |
no outgoing calls
no test coverage detected