Re: [reSIProcate] Problem with extension headers
Are you using a downloaded tarball or have you checked out the current
source from svn? Your include path makes me think you're using an
old tarball. I don't have any experience with the older versions, but
your code looks pretty much right to me for what would work in the
current svn tree.
Bruce
On 4/18/06, Antoine PERENNEC <antoine.perennec@xxxxxxxxxx> wrote:
>
>
> 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.
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
>