hello I'm trying to figure out how to use just the parsing funtionality of sofia. I found a reply of Pekka to the very same question:
http://mlblog.osdir.com/telephony.sofia-sip.devel/2006-11/msg00070.html I see that the msg_make function has made it to the API: http://sofia-sip.sourceforge.net/refdocs/msg/msg_8h.html#ae73a2787e62ddc792f638c19b5b7e3d yet I'm am not able to parse a SIP message: <---code---> #include <stdio.h> #include <sofia-sip/sip_parser.h> #include <sofia-sip/sip_tag.h> int main() { char data[] = { "BYE sip:[EMAIL PROTECTED] SIP/2.0 \ Via: SIP/2.0/UDP sip.example.edu;branch=d7f2e89c.74a72681 \ Via: SIP/2.0/UDP pc104.example.edu:1030;maddr=110.213.33.19 \ From: Bobby Brown <sip:[EMAIL PROTECTED]>;tag=77241a86 \ To: Joe User <sip:[EMAIL PROTECTED]>;tag=7c6276c1 \ Call-ID: [EMAIL PROTECTED] \ CSeq: 2" }; msg_t* msg = msg_make(sip_default_mclass(), 0, data, -1); sip_t* sip = sip_object( msg ); printf( "1 sip: %p\n", sip ); printf( "2 sip_err: %s\n", sip->sip_error->er_name ); printf( "3 sip_from: %p\n", sip->sip_from ); printf( "4 display: %s\n", sip->sip_from->a_display ); } # ./sofia 1 sip: 0x602108 Segmentation fault <---code---> What am I missing? ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel