SIP provider - I can't do outbound calls

I can’t do outbound calls.

I’m sure that my userid and password are correct.
nat=yes option in sip.conf is enabled.
Incoming calls are allright.

This is the output of the asterisk cli (I censored the phone numbers).

Using SIP RTP CoS mark 5
– Executing [-----------@Internal:1] Dial(“SIP/24-0000004d”, “SIP/,TtKk”) in new stack
== Using SIP RTP CoS mark 5
– Called
[Feb 15 11:49:14] NOTICE[2090]: chan_sip.c:16913 handle_response_invite: Failed to authenticate on INVITE to ‘“telefonoIP” sip:----------@;tag=as2b0448b5’
– SIP/ is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [-------------@Internal:2] Hangup(“SIP/24-0000004d”, “”) in new stack
== Spawn extension (Internal, ---------, 2) exited non-zero on ‘SIP/24-0000004d’

Can someone suggest me a solution?

You might not be transmitting the userid in an acceptable place, e.g. you might be sending CLI in From:

Sometimes i had this other kind of problem, so i loose the registration and incoming call won’t work…
I replaced my account name with "------"
This message is repeated a lot of times.

[Feb 15 16:54:56] NOTICE[1982]: chan_sip.c:10669 sip_reg_timeout: – Registration for '’ timed out, trying again (Attempt #13284)
[Feb 15 16:54:57] WARNING[1982]: chan_sip.c:10793 transmit_register: Probably a DNS error for registration to, trying REGISTER again (after 20 seconds)

Related to the previous problem, could it be a nat issue?
I disabled the firewall and I opened 5060 and 5061 tcp port.
I can’t understand…

The problem here is not with the REGISTER, but with the INVITE. It is easy to ensure that From: contains the user ID for REGISTER.

I think I have 2 problems.

Registration problem for the incoming calls and authentication for outcoming calls.

I’m thinking that the 2 problems could be related, because of a network issues.

Thanks david55 for you indications.
I’m sorry, i can’t understand what you mean… :blush:

When you make a call, if the service provider requires authentication, they will need your user ID somewhere. The default location of that is the same as the default location for outgoing calling line ID. Even if you have a correct user ID for REGISTER, you also need to make sure that the user ID for outgoing calls is in the right place. This might mean using RPID (remote party ID) for CLI, or it might mean that you cannot set the CLI to anything except the name by which you are registered.

Your service provider ought to be able to tell you how to configure Asterisk for use with their service. It is also possible, if you tell them that you are using Asterisk, they will make adjustments at their end.