Register new SIP trunk

Hello,

I want to register a new SIP trunk. (Telenet - Belgium)
The only info I got is an IP adress and Gateway.
Can anybody halp me with the settings that have to be used in ingoing and outgoing SIP config ?
According to the provider, there are no additional settings te be set.

Thanks !
Sven

Your provider is using IP authentication, so they aren’t far from correct.

In your “Peer” settings, use the following;

host= ***provider ip address***
type=friend
deny=all
allow=alaw
qualify=yes
canreinvite=no
port=5060
type=friend

Leave the “User” section empty - this Peer config will handle your issues.

If you are using Chan-SIP for your connections, you will need one of these for every host address you are going to be using. If you are using PJ-SIP, there is syntax for defining a series of IP addresses. You may also need to adjust the “port=” entry, depending on the provider.

This is what the Chan_SIP Settings should be:

If you want to use Chan_PJSIP you just create the trunk and under the PJSIP settings tab you just do
Registration: None
Server SIP URI: host IP address
Server SIP Port: 5060

That’s it.

1 Like

Thanks,

This solved the issue.
Outgoing calls are OK.
Now the incomming…

KR
Sven

Hello,

Do I also have to add incomming settings for this type of trunk ?
I Always have :

NOTICE[2990] res_pjsip/pjsip_distributor.c: Request ‘INVITE’ from xxxxx - No matching endpoint found

I checked the community, but it Always points to create a trunk (but I already created the trunk.)

Any idea how to get inbound calls working ?

Thanks !!!
Sven

Did you create a Chan_SIP or Chan_PJSIP trunk? PJSIP is using 5060 and Chan_SIP is 5160. So you would need to route your DIDs to IP:5160 if using Chan_SIP.

Hello,

I created Chan_SIP outgoing, but no incomming:
host=192.x.x.x
type=friend&friend
deny=all
allow=alaw
qualify=yes
canreinvite=no
port=5060

“So you would need to route your DIDs to IP:5160 if using Chan_SIP.”
–> Where do I have to do this ? (No option in inbound Route)

Thanks !!!
Sven

That is nothing like the settings you were giving. Please correct them to be proper settings.

You would have to route the DIDs from the provider side. You need to tell them what specific ports to use otherwise they default to 5060.

Hello,

Thanks for the support,

I create a PJSIP trunk and it all works fine !!!

KR
Sven

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