# PJSIP Trunk Getting Rejected

**URL:** https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410
**Category:** VitalPBX
**Created:** [August 28, 2024, 11:56am UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410 "2024-08-28T11:56:24Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![spjohnys](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@spjohnys](https://forums.vitalpbx.org/u/spjohnys)
#### Post date: [August 28, 2024, 11:56am UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/1 "2024-08-28T11:56:24Z")

</div>

Good afternoon community,

I am trying to register a SIP TRUNK with PJSIP Protocol.

I have doubled checked my credentials and seeing everything being fine.

I try them in different asterisk boxes and they register fine.

For the life of me i can’t seem to get it to register here.

Am i missing something simple?

What is the correct way to troubleshoot this? pjsip set logger on?

Thank you

 ![Screenshot_1](https://forums.vitalpbx.org/uploads/default/original/2X/e/e416c5866f9bd29e11ae531113711938074c72af.jpeg)

---

<div class="post-metadata">

### Author: ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)
#### Post date: [August 28, 2024, 4:43pm UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/2 "2024-08-28T16:43:37Z")

</div>

You will have to share a SIP trace.

---

<div class="post-metadata">

### Author: ![spjohnys](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@spjohnys](https://forums.vitalpbx.org/u/spjohnys)
#### Post date: [August 28, 2024, 6:22pm UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/3 "2024-08-28T18:22:41Z")

</div>

> **[\<--- Transmitting SIP request (450 bytes) to UDP:xxx.xxx.16.30:5060...](https://pastebin.com/8xy0ijy5)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

---

<div class="post-metadata">

### Author: ![spjohnys](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@spjohnys](https://forums.vitalpbx.org/u/spjohnys)
#### Post date: [August 29, 2024, 1:05pm UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/4 "2024-08-29T13:05:55Z")

</div>

Bump, anybody?

From the trace i am seeing an Invalid User as 403 forbidden but my credentials are not wrong

Am i inserting them in the wrong fields?

My username is my phone number  
Plus i have the AUTH USERNAME which is my phonenumber@ims.otenet.gr

Thank you

---

<div class="post-metadata">

### Author: ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)
#### Post date: [August 29, 2024, 3:35pm UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/5 "2024-08-29T15:35:19Z")

</div>

It looks like the username is wrong. Do you have documentation for their Trunk requirements?

---

<div class="post-metadata">

### Author: ![spjohnys](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@spjohnys](https://forums.vitalpbx.org/u/spjohnys)
#### Post date: [August 29, 2024, 3:51pm UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/6 "2024-08-29T15:51:54Z")

</div>

No not really never needed to seek as in  
Other pbxs i register fine as

username:+30xxxxxxx96  
auth username:+30xxxxxx96@ims.otenet.gr  
secret:xxxxxxxxx  
Outbound registration send  
Identify by auth username  
Contact User:+30xxxxxx96

Sorry i cant be more helpful in my info

---

<div class="post-metadata">

### Author: ![spjohnys](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@spjohnys](https://forums.vitalpbx.org/u/spjohnys)
#### Post date: [August 29, 2024, 4:22pm UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/7 "2024-08-29T16:22:30Z")

</div>

Seems that after removing the + from infront of 30 i get contact in the pjsip endpoints reports showing a green dot before i dont get this but still get rejected, provider requires the +30 otherwise it won’t work, anyway to trick it?

---

<div class="post-metadata">

### Author: ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)
#### Post date: [August 29, 2024, 5:05pm UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/8 "2024-08-29T17:05:35Z")

</div>

Prepend it in the outbound route.

---

<div class="post-metadata">

### Author: ![spjohnys](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@spjohnys](https://forums.vitalpbx.org/u/spjohnys)
#### Post date: [August 29, 2024, 5:20pm UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/9 "2024-08-29T17:20:11Z")

</div>

But i am not even registered, my issue is not outbound callsi cant register the trunk

By removing the +from the username field i had a green contact but rejected registration still

---

<div class="post-metadata">

### Author: ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)
#### Post date: [August 29, 2024, 11:27pm UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/10 "2024-08-29T23:27:37Z")

</div>

Please share a new trace

---

<div class="post-metadata">

### Author: ![spjohnys](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/s/ce73a5/32.png) [@spjohnys](https://forums.vitalpbx.org/u/spjohnys)
#### Post date: [August 30, 2024, 12:21pm UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/11 "2024-08-30T12:21:50Z")

</div>

I managed to sort it out, turns out vitalpbx was doubling the contacts field with two times the @ims.otenet.gr because the username necesarry had to have @ims.otenet.gr at the end, so i played it clever and had to manually add single entries on the Contacts Tab to return it to one time @ims.otenet.gr while keeping username with @ims.otenet.gr at the end of it.

Works ok now.

---

<div class="post-metadata">

### Author: ![system](https://forums.vitalpbx.org/uploads/default/original/1X/672b458a1d454755270c2c16adc5316b641c3c6a.png) [@system](https://forums.vitalpbx.org/u/system)
#### Post date: [September 29, 2024, 12:21pm UTC](https://forums.vitalpbx.org/t/pjsip-trunk-getting-rejected/4410/12 "2024-09-29T12:21:54Z")

</div>

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