Asterisk appending port numbers?

My working softphone from my provider looks like this:

Request: INVITE

This call goes through normally. But my asterisk setup sends this packet:

Request: INVITE

and it comes back with 404, not found. It looks like the difference is the port number. how do i get asterisk to not add on a port number?

the port number doesn’t belong in your register statement under [general], it needs to be defined under your SIP peer section in sip.conf (ie port=5060). That makes it work for me