Asterisk – Rejected incoming IAX connection

I was having trouble getting an inbound IAX connection to connect successfully to test my asterisk box. The asterisk console was showing the following error:

 Rejected connect attempt from, who was trying to reach '448448160404@'

After some hacking around it turns out that the username in the IAX address must match the [header] name in iax.conf, even though you specify the username separately.

E.g. if your iax address is something like IAX2/xxxx:[email protected] then your iax.conf defintion will need to be:


I also added the inboundmagrathea context to extensions.conf

exten => 448448160404,1,Dial(SIP/6000)
exten => 448448160404,2,Hangup

Leave a Reply

Your email address will not be published. Required fields are marked *