Thank you very much Bruce, this is my code, but I do not know I returen the
DumFeature::FeatureDone in
DumFeature::process() is right ?
Or should return
FeatureDoneAndEventDone or
ChainDoneAndEventDone? What's is correctly ?
DumFeature::ProcessingResult AddExtensionHeader::process(Message* msg)
{
SipMessage* sipMsg = dynamic_cast<SipMessage*>(msg);
if (sipMsg)
{
map<string, string>::const_iterator iter = mExtensionHeaders.begin();
for (; iter!=mExtensionHeaders.end(); ++iter)
{
const resip::ExtensionHeader h_ExtensionHeader(iter->first.c_str());
sipMsg->header(h_ExtensionHeader).push_back(StringCategory(iter->second.c_str()));
}
postCommand(auto_ptr<Message>(sipMsg));
}
return DumFeature::FeatureDone;
}
On Thu, Aug 28, 2008 at 11:27 PM, Bruce Lowekamp
<lowekamp@xxxxxxxxxxxxx> wrote:
Take a look at DumFeature.hxx. Write a feature that adds your header and then add it to the feature chain via DialogUsageManager::addOutgoingFeature().
Bruce
Karlsson wrote:
I mean, how to add the header into the SIP message which sent by Dum
automatically ?
Thanks
On Thu, Aug 28, 2008 at 10:21 PM, Karlsson <
boost.regex@xxxxxxxxx> wrote:
Hi all, I want to adding a header into every outgoing SIP message, but
seems some outgoing SIP messages was sent by Dum
automatically, how to do?
Thanks in advance.
------------------------------------------------------------------------
_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/