Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-08 Thread Marek Greško
Hello,

I confirm server and phones are on the same subnet and the phones are able to 
resolve local domain also when internet connection os down. It seems to be the 
asterisk bug I referenced before. There seems to be some bolcking resolver in 
it.

I do not use database related to asterisk. This should be related to the srv 
record resolving. It seems quite random time to trigger the issue. When 
inspecting logs after internet problems started the issue appeared in one hour 
and several minutes. After restart of the asterisk it reappeared in less than 
half an hour. When trying to reproduce I was not able to reproduce for one hour 
and a half. So I decided to configure srv_lookups=no. I hope the issue is 
workarounded now.

But I think asterisk should be fixed. It should successfully start when the 
VoIP providers sip server is not reachable, should recover after it becomes 
available. And should work locally when it stops to be responding. The tweak of 
creating /etc/hosts entry for the sip server and disabling srv lookups should 
not be needed. I hope sometimes theese issues will be addressed.

Marek

On Wednesday, November 8th, 2023 at 15:53, John Harragin 
 wrote:

> Are the phones and the server in the same subnet? You might making note of 
> the IPs and just simply try pinging everything with the uplink disconnected. 
> Also, if you are using domain names for registration, it is possible a dns 
> server must be reachable.
>
> If you are using database for any of your call processing, an unreachable dns 
> server can also be the cause of trouble. For some reason, even if you are 
> using IP addressing, Mysql will try to resolve a connection and can hang 
> (there is a mysql parameter to not resolve addresses).
>
> On Wed, Nov 8, 2023 at 8:46 AM Marek Greško  
> wrote:
>
>> Hello,
>>
>> it did not seem the call hung. It seemed it never started. There was no 
>> dialplan execution on the asterisk side. It looked like phones were 
>> unregistered. Same shows the log posted previously.
>>
>> Marek
>>
>> Sent with Proton Mail secure email.
>>
>> --- Original Message ---
>> On Wednesday, November 8th, 2023 at 1:21, John Harragin 
>>  wrote:
>>
>>> Marek,
>>>
>>> See if calls hang in the system if you encounter another outage
>>> core show channels
>>>
>>> ...if so,
>>> core set verbose 3
>>> and see what instructions subsequent calls hang on.
>>>
>>>
>>>
>>> On Mon, Nov 6, 2023 at 4:44 PM Marek Greško marek.gre...@protonmail.com 
>>> wrote:
>>>
>>> > Hello,
>>> >
>>> > sure I have local DNS server and public resolving should not be needed 
>>> > for phone registrations. Running pjsip show endpojnt show the endpoints 
>>> > as not 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=63(CC_EV_SIG_REGISTER_FAILED),
>>> > lid=0, par=0, par2=(nil))
>>> >
>>> > The phone is Cisco SPA525G2.
>>> >
>>> > Thanks.
>>> >
>>> > Marek
>>> >
>>> > --- Original Message ---
>>> > On Monday, November 6th, 2023 at 15:45, Joshua C. Colp jc...@sangoma.com 
>>> > wrote:
>>> >
>>> > On Mon, Nov 6, 2023 at 10:42 AM Marek Greško marek.gre...@protonmail.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 
>>> > > them 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 
>>> > further 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
>>>
>>>
>>> --
>>> _
>>> -- 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
>>
>> --
>> 

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-08 Thread John Harragin
Are the phones and the server in the same subnet? You might making note of
the IPs and just simply try pinging everything with the uplink
disconnected. Also, if you are using domain names for registration, it is
possible a dns server must be reachable.

If you are using database for any of your call processing, an unreachable
dns server can also be the cause of trouble. For some reason, even if you
are using IP addressing, Mysql will try to resolve a connection and can
hang (there is a mysql parameter to not resolve addresses).

On Wed, Nov 8, 2023 at 8:46 AM Marek Greško 
wrote:

