diff --git a/modules/ysipchan.cpp b/modules/ysipchan.cpp index 6e93b0db..8fdba114 100644 --- a/modules/ysipchan.cpp +++ b/modules/ysipchan.cpp @@ -1328,6 +1328,7 @@ bool YateSIPConnection::callRouted(Message& msg) if (s.startSkip("sip/",false) && s && msg.getBoolValue("redirect")) { Debug(this,DebugAll,"YateSIPConnection redirecting to '%s' [%p]",s.c_str(),this); SIPMessage* m = new SIPMessage(m_tr->initialMessage(),302); + s = "<" + s + ">"; m->addHeader("Contact",s); m_tr->setResponse(m); m->deref();