---------- Initial Header -----------

>From      : "elisa_murgia" [EMAIL PROTECTED]
To          : "sofia-sip-devel" sofia-sip-devel@lists.sourceforge.net
Cc          : 
Date      : Wed, 24 Sep 2008 12:31:47 +0200
Subject : Re: [Sofia-sip-devel] Using SOFIA-SIP just as a parser

Another thing I noticed:

I've made a test putting an incomplete sip-message inside a string and then 

msg_t* msg=msg_make(...)

int i=msg_extract(msg);


Now msg_extract returns always 1, as it was complete. I'd expected a 0.
More: making 

sip_t sip=sip_object(msg);

with some full fields and others empty.

How is it possible??


Thanks again


> ---------- Initial Header -----------
> 
> >From      : "Stefano Sabatini" [EMAIL PROTECTED]
> To          : sofia-sip-devel@lists.sourceforge.net
> Cc          : 
> Date      : Mon, 22 Sep 2008 23:46:00 +0200
> Subject : Re: [Sofia-sip-devel] Using SOFIA-SIP just as a parser
> 
> 
> 
> Hello again,
> I've tried what you have suggested me, but it seems that it can work only if 
> I have strings with just a single sip message. My goal is, also, to 
> manipulate strings which hold more than one message and to use sofia to 
> divide and to parse carried messages.
> I used msg-make() applied to the whole string and it s useful to find the 
> first sip message.
> 
> msg_t* msg=msg_make(sip_default_mclass, 0, data, -1);
> 
> msg_t* next=msg_next(msg);
> 
> In this way sofia seems to find the second message begin, but it's not able 
> to parse it.
> 
> When I use then
> 
> msg_extract(next)
> 
> it returns -1, like an error occurred.
> 
> Is there a way to divide the string before to apply msg_make()?
> 
> Any suggestion would be very appreciated.
> Regards.
> 
> > On date Monday 2008-09-22 00:27:03 +0200, elisa_murgia phoned this:
> > > Hello all,
> > >
> > > I'm new in SOFIA-SIP and I would like to use it just as a parser. I
> > > mean that I have my own textual messages and I would like to send
> > > them without using SOFIA structure. Then I need to parse incoming
> > > messages and to capture some headers and status code. I ask: how is
> > > it possible?  I was thinking to use msg.h module and to fill message
> > > buffer m_buffer with my textual message. Am I right?  Thank you in
> > > advance.  Regards Elisa
> > 
> > Hi, I think this should be relevant:
> > http://thread.gmane.org/gmane.comp.telephony.sofia-sip.devel/2660
> > 
> > Ciao
> > 
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> > Build the coolest Linux based applications with Moblin SDK & win great 
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Sofia-sip-devel mailing list
> > Sofia-sip-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
> > 
> 
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Sofia-sip-devel mailing list
> Sofia-sip-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
> 


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to