We’re migrating from Asterisk 16.x (using chan_sip) to 22.x (using pjsip). It’s a brand new server, but I’ve copied sip.conf over and used the migration script to convert sip.conf to pjsip.conf.
Now, when trying to create a channel (using ARI) to the address:
PJSIP/900010@192.168.1.142
I’m getting the error
ERROR[162658]: chan_pjsip.c:2690 request: Unable to create PJSIP channel - endpoint '192.168.1.142' was not found
the config in pjsip.conf looks like:
[registrar]
type = aor
contact = sip:192.168.1.142:5060
[registrar]
type = identify
endpoint = registrar
match = 192.168.1.142
[registrar]
type = endpoint
context = default
disallow = all
allow = alaw
rtp_symmetric = yes
force_rport = yes
rewrite_contact = yes
direct_media = yes
aors = registrar
and the output of pjsip show endpoint registrar is:
We’re migrating from Asterisk 16.x (using chan_sip) to 22.x (using
pjsip). It’s a brand new server, but I’ve copied sip.conf over and
used the migration script to convert sip.conf to pjsip.conf.
Now, when trying to create a channel (using ARI) to the address:
|PJSIP/900010@192.168.1.142|
|You have to call PJSIP/900010@registrar|
I’m getting the error
|ERROR[162658]: chan_pjsip.c:2690 request: Unable to create PJSIP
channel - endpoint ‘192.168.1.142’ was not found|
the config in pjsip.conf looks like:
|[registrar] type = aor contact = sip:192.168.1.142:5060 [registrar]
type = identify endpoint = registrar match = 192.168.1.142 [registrar]
type = endpoint context = default disallow = all allow = alaw
rtp_symmetric = yes force_rport = yes rewrite_contact = yes
direct_media = yes aors = registrar |
and the output of |pjsip show endpoint registrar| is:
Well now I feel like an idiot - thank you, that works. However, I’m wondering - calling @192.168.1.142 works using chan_sip - is this because it’s chan_sip will “look up” an endpoint by IP address and PJSip doesn’t, or is it something that hasn’t migrated over in the config?
Well now I feel like an idiot - thank you, that works. However, I’m
wondering - calling @192.168.1.142 works using chan_sip - is this
because it’s chan_sip will “look up” an endpoint by IP address and
PJSip doesn’t, or is it something that hasn’t migrated over in the config?
Le 13/02/2025 à 09:36, KenD via Asterisk Community a écrit : [KenD]
KenD Profile - KenD - Asterisk Community February 13 We’re migrating
from Asterisk 16.x (using chan_sip) to 22.x (using pjsip). It’s a
brand new server, but I’ve copied sip.conf over and used the migration
script to convert…
To be more specific with an answer - chan_sip allows you to specify global configuration details which are then used when calling an IP address. In chan_pjsip there is no such thing, you must always specify an endpoint. If you want to dial an IP address you would use the URI method[1] which still requires an endpoint.