No attempts made to register sip trunk

Hi. I’m trying to setup asterisk with a kind of template we use In the office. It’s worked fine until now.

This time, I’m having an Issue with registering SIP Trunks. No attempts are made to register whatsoever and tcpdump Is showing no activity for port 5060.

I am wondering If there Is something I’m missing In the sip or extensions.conf files as I am a real amateur when It comes to Asterisk.

Could someone please take a brief look at these files to see If there’s anything out of order / missing.
(Attached).

SIP.CONF

[general]
;Jitter Buffer
jbenable=yes
jbforce=yes
jbmaxsize=500
jbimpl=fixed
;jbimpl=adaptive
;jbresynchthreshold=100
externrefresh=3600
rtptimeout=1200
registerattempts=0
rtpholdtimeout=2000
session-timers=originate
session-expires=600
session-minse=90
session-refresher=uas

tcpenable=yes
tcpbindaddr=0.0.0.0

register => 1234567:6eyg@sip.something.net/1234567
register => 89101112:gj2b@sip.something.net/89101112
register => 3456789:d8qvz@sip.something.net/3456789

[mtnsat-outbound]
type=friend
directmedia=no
directrtpsetup=no
dtmfmode=auto
dtmfmode=RFC2833
host=sip.mtnsat.net
context=shipsat
;context=DirectCall
username=1234567
transport=tcp
trustrpid=yes
sendrpid=yes
secret=6eyg
;disallow=all
allow=g729:60
allow=ulaw
allow=alaw
nat=yes

EXTENSIONS.CONF

[shipsat]

exten => 625, 1, Answer()
exten => 625, n,Set(BOXID=${SHELL(/bin/cat /etc/shipsatid)})
exten => 625, n,Read(USERPIN,shipsat/enter_account,10)
exten => 625, n,Set(GW_ID=${SHELL(/Database/shipsat/scripts/getgwid):0:-1})
exten => 625, n,AGI(checkBalance.agi,${USERPIN},${BOXID},${GW_ID})
exten => 625, n,Playback(account-balance-is)
exten => 625, n,AGI(d2ms.agi,${BALANCE},usd,1)
exten => 625, 5, Hangup()

;Read Balance
exten => readbalance,1,Playback(shipsat/account-balance-is)
exten => readbalance,2,AGI(d2ms.agi,${BALANCE},usd,1)
exten => readbalance,3,Hangup

;START FMG GRACE NNIKOLAOU 9.12.16

exten => 1234567 ,1,Set(DSTNUM=${EXTEN})
exten => 1234567 ,2,Set(CALID=${CALLERID(num)})
exten => 1234567 ,3,Dial(SIP/8551)
exten => 1234567 ,4,Hangup()

exten => _X./8551,1,Set(gateway=${CALLERID(num)})
exten => _X./8551,n,Answer
exten => _X./8551,n,Set(GW_ID=${SHELL(/Database/shipsat/scripts/getgwid):0:-1})
exten => _X./8551,n,Set(BOXID=${SHELL(/bin/cat /etc/shipsatid)})
;exten => _X./8551,n,Set(USERKEY=34825183)
exten => _X./8551,n,Set(USERKEY=67779532)
exten => _X./8551,n,Set(CDR(accountcode)=${USERKEY})
exten => _X./8551,n,Set(CALLERID(num)=1234567)
exten => _X./8551,n,Set(CDR(userfield)=${BOXID}@${GW_ID})
exten => _X./8551,n,AGI(checkUserAuth.agi,${USERKEY},${BOXID},${GW_ID},${EXTEN})
exten => _X./8551,n,Hangup(18) ;Check script fails

exten => _X.,1,Set(gateway=${CALLERID(num)})
exten => _X.,n,Answer()
exten => _X.,n,Set(GW_ID=${SHELL(/Database/shipsat/scripts/getgwid):0:-1})
exten => _X.,n,Read(USERKEY,shipsat/enter-pin-number,10)
exten => _X.,n,Set(CDR(userfield)=${BOXID}@${GW_ID})
exten => _X.,n,Set(BOXID=${SHELL(/bin/cat /etc/shipsatid)})
exten => _X.,n,Set(CDR(accountcode)=${USERKEY})
exten => _X.,n,AGI(checkUserAuth.agi,${USERKEY},${BOXID},${GW_ID},${EXTEN})
exten => _X.,n,Hangup(18)

exten => h,1,NoOp(Call data : ${DIALSTATUS} : ${ANSWEREDTIME} : ${CDR(billsec)} : ${STRFTIME(${EPOCH},%Y-%m-%d %H:%M:%S)})
exten => h,n,AGI(writeCdr.agi, ${DSTNUM}, ${CDR(start)}, ${STRFTIME(${EPOCH},%Y-%m-%d %H:%M:%S)}, ${CDR(duration)}, ${CDR(disposition)}, ${CDR(userfield)}, ${CDR(accountcode)}, ${CDR(billsec)})

exten => badauth,1,Playback(shipsat/auth-fail)
exten => badauth,n,Hangup(21)

exten => nomoney,1,Playback(shipsat/no-credits)
exten => nomoney,n,Hangup(21)

[DirectCall]
;exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@mtnsat-outbound)
;exten => _.,1,Dial(SIP/${EXTEN}@mtnsat-outbound)

;;MTN SAT Outbound Calling
exten => makecallEMC,1,NoOp( DialOut ${DST1} )
exten => makecallEMC,2,Dial(SIP/${DST1}@mtnsat-outbound,30,S(${AVALSEC}))
exten => makecallEMC,3,Hangup

Are you capturing TCP traffic? It looks like you are only configuring asterisk to use TCP in your sip.conf.

Start from minimalist configuration:

[mtnsat]
type=peer
host=sip.mtnsat.net
fromdomain=sip.mtnsat.net
transport=tcp
context=shipsat
defaultuser=1234567
fromuser=1234567
secret=6eyg
nat=no

in [general] section:

register = tcp://1234567:6eyg@sip.mtnsat.net

Then check your sip debug.

On the above statement , do you mean Asterisk registering as a SIP user agent to a SIP proxy unsing the register string ?

and also another question could you enable the qualify option and then verify what is the output of this command sip show peers ?

Thank you all for your assistance. The minimalist configuration Is working!

I will go through the current sip.conf and see what’s the cause.

Thanks