Infactum / tg2sip

Telegram <-> SIP voice gateway
GNU General Public License v2.0
273 stars 104 forks source link

Compilation error. pjproject 2.10 #35

Open wzooroo opened 3 years ago

wzooroo commented 3 years ago

Compilation error. pjproject 2.10

[ 97%] Building CXX object CMakeFiles/tg2sip.dir/tg2sip/main.cpp.o [ 98%] Building CXX object CMakeFiles/tg2sip.dir/tg2sip/tg.cpp.o [ 98%] Building CXX object CMakeFiles/tg2sip.dir/tg2sip/sip.cpp.o /usr/src/tg2sip/tg2sip/sip.cpp: In static member function ‘static void sip::Client::init_pj_endpoint(Settings&, sip::LogWriter*)’: /usr/src/tg2sip/tg2sip/sip.cpp:188:38: error: ‘class pj::Endpoint’ has no member named ‘codecEnum’; did you mean ‘codecEnum2’? CodecInfoVector codecVector = ep.codecEnum(); ^~~~~~~~~ codecEnum2 gmake[2]: *** [CMakeFiles/tg2sip.dir/tg2sip/sip.cpp.o] Error 1 gmake[1]: *** [CMakeFiles/tg2sip.dir/all] Error 2 gmake: *** [all] Error 2

Infactum commented 3 years ago

Currently tg2sip is compiled againist pjproject 2.9

radicaldrew commented 3 years ago

nevermind I never updated confg_site.h once I did that call works great!

Currently tg2sip is compiled againist pjproject 2.9

I have it working fine with pjproject 2.9 I am getting distorted voice on one of the end of the call though. I was even able to upgrade libtgvoip to the latest version but still have the distortion I tried direct as well as through pbx. Any ideas. and do you want the updated libtgvoip changes?

begginerdeveops commented 2 years ago

did you mean ‘codecEnum2

change it to

‘class pj::Endpoint’ has no member named ‘codecEnum’; did you mean ‘codecEnum2’

codecEnum2