Dear Pekka, all
We are trying to implement a MSRP (RFC 4975) parser.
We are evaluating the possibility to use sofia-sip built-in parser, since MSRP
is quite similar to SIP/HTTP protocols.
We successfully used msg_parser.awk to generate the MSRP message class and MSRP
header classes.
The only problem we faced is regarding the parsing of first line of MSRP
message.
Requests and responses in MSRP begins with the token MSRP followed by a space,
but the current implementation of extract_first called by msg_extract function,
relies on the presence of '/' char after the first token to distinguish between
request or response(status).
Can you suggest us how to cope with this issue ?
Do you think that we should use always mc_request as first line , and choose
later the right class ?
Do you think there is a chance to add , for instance, a function pointer to the
msg_class_s structure to be used by extract_first for choosing between request
and/or response(status), or something similar ?
Thanks very much in advance
Regards,
Filippo Della Betta
Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone
indicate. La diffusione, copia o qualsiasi altra azione derivante dalla
conoscenza di queste informazioni sono rigorosamente vietate. Qualora abbiate
ricevuto questo documento per errore siete cortesemente pregati di darne
immediata comunicazione al mittente e di provvedere alla sua distruzione,
Grazie.
Rispetta l'ambiente. Non stampare questa mail se non e' necessario.
www.avoicomunicare.it Ogni giorno, il tuo luogo di dialogo.
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel