[pjsip] how can i add function in pjsua2

Jason Chen 陈剑桥 Jason.Chen at tpv-tech.com
Wed May 21 03:23:05 EDT 2014


Hi all,
   I developed on android,I want to add some function in pjsua2, I do it like that:

1.       add declarations in hpp file. e.g, add “ int testFunc();” in pjsip/include/pjsua2/media.hpp

2.       add function in cpp file. e.g,add “int Media::testFunc(){return 100;}” in pjsip/src/pjsua2/media.cpp

   then,I follow these steps to build pjsua2 sample application:

$ cd /path/to/your/pjsip/dir
$ cd pjsip-apps/src/swig
$ make


I get the libpjsua2.so, but when i running pjsua2 sample application,I get a crash:
05-21 13:40:52.924: E/AndroidRuntime(9410): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_relocate(linker.cpp:980): cannot locate symbol "_ZNK2pj5Media11getTypeTestEv" referenced by "libpjsua2.so"...

   What steps do I miss??

Best Regards,
jason.chen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140521/e222f87e/attachment-0002.html>


More information about the pjsip mailing list