I compiled the Asterisk PBX 13.21 from source in an Ubuntu server 16.04 LTS system and was setting to work with pjsip modules, but I am with problem to load res_pjsip.so automatically or in manual:
The module res_pjproject.so was loaded correctly.
Error when I try to load manually:
Command 'module load res_pjsip.so' failed.
[Jun 19 12:20:41] WARNING[21137]: loader.c:583 load_dlopen: Error loading module 'res_pjsip.so': /usr/lib/asterisk/modules/res_pjsip.so: undefined symbol: pjsip_use_compact_form
[Jun 19 12:20:41] WARNING[21137]: loader.c:1182 load_resource: Module 'res_pjsip.so' could not be loaded.
modules.conf file:
[modules]
preload => res_odbc.so
preload => res_config_odbc.so
noload => cdr_mysql.so
noload => chan_sip.so
noload => res_config_ldap.so
noload => res_config_pgsql.so
noload => res_config_sqlite3.so
noload => codec_g729a.so
noload => cel_custom.so
noload => res_phoneprov.so
load => res_pjproject.so
load => res_pjsip.so
load => res_pjsip_session.so
autoload=yes
pjsip.conf file:
[global]
type=global
keep_alive_interval=30
disable_multi_domain=yes
[transport-udp]
type=transport
protocol=udp ;udp,tcp,tls,ws,wss
bind=0.0.0.0
external_media_address=X.X.X.X
external_signaling_address=X.X.X.X
local_net=192.0.2.0/24
local_net=127.0.0.1/32
extconfig.conf file:
[settings]
ps_endpoints => odbc,db_asterisk
ps_auths => odbc,db_asterisk
ps_aors => odbc,db_asterisk
ps_domain_aliases => odbc,db_asterisk
ps_endpoint_id_ips => odbc,db_asterisk
ps_contacts => odbc,db_asterisk
sorcery.conf file:
[test_sorcery_section]
test=memory
[test_sorcery_cache]
test/cache=test
test=memory
[res_pjsip]
endpoint=realtime,ps_endpoints
auth=realtime,ps_auths
aor=realtime,ps_aors
domain_alias=realtime,ps_domain_aliases
contact=realtime,ps_contacts
[res_pjsip_endpoint_identifier_ip]
identify=realtime,ps_endpoint_id_ips
Can anyone help me?