Help with Callcentric trunk

I cannot for the life of me get callcentric to register. its driving me crazy.

can someone please point me in the direction of a working sip config for callcentricusing asterisk 16.2.1

yes ive tried the one in callcentric support documentation

https://www.callcentric.com/support/device/asterisk/1_8

I have updated the login info with my own.

register => 1777MYCCID:SECRET@sip.callcentric.net/1777MYCCID

[callcentric]

type=peer
context=from-callcentric
host=sip.callcentric.net
fromdomain=sip.callcentric.net
defaultuser=1777MYCCID
fromuser=1777MYCCID
secret=SECRET
insecure=port,invite
disallowed_methods=UPDATE
directmedia=no
videosupport=no
disallow=all
allow=ulaw
nat=force_rport,comedia
qualify=yes
dtmfmode = rfc2833

You need to provide logging.

Also most people here moved to chan_pjsip years ago, so chan_sip expertise is thin on the ground.

There is nothing that stands out as causing a registration failure. The only obvious issues are that defaultuser doesn’t do anything here, insecure=port probably just,. marginally, reduces your security. and there is no obvious reasons why you need nat= set to anything but default.

If you are behind NAT, you should provide the external address and local network addresses; nat= does not address that situation.

I don’t know if callcentric use multiple source addresses, but that wouldn’t break thngs until after the registration.

the logs don’t show even a single register attempt.

I am also totally open to the idea of pjsip i just haven’t used it yet

this is the log info when i try to use pjsip

This is my pjsip.conf

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

; -----------------------------------
; CALLCENTRIC TRUNK
; -----------------------------------

[callcentric]
type=registration
transport=transport-udp
outbound_auth=callcentric_auth
retry_interval=60
expiration=3600
auth_rejection_permanent=yes
contact_user=1777MYCCID
server_uri=sip:sip.callcentric.net
client_uri=sip:1777MYCCID@sip.callcentric.net

[callcentric_auth]
type=auth
auth_type=userpass
password=SUPERSECRET
username=1777MYCCID

[callcentric]
type=endpoint
transport=transport-udp
context=from-callcentric
disallow=all
allow=ulaw
outbound_auth=callcentric_auth
aors=callcentric
from_domain=sip.callcentric.net
from_user=1777MYCCID
sdp_owner=1777MYCCID
direct_media=no
ice_support=no
send_rpid=yes
rtp_symmetric=yes
force_rport=yes
timers=no

[callcentric]
type=aor
contact=sip:1777MYCCID@sip.callcentric.net

[callcentric1]
type=identify
endpoint=callcentric
match=204.11.192.0/22

[callcentric2]
type=identify
endpoint=callcentric
match=199.87.144.0/21

Unable to retrieve PJSIP transport “transport-udp” is your problem. Remove the :5060 in bind address

Note that if you have chan_sip loaded it will likely be listening on port 5060 by default, meaning that chan_pjsip can’t do the same so each has to be on a different port.

I have removed the bind

How do i change the port? Currently i have several phones on chan_sip lines. and i only have been experimenting with adding the pjsip for a inbound callcentric line. SO i guess i would want to change the pjsip port.

You specify the port on the bind line in PJSIP. If not specified it defaults to 5060. So therefore,

bind=0.0.0.0:5070

Would bind it to port 5070.

Thank you, that helped. Unfortunately I’m still having registration issues. I can sign in with my softphone no problems, but when i try asterisk it wont register

[Jun 4 09:19:22] WARNING[105879]: res_pjsip_outbound_registration.c:796 schedule_retry: No response received from 'sip:sip.callcentric.net' on registration attempt to 'sip:17778899543@sip.callcentric.net', retrying in '60'

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