Hello,
I try to setup static PJSIP endpoint. I have CentOS 6.2 and Asterisk 13.1.0
sorcery.conf
[res_pjsip]
endpoint=config,pjsip.conf,criteria=type=endpoint
pjsip.conf
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[cdtpbx]
type=endpoint
context=cdtpbx_in
disallow=all
allow=alaw
transport=transport-udp
aors=cdtpbxaor
[cdtpbxaor]
type=aor
contact=192.168.0.202:5060
[cdtpbxiden]
type=identify
endpoint=cdtpbx
match=192.169.3.202
After asterisk -vvvc I can see an ERROR:
[2015-04-14 13:59:45] ERROR[4710]: res_sorcery_config.c:277 sorcery_config_internal_load: Could not create an object of type ‘endpoint’ with id ‘cdtpbx’ from configuration file ‘pjsip.conf’
It looks like configuration isn’t loaded, but I can see endpoint
*CLI> pjsip show endpoints
Endpoint: <Endpoint/CID…> <State…> <Channels.>
I/OAuth: <AuthId/UserName…>
Aor: <Aor…>
Contact: <Aor/ContactUri…> <Status…> <RTT(ms)…>
Transport: <TransportId…> <BindAddress…>
Identify: <Identify/Endpoint…>
Match: <ip/cidr…>
Channel: <ChannelId…> <State…> <Time(sec)>
Exten: <DialedExten…> CLCID: <ConnectedLineCID…>
Endpoint: cdtpbx Not in use 0 of inf
Aor: cdtpbxaor 0
Contact: cdtpbxaor/192.168.0.202:5060 Unknown nan
Transport: transport-udp udp 0 0 0.0.0.0:5060
Identify: cdtpbxiden/cdtpbx
Match: 192.169.0.0/21
There is bad Match IP address 192.168.0.0. Correct is 192.168.0.202. If I setup pbxiden without netmask (match=192.168.0.202) IP address will be correct but netmask will be bad 32 (match=192.168.0.202/32)
I have no idea why?
Although when I try endpoint configuration with auth, it looks very similar. (ERROR and pjsip show endpoints)
Any idea where I am wrong? Many thanks for help.
Anyway is there something like “pjsip reload” please? I tried “module reload res_pjsip.so” without success. Answer was:
[2015-04-14 13:49:55] NOTICE[4468]: sorcery.c:1180 sorcery_wizard_load: Type ‘transport’ is not reloadable, maintaining previous values
[2015-04-14 13:49:55] NOTICE[4468]: sorcery.c:1180 sorcery_wizard_load: Type ‘system’ is not reloadable, maintaining previous values
Regards Lubor