[Freeswitch-users] fail to add opus to freeswitch

Assaf Dahary adahary at gmail.com
Thu Sep 10 17:29:13 MSD 2015


My production FS is config with ZRTP.

Would this reconfig efect any of the current setup?

I assume that it  just add the new enabled lines in the modules.conf?

Please advise



On Sep 10, 2015, 15:53, at 15:53, "Ítalo Rossi" <italorossib at gmail.com> wrote:
>Unknown target mod_opus-install
>
>You probably need to reconfigure. If still doesn't work:
>
>git clean -fdx    # this will wipe custom patches, warning
>./bootstrap -j
>./configure
>make
>make install
>
>
>On Thu, Sep 10, 2015 at 3:34 AM, Assaf Dahary <adahary at gmail.com>
>wrote:
>
>> But the codecs/mod_opus is IN the modules.conf.
>>
>>
>>
>> Here is my modules.conf and you can see that it includes the opus
>codec
>> line (uncommented):
>>
>>
>>
>> [root at www freeswitch]# pwd
>>
>> /usr/local/src/freeswitch
>>
>> [root at www freeswitch]# cat modules.conf
>>
>> #applications/mod_abstraction
>>
>> #applications/mod_avmd
>>
>> #applications/mod_blacklist
>>
>> #applications/mod_callcenter
>>
>> #applications/mod_cidlookup
>>
>> applications/mod_cluechoo
>>
>> applications/mod_commands
>>
>> applications/mod_conference
>>
>> applications/mod_curl
>>
>> applications/mod_db
>>
>> #applications/mod_directory
>>
>> #applications/mod_distributor
>>
>> applications/mod_dptools
>>
>> #applications/mod_easyroute
>>
>> applications/mod_enum
>>
>> applications/mod_esf
>>
>> #applications/mod_esl
>>
>> applications/mod_expr
>>
>> applications/mod_fifo
>>
>> #applications/mod_fsk
>>
>> applications/mod_fsv
>>
>> applications/mod_hash
>>
>> applications/mod_httapi
>>
>> #applications/mod_http_cache
>>
>> #applications/mod_ladspa
>>
>> #applications/mod_lcr
>>
>> #applications/mod_memcache
>>
>> #applications/mod_mongo
>>
>> #applications/mod_mp4
>>
>> #applications/mod_nibblebill
>>
>> #applications/mod_oreka
>>
>> #applications/mod_osp
>>
>> #applications/mod_rad_auth
>>
>> #applications/mod_redis
>>
>> #applications/mod_rss
>>
>> #applications/mod_sonar
>>
>> applications/mod_sms
>>
>> #applications/mod_snapshot
>>
>> #applications/mod_snipe_hunt
>>
>> #applications/mod_snom
>>
>> #applications/mod_soundtouch
>>
>> applications/mod_spandsp
>>
>> #applications/mod_spy
>>
>> #applications/mod_stress
>>
>> #applications/mod_translate
>>
>> applications/mod_valet_parking
>>
>> #applications/mod_vmd
>>
>> applications/mod_voicemail
>>
>> #applications/mod_voicemail_ivr
>>
>> #applications/mod_random
>>
>> #asr_tts/mod_cepstral
>>
>> asr_tts/mod_flite
>>
>> #asr_tts/mod_pocketsphinx
>>
>> #asr_tts/mod_tts_commandline
>>
>> #asr_tts/mod_unimrcp
>>
>> codecs/mod_amr
>>
>> #codecs/mod_amrwb
>>
>> codecs/mod_bv
>>
>> codecs/mod_b64
>>
>> #codecs/mod_celt
>>
>> #codecs/mod_codec2
>>
>> #codecs/mod_com_g729
>>
>> #codecs/mod_dahdi_codec
>>
>> codecs/mod_g723_1
>>
>> codecs/mod_g729
>>
>> codecs/mod_h26x
>>
>> codecs/mod_vp8
>>
>> #codecs/mod_ilbc
>>
>> #codecs/mod_isac
>>
>> #codecs/mod_mp4v
>>
>> *codecs/mod_opus*
>>
>> #codecs/mod_sangoma_codec
>>
>> codecs/mod_silk
>>
>> #codecs/mod_siren
>>
>> codecs/mod_speex
>>
>> #codecs/mod_theora
>>
>> dialplans/mod_dialplan_asterisk
>>
>> #dialplans/mod_dialplan_directory
>>
>> dialplans/mod_dialplan_xml
>>
>> #directories/mod_ldap
>>
>> #endpoints/mod_alsa
>>
>> #endpoints/mod_dingaling
>>
>> #endpoints/mod_gsmopen
>>
>> #endpoints/mod_h323
>>
>> #endpoints/mod_khomp
>>
>> endpoints/mod_loopback
>>
>> #endpoints/mod_opal
>>
>> #endpoints/mod_portaudio
>>
>> #endpoints/mod_rtmp
>>
>> endpoints/mod_skinny
>>
>> #endpoints/mod_skypopen
>>
>> endpoints/mod_sofia
>>
>> #endpoints/mod_unicall
>>
>> event_handlers/mod_cdr_csv
>>
>> #event_handlers/mod_cdr_mongodb
>>
>> #event_handlers/mod_cdr_pg_csv
>>
>> event_handlers/mod_cdr_sqlite
>>
>> #event_handlers/mod_erlang_event
>>
>> #event_handlers/mod_event_multicast
>>
>> event_handlers/mod_event_socket
>>
>> #event_handlers/mod_event_zmq
>>
>> #event_handlers/mod_json_cdr
>>
>> #event_handlers/mod_radius_cdr
>>
>> #event_handlers/mod_rayo
>>
>> #event_handlers/mod_snmp
>>
>> formats/mod_local_stream
>>
>> formats/mod_native_file
>>
>> #formats/mod_portaudio_stream
>>
>> #formats/mod_shell_stream
>>
>> #formats/mod_shout
>>
>> formats/mod_sndfile
>>
>> #formats/mod_ssml
>>
>> formats/mod_tone_stream
>>
>> #formats/mod_vlc
>>
>> #languages/mod_java
>>
>> languages/mod_lua
>>
>> #languages/mod_managed
>>
>> #languages/mod_perl
>>
>> #languages/mod_python
>>
>> #languages/mod_spidermonkey
>>
>> #languages/mod_yaml
>>
>> loggers/mod_console
>>
>> loggers/mod_logfile
>>
>> loggers/mod_syslog
>>
>> #say/mod_say_de
>>
>> say/mod_say_en
>>
>> #say/mod_say_es
>>
>> #say/mod_say_fa
>>
>> #say/mod_say_fr
>>
>> #say/mod_say_he
>>
>> #say/mod_say_hr
>>
>> #say/mod_say_hu
>>
>> #say/mod_say_it
>>
>> #say/mod_say_ja
>>
>> #say/mod_say_nl
>>
>> #say/mod_say_pl
>>
>> #say/mod_say_pt
>>
>> #say/mod_say_ru
>>
>> #say/mod_say_th
>>
>> #say/mod_say_zh
>>
>> #timers/mod_posix_timer
>>
>> #timers/mod_timerfd
>>
>> xml_int/mod_xml_cdr
>>
>> xml_int/mod_xml_curl
>>
>> #xml_int/mod_xml_ldap
>>
>> #xml_int/mod_xml_radius
>>
>> xml_int/mod_xml_rpc
>>
>> xml_int/mod_xml_scgi
>>
>>
>>
>> #../../libs/freetdm/mod_freetdm
>>
>> #../../libs/openzap/mod_openzap
>>
>>
>>
>> ## Experimental Modules (don't cry if they're broken)
>>
>> #../../contrib/mod/xml_int/mod_xml_odbc
>>
>> [root at www freeswitch]#
>>
>>
>>
>> *From:* freeswitch-users-bounces at lists.freeswitch.org [mailto:
>> freeswitch-users-bounces at lists.freeswitch.org] *On Behalf Of *Michael
>> Jerris
>> *Sent:* Wednesday, September 09, 2015 11:24 PM
>>
>> *To:* FreeSWITCH Users Help
>> *Subject:* Re: [Freeswitch-users] fail to add opus to freeswitch
>>
>>
>>
>> this tells me that codecs/mod_opus is not in modules.conf anywhere
>>
>>
>>
>> On Sep 9, 2015, at 4:14 PM, Assaf Dahary <adahary at gmail.com> wrote:
>>
>>
>>
>> Here is the complete output of the build cmd:
>>
>>
>>
>> [root at www ~]# cd /usr/local/src/freeswitch/
>>
>> [root at www freeswitch]# make mod_opus-install
>>
>> /bin/sh /usr/local/src/freeswitch/quiet_libtool   --mode=install
>> /usr/bin/install -c   libfreeswitch.la '/usr/local/freeswitch/lib'
>>
>> quiet_libtool: install: /usr/bin/install -c
>.libs/libfreeswitch.so.1.0.0
>> /usr/local/freeswitch/lib/libfreeswitch.so.1.0.0
>>
>> quiet_libtool: install: (cd /usr/local/freeswitch/lib && { ln -s -f
>> libfreeswitch.so.1.0.0 libfreeswitch.so.1 || { rm -f
>libfreeswitch.so.1 &&
>> ln -s libfreeswitch.so.1.0.0 libfreeswitch.so.1; }; })
>>
>> quiet_libtool: install: (cd /usr/local/freeswitch/lib && { ln -s -f
>> libfreeswitch.so.1.0.0 libfreeswitch.so || { rm -f libfreeswitch.so
>&& ln
>> -s libfreeswitch.so.1.0.0 libfreeswitch.so; }; })
>>
>> quiet_libtool: install: /usr/bin/install -c .libs/libfreeswitch.lai
>> /usr/local/freeswitch/lib/libfreeswitch.la
>>
>> quiet_libtool: install: /usr/bin/install -c .libs/libfreeswitch.a
>> /usr/local/freeswitch/lib/libfreeswitch.a
>>
>> quiet_libtool: install: chmod 644
>/usr/local/freeswitch/lib/libfreeswitch.a
>>
>> quiet_libtool: install: ranlib
>/usr/local/freeswitch/lib/libfreeswitch.a
>>
>> quiet_libtool: finish:
>>
>PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin"
>> ldconfig -n /usr/local/freeswitch/lib
>>
>>
>----------------------------------------------------------------------
>>
>> Libraries have been installed in:
>>
>>    /usr/local/freeswitch/lib
>>
>>
>>
>> If you ever happen to want to link against installed libraries
>>
>> in a given directory, LIBDIR, you must either use libtool, and
>>
>> specify the full pathname of the library, or use the `-LLIBDIR'
>>
>> flag during linking and do at least one of the following:
>>
>>    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
>>
>>      during execution
>>
>>    - add LIBDIR to the `LD_RUN_PATH' environment variable
>>
>>      during linking
>>
>>    - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
>>
>>    - have your system administrator add LIBDIR to `/etc/ld.so.conf'
>>
>>
>>
>> See any operating system documentation about shared libraries for
>>
>> more information, such as the ld(1) and ld.so(8) manual pages.
>>
>>
>----------------------------------------------------------------------
>>
>> Unknown target mod_opus-install
>>
>> make[2]: *** [mod_opus-install-all] Error 1
>>
>> make[1]: *** [mod_opus-install] Error 2
>>
>> make: *** [mod_opus-install] Error 2
>>
>> [root at www freeswitch]#
>>
>>
>>
>> *From:* freeswitch-users-bounces at lists.freeswitch.org [
>> mailto:freeswitch-users-bounces at lists.freeswitch.org
>> <freeswitch-users-bounces at lists.freeswitch.org>] *On Behalf Of *Brian
>West
>> *Sent:* Wednesday, September 09, 2015 7:36 PM
>> *To:* FreeSWITCH Users Help
>> *Subject:* Re: [Freeswitch-users] fail to add opus to freeswitch
>>
>>
>>
>> Its never built, what are the full build errors?
>>
>>
>>
>> On Wed, Sep 9, 2015 at 6:52 AM, Assaf Dahary <adahary at gmail.com>
>wrote:
>>
>> Hi,
>>
>>
>>
>> When I installed freeswitch 1.4 long time ago I've commented out
>#mod_opus
>> because I use SILK only.
>>
>>
>>
>> Now I would like to add the opus codec so I enabled it in the
>modules.conf
>> and try to compile with:
>>
>> /usr/local/src/freeswitch/make mod_opus-install
>>
>> But it fails with error:
>>
>> Unknown target mod_opus-install
>>
>> make[2]: *** [mod_opus-install-all] Error 1
>>
>> make[1]: *** [mod_opus-install] Error 2
>>
>> make: *** [mod_opus-install] Error 2
>>
>>
>>
>> I also download opus from source and compiled OK but still fail to
>'load
>> mod_opus' from cli:
>>
>> switch_loadable_module.c:1391 Error Loading module
>> /usr/local/freeswitch/mod/mod_opus.so
>>
>>
>>
>> How can I add the opus codec?
>>
>>
>>
>> Regards
>>
>>
>>
>> Assaf
>>
>>
>>
>_________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>
>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>>
>>
>>
>> --
>>
>> *Brian West*
>> brian at freeswitch.org
>>
>> *Twitter: @FreeSWITCH , @briankwest*
>> http://www.freeswitchbook.com
>> http://www.freeswitchcookbook.com
>>
>> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
>> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>>
>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>
>>
>_________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>
>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>>
>>
>_________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>
>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
>-- 
>Ítalo Rossi
>
>
>------------------------------------------------------------------------
>
>_________________________________________________________________________
>Professional FreeSWITCH Consulting Services: 
>consulting at freeswitch.org
>http://www.freeswitchsolutions.com
>
>Official FreeSWITCH Sites
>http://www.freeswitch.org
>http://confluence.freeswitch.org
>http://www.cluecon.com
>
>FreeSWITCH-users mailing list
>FreeSWITCH-users at lists.freeswitch.org
>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150910/c3723811/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list