[asterisk-users] Incoming SIP call is rejected always.

Matthew Jordan mjordan at digium.com
Tue Apr 17 20:20:06 CDT 2012

----- Original Message -----
> From: "Yaroslav Panych" <panych.y at gmail.com>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
> Sent: Tuesday, April 17, 2012 6:56:17 PM
> Subject: Re: [asterisk-users] Incoming SIP call is rejected always.
> 2012/4/18 Matthew  Jordan <mjordan at digium.com>:
> > I imagine that this is the case, as ASTERISK-19601 noted that
> > when this situation occurs, the NOTICE message indicates that
> > there is a failure to match the extension, as opposed to a failure
> > to match an allowed domain.
> Yes, it was hell to detect real error cause(I was forced to learn how
> to debug in KDevelop in less than four hours). Yes, it looks like
> ASTERISK-19601. But still I cannot understand why asterisk extracts
> wrong domain from request.
> > However, in your SIP configuration you have set
> > allowexternaldomains to no.
> Yes, it is intended.
> > Without knowing the URI the INVITE request was addressed to, its
> > difficult to say what might be the actual cause of this.
> I first letter I have provided CLI log which contains full request
> packets(Authless and authed INVITE included).
> Probably I do not understand how to configure Asterisk:
> I have one asterisk. It serves SIP domain example.com. This asterisk
> must be able to establish session with registered client of this
> account and also must be able to accept incoming sessions. No
> sessions
> with 3rd-party accounts on 3rd-party domains allowed to established.
> How I should setup this asterisk?

Well, I can't tell you how to configure your Asterisk server.  However,
I can tell you why Asterisk rejected the INVITE request.

The URI that the INVITE request was addressed to is
4001020 at  The domain portion of this URI is  Hence, the allowed domains need to include that
particular IPv4 address.  Looking at the allowed domains you've
specified in sip.conf, we have:


So, since the INVITE request does not match any of those three domains,
its rejected.

Note: I noticed that you have autodomain set to yes; I'm going to
assume that the IPv4 address is not associated with the


> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

More information about the asterisk-users mailing list