Re: Local calls not possible when Internet connection down

Łukasz Grzywański <[email protected]> Tue, 7 Nov 2023 00:22:21 +0100
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <CAHiQqvFT4Q3k2t6Z-VEwKjE-z7ioKBp7P6zm12m7z0tMT47zHQ@mail.gmail.com>
--===============6067249234687702657==
Content-Type: multipart/alternative; boundary="000000000000e5c4de06098420c9"

--000000000000e5c4de06098420c9
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Could you show the phone configurations - section "Proxy and Registration"

On Mon, 6 Nov 2023 at 23:13, Marek Gre=C5=A1ko <[email protected]=
>
wrote:

> Hello,
>
> you are probably right. It should somehow be related to DNS. I just found
> out this in the storm of previous messages:
>
> WARNING[13945] taskprocessor.c: The 'dns_system_resolver_tp' task
> processor queue reached 500 scheduled tasks.
>
> But I am not sure why this is happening. I have sip providers hostname in
> /etc/hosts file to prevent such situations. Should I reconfigure it not t=
o
> use hosts file but rather some RPZ on DNS server? Does asterisk ignore
> hosts file? Or does it try to do some srv lookups? But in either case, wh=
y
> does this influence local calls? Local domain should really be resolvable=
.
>
> Thanks
>
> Marek
>
>
> ------- Original Message -------
> On Monday, November 6th, 2023 at 19:52, Marek Gre=C5=A1ko <
> [email protected]> wrote:
>
> Hello,
>
> sure I have local DNS server and public resolving should not be needed fo=
r
> phone registrations. Running pjsip show endpojnt show the endpoints as no=
t
> in use.
>
> When looking into logs I see only res_pjsip_outbound_registration.c: No
> response
> received from sip provider. Nothing else.
>
> In phone log I see:
> CC_eventProc(event=3D63(CC_EV_SIG_REGISTER_FAILED),
>  lid=3D0, par=3D0, par2=3D(nil))
>
> The phone is Cisco SPA525G2.
>
> Thanks.
>
> Marek
>
>
>
> ------- Original Message -------
> On Monday, November 6th, 2023 at 15:45, Joshua C. Colp <[email protected]=
>
> wrote:
>
> On Mon, Nov 6, 2023 at 10:42=E2=80=AFAM Marek Gre=C5=A1ko <marek.gresko@p=
rotonmail.com>
> wrote:
>
>> It looks like all phones get unregistered, but I am not aware of the
>> cause. Why are get not registered when there is a connectivity between t=
hem
>> and asterisk?
>>
>
> Are the REGISTER requests reaching Asterisk (do they show up in a packet
> capture, do they show up in "pjsip set logger on")? It needs to be furthe=
r
> isolated. How are the phones configured to reach Asterisk? If using a
> hostname, are they still able to resolve it?
>
> --
> Joshua C. Colp
> Asterisk Project Lead
> Sangoma Technologies
> Check us out at www.sangoma.com and www.asterisk.org
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>       https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



--=20

Pozdrawiam,

=C5=81ukasz Grzywa=C5=84ski
Voice Architect

Mok Yok IT Sp. z o.o.
ul. Rze=C5=BAnicza 32/33, 50-130 Wroc=C5=82aw, Polska
tel. +48 717227200, fax +48 717227299
mob.: +48 517255333, e-mail: [email protected]

--000000000000e5c4de06098420c9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Could you show the phone configurations - section &qu=
ot;Proxy and Registration&quot;=C2=A0<br></div></div><br><div class=3D"gmai=
l_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, 6 Nov 2023 at 23:13,=
 Marek Gre=C5=A1ko &lt;<a href=3D"mailto:[email protected]">marek=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,2=
04);padding-left:1ex"><div style=3D"font-family:Arial,sans-serif;font-size:=
14px"><span>Hello,</span></div><div style=3D"font-family:Arial,sans-serif;f=
ont-size:14px"><span><br></span></div><div style=3D"font-family:Arial,sans-=
serif;font-size:14px"><span>you are probably right. It should somehow be re=
lated to DNS. I just found out this in the storm of previous messages:<br><=
/span></div><div style=3D"font-family:Arial,sans-serif;font-size:14px"><spa=
n><br></span></div><div style=3D"font-family:Arial,sans-serif;font-size:14p=
x"><span>WARNING[13945] taskprocessor.c: The &#39;dns_system_resolver_tp&#3=
9; task processor queue reached 500 scheduled tasks.</span><br><span></span=
></div><div style=3D"font-family:Arial,sans-serif;font-size:14px;color:rgb(=
0,0,0);background-color:rgb(255,255,255)"><br></div><div style=3D"font-fami=
ly:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(25=
5,255,255)">But I am not sure why this is happening. I have sip providers h=
ostname in /etc/hosts file to prevent such situations. Should I reconfigure=
 it not to use hosts file but rather some RPZ on DNS server? Does asterisk =