> Hello,
>
> it did not seem the call hung. It seemed it never started. There was no
> dialplan execution on the asterisk side. It looked like phones were
> unregistered. Same shows the log posted previously.
>
> Marek
>
>
>
>
>
> Sent with Proton Mail secure email.
>
> --- Original Message ---
> On Wednesday, November 8th, 2023 at 1:21, John Harragin <
> jharra...@mw.k12.ny.us> wrote:
>
>
> > Marek,
> >
> > See if calls hang in the system if you encounter another outage
> > core show channels
> >
> > ...if so,
> > core set verbose 3
> > and see what instructions subsequent calls hang on.
> >
> >
> >
> > On Mon, Nov 6, 2023 at 4:44 PM Marek Greško marek.gre...@protonmail.com
> wrote:
> >
> > > Hello,
> > >
> > > sure I have local DNS server and public resolving should not be needed
> for phone registrations. Running pjsip show endpojnt show the endpoints as
> not 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=63(CC_EV_SIG_REGISTER_FAILED),
> > > lid=0, par=0, par2=(nil))
> > >
> > > The phone is Cisco SPA525G2.
> > >
> > > Thanks.
> > >
> > > Marek
> > >
> > > --- Original Message ---
> > > On Monday, November 6th, 2023 at 15:45, Joshua C. Colp
> jc...@sangoma.com wrote:
> > >
> > > On Mon, Nov 6, 2023 at 10:42 AM Marek Greško
> marek.gre...@protonmail.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 them
> 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
> further 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
> >
> >
> > --
> > _
> > -- 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
>
> --
> _
> -- 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
-- 
_
-- 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-07 Thread Marek Greško
Hello,

it did not seem the call hung. It seemed it never started. There was no 
dialplan execution on the asterisk side. It looked like phones were 
unregistered. Same shows the log posted previously.

Marek





Sent with Proton Mail secure email.

--- Original Message ---
On Wednesday, November 8th, 2023 at 1:21, John Harragin 
 wrote:


> Marek,
> 
> See if calls hang in the system if you encounter another outage
> core show channels
> 
> ...if so,
> core set verbose 3
> and see what instructions subsequent calls hang on.
> 
> 
> 
> On Mon, Nov 6, 2023 at 4:44 PM Marek Greško marek.gre...@protonmail.com wrote:
> 
> > Hello,
> > 
> > sure I have local DNS server and public resolving should not be needed for 
> > phone registrations. Running pjsip show endpojnt show the endpoints as not 
> > 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=63(CC_EV_SIG_REGISTER_FAILED),
> > lid=0, par=0, par2=(nil))
> > 
> > The phone is Cisco SPA525G2.
> > 
> > Thanks.
> > 
> > Marek
> > 
> > --- Original Message ---
> > On Monday, November 6th, 2023 at 15:45, Joshua C. Colp jc...@sangoma.com 
> > wrote:
> > 
> > On Mon, Nov 6, 2023 at 10:42 AM Marek Greško marek.gre...@protonmail.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 
> > > them 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 further 
> > 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
> 
> 
> --
> _
> -- 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

-- 
_
-- 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-07 Thread John Harragin
Marek,

See if calls hang in the system if you encounter another outage
core show channels

...if so,
core set verbose 3
and see what instructions subsequent calls hang on.



On Mon, Nov 6, 2023 at 4:44 PM Marek Greško  wrote:
>
> Hello,
>
> sure I have local DNS server and public resolving should not be needed for 
> phone registrations. Running pjsip show endpojnt show the endpoints as not 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=63(CC_EV_SIG_REGISTER_FAILED),
>  lid=0, par=0, par2=(nil))
>
> The phone is Cisco SPA525G2.
>
> Thanks.
>
> Marek
>
>
>
> --- Original Message ---
> On Monday, November 6th, 2023 at 15:45, Joshua C. Colp  
> wrote:
>
> On Mon, Nov 6, 2023 at 10:42 AM Marek Greško  
> 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 them 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 further 
> 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

-- 
_
-- 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-07 Thread Marek Greško
Hello Joshua,

