# PRI registation reject on PJSIP but work on SIP

**URL:** <https://community.asterisk.org/t/pri-registation-reject-on-pjsip-but-work-on-sip/98439>\
**Category:** Asterisk SIP\
**Created:** [August 31, 2023, 8:52am UTC](https://community.asterisk.org/t/pri-registation-reject-on-pjsip-but-work-on-sip/98439 "2023-08-31T08:52:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankit.hirwane](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ankit.hirwane/32/6113_2.png) [@ankit.hirwane](https://community.asterisk.org/u/ankit.hirwane)\
**Post date:** [August 31, 2023, 8:52am UTC](https://community.asterisk.org/t/pri-registation-reject-on-pjsip-but-work-on-sip/98439/1 "2023-08-31T08:52:13Z")

</div>

Hi team ,  
I’m trying to convert my setup sip to PJSIP but i have faced on issue there is PRI registration below configuration is pjsip but if i’m using SIP then it will work properly please suggest me what i need to do in PJSIP conf file and why ?? it is not register on PJSIP.

[global]  
type = global  
user\_agent = LITE PBX  
debug = no

[transport-udp]  
type = transport  
protocol = udp  
bind = 0.0.0.0:5060  
local\_net = 192.XXX.XX.0/255.255.252.0

[reg\_10.X.XXX.197]  
type = registration  
retry\_interval = 60  
max\_retries = 0  
contact\_user = +91224XXX6799  
expiration = 120  
transport = transport-udp  
outbound\_auth = auth\_reg\_10.X.XXX.197  
client\_uri = sip:+91224XXX6799@mu.ims.airtel.in:5060  
server\_uri = sip:10.X.XXX.197:5060

[auth\_reg\_10.X.XXX.197]  
type = auth  
password = Tataca#1  
username = +91224XXX6799@mu.ims.airtel.in

[7XX1]  
type = aor  
contact = sip:10.X.XXX.197:5060  
maximum\_expiration = 3600  
default\_expiration = 300

[7XX1]  
type = identify  
endpoint = 7XX1  
match = 10.X.XXX.197

[7XX1]  
type = auth  
username = 7XX1  
password = Tataca#1

[7XX1]  
type = endpoint  
context = outgoing  
dtmf\_mode = rfc4733  
disallow = all  
allow = alaw  
allow = ulaw  
rtp\_symmetric = yes  
rtp\_timeout = 60  
outbound\_proxy = 10.X.XXX.197  
direct\_media = no  
callerid = LITE  
call\_group = 1  
pickup\_group = 1  
allow\_transfer = yes  
from\_user = +91224XXX6799@mu.ims.airtel.in  
from\_domain = 10.X.XXX.197  
language = En  
auth = 7XX1  
outbound\_auth = 7XX1  
aors = 7XX1

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [August 31, 2023, 9:09am UTC](https://community.asterisk.org/t/pri-registation-reject-on-pjsip-but-work-on-sip/98439/2 "2023-08-31T09:09:37Z")

</div>

You haven’t shown what actually happens, such as the console output or SIP trace (pjsip set logger on). You should also provide the working configuration from chan\_sip.

---

<div class="post-metadata">

**Author:** ![ankit.hirwane](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ankit.hirwane/32/6113_2.png) [@ankit.hirwane](https://community.asterisk.org/u/ankit.hirwane)\
**Post date:** [August 31, 2023, 9:58am UTC](https://community.asterisk.org/t/pri-registation-reject-on-pjsip-but-work-on-sip/98439/3 "2023-08-31T09:58:45Z")

</div>

> [@ankit.hirwane](#):
>
> 91224XXX6799

Dear sir,  
Please check the chan\_sip configuration  
; **SIP.CONF General Section** \*\*\*\*\*\*\*\*

[general]  
context=FROMOTHERPBX  
;context=outbound  
websocket\_enabled = false  
port=5060  
bindaddr=0.0.0.0:5060  
qualify=yes  
srvlookup=yes  
disallow=all  
allow=alaw  
nat=no  
callerid = LITE  
autocreatepeer=yes  
autodomain=yes  
localnet=192.168.80.0/255.255.252.0  
canreinvite=no  
language=En  
allowtransfer=yes   
realm=telunet   
domain=192.168.80.23  
maxexpiry=3600   
defaultexpiry=300   
useragent=LITE PBX   
usereqphone = yes   
dtmfmode = info   
alwaysauthreject = no   
regcontext=sipregistrations  
rtptimeout=60   
rtpholdtimeout=300  
rtcachefriends=yes   
;--------------------------- SIP DEBUGGING ---------------------------------------------------  
sipdebug = no   
registertimeout=60   
registerattempts=0   
callgroup=1  
pickupgroup=1  
callevents=yes

register =\> +91224XXX6799@mu.ims.airtel.in:Tataca#1:+91224XXX6799@mu.ims.airtel.in@10.X.XXX.197:5060/+91224XXX6799

[7XX1] ;;;========================================Airtel SIP Trunk - 30 Channles  
type=peer  
host=10.X.XXX.197  
outboundproxy=10.X.XXX.197  
fromdomain=10.X.XXX.197  
dtmfmode=rfc2833  
fromuser=+91224XXX6799@mu.ims.airtel.in  
secret=Tataca#1  
directrtpsetup=no  
directmedia=no  
canreinvite=no  
reinvite=no  
insecure=invite  
nat=comedia  
context=outgoing  
disallow=all  
allow=alaw  
allow=ulaw  
qualify=yes  
port=5060

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [August 31, 2023, 10:35am UTC](https://community.asterisk.org/t/pri-registation-reject-on-pjsip-but-work-on-sip/98439/4 "2023-08-31T10:35:33Z")

</div>

You haven’t set the contact user, so s will be used.

It is not normal to have a port number in an address of record.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 30, 2023, 10:35am UTC](https://community.asterisk.org/t/pri-registation-reject-on-pjsip-but-work-on-sip/98439/5 "2023-09-30T10:35:39Z")

</div>

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