ignore hosts file? Or does it try to do some srv lookups? But in either cas=
e, why does this influence local calls? Local domain should really be resol=
vable.<br></div><div style=3D"font-family:Arial,sans-serif;font-size:14px;c=
olor:rgb(0,0,0);background-color:rgb(255,255,255)"><br></div><div style=3D"=
font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-col=
or:rgb(255,255,255)">Thanks</div><div style=3D"font-family:Arial,sans-serif=
;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></d=
iv><div style=3D"font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,=
0);background-color:rgb(255,255,255)">Marek</div><div style=3D"font-family:=
Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,2=
55,255)"><br></div><div style=3D"font-family:Arial,sans-serif;font-size:14p=
x;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></div><div>
        ------- Original Message -------<br>
        On Monday, November 6th, 2023 at 19:52, Marek Gre=C5=A1ko &lt;<a hr=
ef=3D"mailto:[email protected]" target=3D"_blank">marek.gresko@pr=
otonmail.com</a>&gt; wrote:<br><br>
        <blockquote type=3D"cite">
            <div style=3D"font-family:Arial,sans-serif;font-size:14px;color=
:rgb(0,0,0);background-color:rgb(255,255,255)">Hello,</div><div style=3D"fo=
nt-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color=
:rgb(255,255,255)"><br></div><div style=3D"font-family:Arial,sans-serif;fon=
t-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">sure I have=
 local DNS server and public resolving should not be needed for phone regis=
trations. Running pjsip show endpojnt show the endpoints as not in use.</di=
v><div style=3D"font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0=
);background-color:rgb(255,255,255)"><br></div><div style=3D"font-family:Ar=
ial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255=
,255)">When looking into logs I see only <span>res_pjsip_outbound_registrat=
ion.c: No response </span><br><span>received from</span> sip provider. Noth=
ing else.</div><div style=3D"font-family:Arial,sans-serif;font-size:14px;co=
lor:rgb(0,0,0);background-color:rgb(255,255,255)"><br></div><div style=3D"f=
ont-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-colo=
r:rgb(255,255,255)">In phone log I see:</div><div style=3D"font-family:Aria=
l,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,2=
55)"><span>CC_eventProc(event=3D63(CC_EV_SIG_REGISTER_FAILED),</span><br><s=
pan>=C2=A0lid=3D0, par=3D0, par2=3D(nil))</span></div><div style=3D"font-fa=
mily:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(=
255,255,255)"><br></div><div style=3D"font-family:Arial,sans-serif;font-siz=
e:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">The phone is Cis=
co SPA525G2.</div><div style=3D"font-family:Arial,sans-serif;font-size:14px=
;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></div><div style=
=3D"font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background=
-color:rgb(255,255,255)">Thanks.</div><div style=3D"font-family:Arial,sans-=
serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><b=
r></div><div style=3D"font-family:Arial,sans-serif;font-size:14px;color:rgb=
(0,0,0);background-color:rgb(255,255,255)">Marek</div><div style=3D"font-fa=
mily:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);background-color:rgb(=
255,255,255)"><br></div><div style=3D"font-family:Arial,sans-serif;font-siz=
e:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></div><div s=
tyle=3D"font-family:Arial,sans-serif;font-size:14px;color:rgb(0,0,0);backgr=
ound-color:rgb(255,255,255)"><br></div><div>
        ------- Original Message -------<br>
        On Monday, November 6th, 2023 at 15:45, Joshua C. Colp &lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>&gt; w=
rote:<br><br>
        <blockquote type=3D"cite">
            <div dir=3D"ltr"><div>On Mon, Nov 6, 2023 at 10:42=E2=80=AFAM M=
arek Gre=C5=A1ko &lt;<a rel=3D"noreferrer nofollow noopener" href=3D"mailto=
:[email protected]" target=3D"_blank">[email protected]=
</a>&gt; wrote:<br></div><div class=3D"gmail_quote"><blockquote class=3D"gm=
ail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,=
204,204);padding-left:1ex"><div style=3D"font-family:Arial,sans-serif;font-=
size:14px;color:rgb(0,0,0);background-color:rgb(255,255,255)">It looks like=
 all phones get unregistered, but I am not aware of the cause. Why are get =