thanks for suggestion. I just found out the same solution several minutes ago. 
I also obtained the maintenance window, so I diasbled outgoing DNS and SIP. But 
I was not successful reproducing the bad state. So I ceased futher debugging 
attempts and set srv_lookups to no. We will see once the next massive internet 
outage out of my control happens, whether it helped.

Thanks again

Marek

--- Original Message ---
On Tuesday, November 7th, 2023 at 16:28, Joshua C. Colp  
wrote:

> On Tue, Nov 7, 2023 at 11:20 AM Marek Greško  
> wrote:
>
>> Hello,
>>
>> well I do not ask those who only guess, but those who know what is asterisk 
>> expected to do when internet connectivity goes down. I did not had a chance 
>> to make internet not to work yet, since it is needed. But inspecting dns 
>> logs I found out that there started to be resolving for _sip._tcp and 
>> _sip._udp records for the provider's server. So apparently making hosts 
>> record make asterisk happy when everything works, but when there is a 
>> communication problem then it falls back to searching for srv records. At 
>> least it seems to be so for now. Moreover I found out this old thread:
>
> The expectation is that Asterisk continues to work. That being said there is 
> one case (specifically using realtime with an identify section that 
> references a hostname) that can cause this specific behavior where PJSIP will 
> block.
>
> Are you in that scenario? If so you CAN disable SRV records on the identify 
> by setting "srv_lookups" to "no".
> --
>
> 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-07 Thread Joshua C. Colp
On Tue, Nov 7, 2023 at 11:20 AM Marek Greško 
wrote:

> Hello,
>
> well I do not ask those who only guess, but those who know what is
> asterisk expected to do when internet connectivity goes down. I did not had
> a chance to make internet not to work yet, since it is needed. But
> inspecting dns logs I found out that there started to be resolving for
> _sip._tcp and _sip._udp records for the provider's server. So apparently
> making hosts record make asterisk happy when everything works, but when
> there is a communication problem then it falls back to searching for srv
> records. At least it seems to be so for now. Moreover I found out this old
> thread:
>

The expectation is that Asterisk continues to work. That being said there
is one case (specifically using realtime with an identify section that
references a hostname) that can cause this specific behavior where PJSIP
will block.

Are you in that scenario? If so you CAN disable SRV records on the identify
by setting "srv_lookups" to "no".

-- 
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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-07 Thread Marek Greško
Hello,

well I do not ask those who only guess, but those who know what is asterisk 
expected to do when internet connectivity goes down. I did not had a chance to 
make internet not to work yet, since it is needed. But inspecting dns logs I 
found out that there started to be resolving for _sip._tcp and _sip._udp 
records for the provider's server. So apparently making hosts record make 
asterisk happy when everything works, but when there is a communication problem 
then it falls back to searching for srv records. At least it seems to be so for 
now. Moreover I found out this old thread:

https://community.freepbx.org/t/asterisk-become-mad-when-a-dns-problem-occur/4755/10

So the problem seems to be still present. So if asterisk is not able to resolve 
using it's dns resolver it breaks also local communication which is complete 
non-sense.

I am thinking of two possible workarounds:

1. If thre is a possibility to convince asterisk not to fallback to searching 
for srv records, it would be ideal. Is somebody aware of such options in pjsip?

2. If the first workaround is not feasible I can create rpz records for 
provider's A and SRV records.

When I will be able to shutdown internet or at least outbound DNS, I will try 
to make sure my findings are correct using tcpdump.

Thanks

Marek





Sent with Proton Mail secure email.

--- Original Message ---
On Tuesday, November 7th, 2023 at 0:46, Greg Troxel  wrote:


> Marek Greško marek.gre...@protonmail.com writes:
> 
> > 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 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 case, why does this influence local calls? Local domain should
> > really be resolvable.
> 
> 
> You should run tcpdump on 53 and 5353 in multiple places and figure out
> what it is doing, rather than asking us, who can only guess.

-- 
_
-- 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-06 Thread Marek Greško
Hello,

