Incoming call not working in pjsip.conf

i have sip trunk from jio in india iam able to make outbound calls working fine and also incoming also working fine if i use sip.conf but we are using pjsip.conf so in the pjsip.conf incoming calls are not working i convert sip.conf to pjsip.cong using sip_to_pjsip python script in asterisk

1 Like

[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0:5060
local_net = 192.168.1.26

[mytrunk-endpoint]
type = aor
contact = sip:100.64.0.20

[mytrunk-endpoint]
type = identify
endpoint = mytrunk-endpoint
match = 100.64.0.20

[mytrunk-endpoint]
type = auth
username = mytrunk-endpoint
password =

[mytrunk-endpoint]
type = endpoint
context = inbound
dtmf_mode = rfc4733
disallow = all
allow = alaw
allow = ulaw
allow = g729
direct_media = no
trust_id_inbound = yes
send_rpid = yes
from_user = +918035085100
auth = mytrunk-endpoint
outbound_auth = mytrunk-endpoint
aors = mytrunk-endpoint

this is my pjsip.conf even iam not getting any logs in cli when i dial it says unavailable

We need log files.

hi david as i told when i use pjsip.conf there is no logs in cli and rtp debug
if i use sip.conf iam able to see logs in cli that is dialplan logs

What happens if you you try to manually reload chan_pjsip?

asterisk*CLI> module load chan_pjsip.so
Unable to load module chan_pjsip.so
Command ‘module load chan_pjsip.so’ failed.
[May 20 16:15:35] WARNING[54604]: loader.c:1776 load_resource: Module ‘chan_pjsip.so’ already loaded and running.

Have you issued pjsip set logger on?

You have no type=registration section. Please confirm that the provider uses IP addresses and not registration.

yes there is no registration section we speak with them they given direct connection demo it is working fine and also we tryed with sip.conf it is working fine but with pjsip only we have issue

If pjsip set logger on shows nothing, and they don’t require registration, but it works with chan_sip, that doesn’t make sense, as they would have to not be sending to you because you were using chan_pjsip, but they can’t tall that.

One point. I did say reload, not load. pjsip may have only partially succeeded in loading.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.