< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate] Problem with extension headers


I'm not litterally using an old tarball, but I'm using the old stack 
with the deprecated dialog object and so on...This is because I don't 
have to establish any session with the dum, I need only to send
stand alone request like sip MESSAGE, REGISTER...
But I've noticed a misuse in my code, because I was trying to add an already 
defined header (P-Asserted-Identity). As I've realized my mistake, my problem
is temporarily solved, but I'll try to reproduce it with a really "new" foo 
header,
to ensure that this issue is closed. 

Thanks a lot for your help, 

Antoine.


> Message du 18/04/06 18:37
> De : "Bruce Lowekamp" <lowekamp@xxxxxxxxxxxxx>
> A : antoine.perennec@xxxxxxxxxx
> Copie à : resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> Objet : 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
> >
> >
> 
>