not registered when there is a connectivity between them and asterisk?</div=
></blockquote><div><br></div><div>Are the REGISTER requests reaching Asteri=
sk (do they show up in a packet capture, do they show up in &quot;pjsip set=
 logger on&quot;)? It needs to be further isolated. How are the phones conf=
igured to reach Asterisk? If using a hostname, are they still able to resol=
ve it?</div></div><div><br></div><span class=3D"gmail_signature_prefix">-- =
</span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div=
><div dir=3D"ltr"><div><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><=
div dir=3D"ltr"><div style=3D"font-family:tahoma,sans-serif"><font color=3D=
"#073763">Joshua C. Colp</font></div><div style=3D"font-family:tahoma,sans-=
serif"><font color=3D"#073763">Asterisk Project Lead</font></div><div style=
=3D"font-family:tahoma,sans-serif"><font color=3D"#073763">Sangoma Technolo=
gies</font></div><div style=3D"font-family:tahoma,sans-serif"><font color=
=3D"#073763">Check us out at <a rel=3D"noreferrer nofollow noopener" href=
=3D"http://www.sangoma.com" target=3D"_blank">www.sangoma.com</a> and <a re=
l=3D"noreferrer nofollow noopener" href=3D"http://www.asterisk.org" target=
=3D"_blank">www.asterisk.org</a></font><br></div></div></div></div></div></=
div></div></div></div></div></div>

        </blockquote><br>
    </div>
        </blockquote><br>
    </div>-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href=3D"http://www.api-digital.c=
om" rel=3D"noreferrer" target=3D"_blank">http://www.api-digital.com</a> --<=
br>
<br>
Check out the new Asterisk community forum at: <a href=3D"https://community=
.asterisk.org/" rel=3D"noreferrer" target=3D"_blank">https://community.aste=
risk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
=C2=A0 =C2=A0 =C2=A0 <a href=3D"https://wiki.asterisk.org/wiki/display/AST/=
Getting+Started" rel=3D"noreferrer" target=3D"_blank">https://wiki.asterisk=
.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
=C2=A0 =C2=A0<a href=3D"http://lists.digium.com/mailman/listinfo/asterisk-u=
sers" rel=3D"noreferrer" target=3D"_blank">http://lists.digium.com/mailman/=
listinfo/asterisk-users</a></blockquote></div><br clear=3D"all"><div><br></=
div><span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr" c=
lass=3D"gmail_signature"><br>Pozdrawiam,<br><br>=C5=81ukasz Grzywa=C5=84ski=
<br>Voice Architect<br><br>Mok Yok IT Sp. z o.o.<br>ul. Rze=C5=BAnicza 32/3=
3, 50-130 Wroc=C5=82aw, Polska<br>tel. +48 717227200, fax +48 717227299<br>=
mob.: +48 517255333, e-mail: <a href=3D"mailto:[email protected]=
om" target=3D"_blank">[email protected]</a></div>

--000000000000e5c4de06098420c9--


--===============6067249234687702657==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

LS0gCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fXwotLSBCYW5kd2lkdGggYW5kIENvbG9jYXRpb24gUHJvdmlkZWQgYnkg
aHR0cDovL3d3dy5hcGktZGlnaXRhbC5jb20gLS0KCkNoZWNrIG91dCB0aGUgbmV3IEFzdGVyaXNr
IGNvbW11bml0eSBmb3J1bSBhdDogaHR0cHM6Ly9jb21tdW5pdHkuYXN0ZXJpc2sub3JnLwoKTmV3
IHRvIEFzdGVyaXNrPyBTdGFydCBoZXJlOgogICAgICBodHRwczovL3dpa2kuYXN0ZXJpc2sub3Jn
L3dpa2kvZGlzcGxheS9BU1QvR2V0dGluZytTdGFydGVkCgphc3Rlcmlzay11c2VycyBtYWlsaW5n
IGxpc3QKVG8gVU5TVUJTQ1JJQkUgb3IgdXBkYXRlIG9wdGlvbnMgdmlzaXQ6CiAgIGh0dHA6Ly9s
aXN0cy5kaWdpdW0uY29tL21haWxtYW4vbGlzdGluZm8vYXN0ZXJpc2stdXNlcnM=

--===============6067249234687702657==--