Loading codec/c++/sip_codets.cpp +17 −0 Original line number Diff line number Diff line Loading @@ -724,4 +724,21 @@ void From::PreDecodeField (int id, Buffer& buffer) throw (DecodeError) } void SentProtocol::PreDecodeField (int id, Buffer& buffer) throw (DecodeError) { if (id) { static Regex reg_slash ("^/"); reg_slash.AssertMatch (buffer, this); buffer.SetPosition(buffer.GetPosition() + reg_slash.GetMatchedLength()); } static Regex reg_sp ("^" SIPREG_TOKEN); reg_sp.AssertMatch (buffer, this); SetHypFieldLength (id, reg_sp.GetMatchedLength()); } }} // namespaces Loading
codec/c++/sip_codets.cpp +17 −0 Original line number Diff line number Diff line Loading @@ -724,4 +724,21 @@ void From::PreDecodeField (int id, Buffer& buffer) throw (DecodeError) } void SentProtocol::PreDecodeField (int id, Buffer& buffer) throw (DecodeError) { if (id) { static Regex reg_slash ("^/"); reg_slash.AssertMatch (buffer, this); buffer.SetPosition(buffer.GetPosition() + reg_slash.GetMatchedLength()); } static Regex reg_sp ("^" SIPREG_TOKEN); reg_sp.AssertMatch (buffer, this); SetHypFieldLength (id, reg_sp.GetMatchedLength()); } }} // namespaces