the corresponding conf is:

pbx.example.lan



No
Yes
Yes
No
3600
No
No
No
3600
Normal
No
No

Marek

--- Original Message ---
On Tuesday, November 7th, 2023 at 0:22, Łukasz Grzywański 
 wrote:

> Could you show the phone configurations - section "Proxy and Registration"
>
> On Mon, 6 Nov 2023 at 23:13, Marek Greško  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 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 case, why 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ško 
>>  wrote:
>>
>>> Hello,
>>>
>>> sure I have local DNS server and public resolving should not be needed for 
>>> phone registrations. Running pjsip show endpojnt show the endpoints as not 
>>> 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=63(CC_EV_SIG_REGISTER_FAILED),
>>> lid=0, par=0, par2=(nil))
>>>
>>> The phone is Cisco SPA525G2.
>>>
>>> Thanks.
>>>
>>> Marek
>>>
>>> --- Original Message ---
>>> On Monday, November 6th, 2023 at 15:45, Joshua C. Colp  
>>> wrote:
>>>
 On Mon, Nov 6, 2023 at 10:42 AM Marek Greško  
 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 
> them 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 further 
 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
>
> --
>
> Pozdrawiam,
>
> Łukasz Grzywański
> Voice Architect
>
> Mok Yok IT Sp. z o.o.
> ul. Rzeźnicza 32/33, 50-130 Wrocław, Polska
> tel. +48 717227200, fax +48 717227299
> mob.: +48 517255333, e-mail: lukasz.grzywan...@mokyokit.com-- 
_
-- 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-06 Thread Greg Troxel
Marek Greško  writes:

> 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 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 case, why does this influence local calls? Local domain should
> really be resolvable.

You should run tcpdump on 53 and 5353 in multiple places and figure out
what it is doing, rather than asking us, who can only guess.

-- 
_
-- 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-06 Thread Łukasz Grzywański
Could you show the phone configurations - section "Proxy and Registration"

On Mon, 6 Nov 2023 at 23:13, Marek Greško 
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 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 case, why
> 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ško <
> marek.gre...@protonmail.com> wrote:
>
> Hello,
>
> sure I have local DNS server and public resolving should not be needed for
> phone registrations. Running pjsip show endpojnt show the endpoints as not
> 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=63(CC_EV_SIG_REGISTER_FAILED),
>  lid=0, par=0, par2=(nil))
>
> The phone is Cisco SPA525G2.
>
> Thanks.
>
> Marek
>
>
>
> --- Original Message ---
> On Monday, November 6th, 2023 at 15:45, Joshua C. Colp 
> wrote:
>
> On Mon, Nov 6, 2023 at 10:42 AM Marek Greško 
> 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 them
>> 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 further
> 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



-- 

Pozdrawiam,

Łukasz Grzywański
Voice Architect

Mok Yok IT Sp. z o.o.
ul. Rzeźnicza 32/33, 50-130 Wrocław, Polska
tel. +48 717227200, fax +48 717227299
mob.: +48 517255333, e-mail: lukasz.grzywan...@mokyokit.com
-- 
_
-- 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-06 Thread Marek Greško
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 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 case, why 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ško 
 wrote:

> Hello,
>
> sure I have local DNS server and public resolving should not be needed for 
> phone registrations. Running pjsip show endpojnt show the endpoints as not 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=63(CC_EV_SIG_REGISTER_FAILED),
> lid=0, par=0, par2=(nil))
>
> The phone is Cisco SPA525G2.
>
> Thanks.
>
> Marek
>
> --- Original Message ---
> On Monday, November 6th, 2023 at 15:45, Joshua C. Colp  
> wrote:
>
>> On Mon, Nov 6, 2023 at 10:42 AM Marek Greško  
>> 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 them 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 further 
>> 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-06 Thread Marek Greško
Hello,

sure I have local DNS server and public resolving should not be needed for 
phone registrations. Running pjsip show endpojnt show the endpoints as not 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=63(CC_EV_SIG_REGISTER_FAILED),
lid=0, par=0, par2=(nil))

