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. ------------------------------------------------------------------------------ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel