Sip trunk not registering

Hello,
I’m using asterisk 17.4 and its not registering sip trunk. on ** sip show registry** it shows request sent. Anyone to help?
Regards

This is my sip.conf
[general]
context=public
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
qualify=yes
caninvite=no

register => user[:secret]@host

[authentication]
basic-options
dtmfmode=rfc2833
context=from-office
type=friend

natted-phone](!,basic-options)
directmedia=no
host=dynamic

public-phone
direct-media=yes

my-codecs
disallow=all
allow=ilbc
allow=g729
allow=gsm
allow=g723
allow=ulaw

ulaw-phone
disallow=all
allow=ulaw

[provider]
type=friend
context=provider
allow=ulaw,alaw
secret=password
host=myhost
nat=force_rport,comedia
insecure=invite
fromdomain=myhost
defaultuser=27XXX

[tau]
type=friend
context=phones
allow=ulaw,alaw
secret=password_1
host=dynamic

[valentine]
type=friend
context=phones
allow=ulaw,alaw
secret=password_2
host=dynamic

[outside]
type=friend
context=incoming
allow=ulaw,alaw
secret=password3
host=dynamic

[ ] around :secret are meta characters, indicating the field is optional; they should not be present in the actual file. (user, secret and host are metaname.)

basic-options is undefined.

canreinvite is an obsolete alias of directmedia. You have two different punctiuations of the latter.

type=peer is advisable unless there a specific reasons to match by user name.

several templates appear to be unused.

host= on provider should be their host, not yours.

this is what i did on register
register => 27XX:34yyryrt@sip.bizvoip.co.za

then on host
host = sip.bizvoip.co.za
fromdomain = sip.bizvoip.co.za

Can those unused templates prevent sip trunk from registering

Is your provider replying to the REGISTER request ?

Did you make trace to confim it ?

I’m noob here, how can l go about that

The unused templates have no effect, but when combined with the obvious signs of a cut and paste configuration do give some concern that they might have been there for a purpose.

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