The phone is Cisco SPA525G2.

Thanks.

Marek

--- Original Message ---
On Monday, November 6th, 2023 at 15:45, Joshua C. Colp  
wrote:

> On Mon, Nov 6, 2023 at 10:42 AM Marek Greško  
> 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 them 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 further 
> 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-06 Thread Greg Troxel
Łukasz Grzywański  writes:

> I think it's a problem with DNS server availability

I have tried to and mostly succeeded at making things work when the WAN
is down.   Elements needed:

  run a local named, vs configuring resolver to your ISP

  for names needed in the LAN, ensure they are answered locally without
  needing any non-local DNS records.  For me this is "foo.local" being
  in a policy zone to provide the LAN address of the host, as the WAN
  address goes away and changes

  Consider if you want to just put LAN IP addresses in your config

  actually turn off the WAN and test

  when that works, pull the cable to the ONT from the router, or
  equivalent, to simulate failure vs just deconniguring it and test
  again

-- 
_
-- 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-06 Thread Joshua C. Colp
On Mon, Nov 6, 2023 at 10:42 AM Marek Greško 
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 them
> 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 further
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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-06 Thread Łukasz Grzywański
Hi Marek !
pls show logs :)

I think it's a problem with DNS server availability


Lukasz


On Mon, 6 Nov 2023 at 15:41, Marek Greško 
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 them
> and asterisk?
>
> Marek
>
> --- Original Message ---
> On Monday, November 6th, 2023 at 15:10, Joshua C. Colp 
> wrote:
>
> On Mon, Nov 6, 2023 at 10:06 AM Marek Greško 
> wrote:
>
>> Hello,
>>
>> I just realized that when my Internet connection goes down and I loose
>> connectivity to VoIP SIP provider I loose ability to make local calls after
>> some time. When I restart asterisk, I am able to make local calls for some
>> time, but it then suddenly stops working again. I am using pjsip stack.
>>
>> What could be the cause of this?
>>
>
> There is insufficient information to be able to answer this. Such as, what
> actually happens when attempts are made? What shows on the console?
>
> --
> 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
-- 
_
-- 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-06 Thread Marek Greško
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?

Marek

--- Original Message ---
On Monday, November 6th, 2023 at 15:10, Joshua C. Colp  
wrote:

> On Mon, Nov 6, 2023 at 10:06 AM Marek Greško  
> wrote:
>
>> Hello,
>>
>> I just realized that when my Internet connection goes down and I loose 
>> connectivity to VoIP SIP provider I loose ability to make local calls after 
>> some time. When I restart asterisk, I am able to make local calls for some 
>> time, but it then suddenly stops working again. I am using pjsip stack.
>>
>> What could be the cause of this?
>
> There is insufficient information to be able to answer this. Such as, what 
> actually happens when attempts are made? What shows on the console?
> --
>
> 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

Re: [asterisk-users] Local calls not possible when Internet connection down

2023-11-06 Thread Joshua C. Colp
On Mon, Nov 6, 2023 at 10:06 AM Marek Greško 
wrote:

> Hello,
>
> I just realized that when my Internet connection goes down and I loose
> connectivity to VoIP SIP provider I loose ability to make local calls after
> some time. When I restart asterisk, I am able to make local calls for some
> time, but it then suddenly stops working again. I am using pjsip stack.
>
> What could be the cause of this?
>

There is insufficient information to be able to answer this. Such as, what
actually happens when attempts are made? What shows on the console?

-- 
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

[asterisk-users] Local calls not possible when Internet connection down

2023-11-06 Thread Marek Greško
Hello,

I just realized that when my Internet connection goes down and I loose 
connectivity to VoIP SIP provider I loose ability to make local calls after 
some time. When I restart asterisk, I am able to make local calls for some 
time, but it then suddenly stops working again. I am using pjsip stack.

What could be the cause of this?

Thnaks

Marek-- 
_
-- 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