< Previous by Date | Date Index | Next by Date > |
Thread Index | Next in Thread > |
Hi all,
I'm currently trying to add a new header within the resiprocate sip stack for a proprietary application.
According to the wiki documentation, the right way to do it is to use the runtime extension header facility,
but I'm facing a few unexpected problems :
my code looks like (within the same .cxx file that needs the header) :
#include "resiprocate/ExtensionHeader.hxx"
…
static const resip::ExtensionHeader h_myHeader("my-header");
…
{
msg->header(h_myHeader).push_back(StringCategory("myHeaderValue"));
}
this code compiles without any warning, but at runtime, it breaks an assert and crashes:
[sai@toun converter]# ./converter
converter: ExtensionHeader.cxx:25: resip::ExtensionHeader::ExtensionHeader(const char*): Assertion 'Headers::getType(mName.data(), mName.size()) == Headers::UNKNOWN' failed.
Aborted (core dumped)
I will be very glad if anyone could give me some advice about this problem, I'm really lost right now.
Is it an already known issue among resiprocate developpers ?
Whatever, thank you all in advance for your help and your ideas !!
Antoine.