Hi all,

for a little project I need a tool to verify the syntatical correctness
of a SIP message.

Referring to
http://thread.gmane.org/gmane.comp.telephony.sofia-sip.devel/2660/focus=2662
I created the following little application:

#include <iostream>
#include <stdio.h>
#include <sofia-sip/msg.h>
#include <sofia-sip/msg_parser.h>
#include <sofia-sip/msg_mclass.h>

int main()
{
char *msg_data = "...";
msg_t* msg = msg_make (sip_default_mclass(), 0, msg_data,sizeof (msg_data));
if (!msg) {
fprintf(stderr, "Impossible to parse message\n");
return 1;
}else{
fprintf(stderr, "Successful message parsing\n");
return 0;
}
}

(The msg_data will be filled in the next development step)

I am a C++ newbie and I am now completely stuck when compiling the stuff:
parser.cpp:10:45: error: ‘sip_default_mclass’ was not declared in this scope

when calling
g++ -Wwrite-strings -o parser -I/usr/include/sofia-sip-1.12 parser.cpp

Can anybody give me a hint?

Thx and br
Marcel





------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to