Topics

Problems Connecting


 

Hello

I am setting up DVSwitch to connect to an AllStar node in my house.  I can connect to it using IAXRPT on the PC, but when I try this with DVSwitch, it goes into a loop connecting and disconnecting. 

A friend looked into this and suggested that I post the following information. Can someone help us with this?

Richard

----

Message follows:

I have an Allstar node (Raspberry Pi 4) running HamVoip. I've done an update, so it's running all of the latest patches.

When I use DVSwitch to connect to my node (519980), the following error shows up in the Asterisk CLI log level 4. Note that if I have "autoload node" set to ON, the message repeats itself over and over until there is a crash.

Running DVSwitch 1.57 (130).

          Starting Asterisk client. Please type: exit<ENTER>
           when done and you will return to the admin menu.

Asterisk 1.4.23-pre.hamvoip-V1.6.2-10 app_rpt-0.327-06/01/2020, Copyright (C) 1999 - 2020 HamVoIP.org and others.
Created by Mark Spencer <markster@...>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.23-pre.hamvoip-V1.6.2-10 app_rpt-0.327-06/01/2020 currently running on Richnode1 (pid = 2785)
Verbosity was 3 and is now 4
    -- Registered IAX2 'myphone-iaxrpt' (AUTHENTICATED) at 208.86.127.233:1025
    -- Accepting AUTHENTICATED call from 208.86.127.233:
       > requested format = unknown,
       > requested prefs = (slin|ulaw|adpcm),
       > actual format = ulaw,
       > host prefs = (ulaw),
       > priority = mine
    -- Executing [519980@phone-iaxrpt:1] Answer("IAX2/myphone-iaxrpt-314", "") in new stack
    -- Executing [519980@phone-iaxrpt:2] Playback("IAX2/myphone-iaxrpt-314", "rpt/node") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'rpt/node' (language 'en')
    -- Executing [519980@phone-iaxrpt:3] Playback("IAX2/myphone-iaxrpt-314", "digits/1") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/1' (language 'en')
    -- Executing [519980@phone-iaxrpt:4] Playback("IAX2/myphone-iaxrpt-314", "digits/9") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/9' (language 'en')
    -- Executing [519980@phone-iaxrpt:5] Playback("IAX2/myphone-iaxrpt-314", "digits/9") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/9' (language 'en')
    -- Executing [519980@phone-iaxrpt:6] Playback("IAX2/myphone-iaxrpt-314", "digits/8") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/8' (language 'en')
    -- Executing [519980@phone-iaxrpt:7] Set("IAX2/myphone-iaxrpt-314", "CALLERID(num)=0") in new stack
    -- Executing [519980@phone-iaxrpt:8] Rpt("IAX2/myphone-iaxrpt-314", "1998|P|KJ7PLR") in new stack
[Oct 21 00:46:18] WARNING[2817]: app_rpt.c:21237 rpt_exec: Cannot find specified system node 1998
  == Spawn extension (phone-iaxrpt, 519980, 8) exited non-zero on 'IAX2/myphone-iaxrpt-314'
    -- Hungup 'IAX2/myphone-iaxrpt-314'
Richnode1*CLI>


Steve N4IRS
 

Richard,
Without seeing the relevant sections of iax.conf and extensions.conf all I can say this is your clue:
[Oct 21 00:46:18] WARNING[2817]: app_rpt.c:21237 rpt_exec: Cannot find specified system node 1998


On 10/21/20 12:59 AM, RichardM wrote:
Hello

I am setting up DVSwitch to connect to an AllStar node in my house.  I can connect to it using IAXRPT on the PC, but when I try this with DVSwitch, it goes into a loop connecting and disconnecting. 

A friend looked into this and suggested that I post the following information. Can someone help us with this?

Richard

----

Message follows:

I have an Allstar node (Raspberry Pi 4) running HamVoip. I've done an update, so it's running all of the latest patches.

When I use DVSwitch to connect to my node (519980), the following error shows up in the Asterisk CLI log level 4. Note that if I have "autoload node" set to ON, the message repeats itself over and over until there is a crash.

Running DVSwitch 1.57 (130).

          Starting Asterisk client. Please type: exit<ENTER>
           when done and you will return to the admin menu.

Asterisk 1.4.23-pre.hamvoip-V1.6.2-10 app_rpt-0.327-06/01/2020, Copyright (C) 1999 - 2020 HamVoIP.org and others.
Created by Mark Spencer <markster@...>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.4.23-pre.hamvoip-V1.6.2-10 app_rpt-0.327-06/01/2020 currently running on Richnode1 (pid = 2785)
Verbosity was 3 and is now 4
    -- Registered IAX2 'myphone-iaxrpt' (AUTHENTICATED) at 208.86.127.233:1025
    -- Accepting AUTHENTICATED call from 208.86.127.233:
       > requested format = unknown,
       > requested prefs = (slin|ulaw|adpcm),
       > actual format = ulaw,
       > host prefs = (ulaw),
       > priority = mine
    -- Executing [519980@phone-iaxrpt:1] Answer("IAX2/myphone-iaxrpt-314", "") in new stack
    -- Executing [519980@phone-iaxrpt:2] Playback("IAX2/myphone-iaxrpt-314", "rpt/node") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'rpt/node' (language 'en')
    -- Executing [519980@phone-iaxrpt:3] Playback("IAX2/myphone-iaxrpt-314", "digits/1") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/1' (language 'en')
    -- Executing [519980@phone-iaxrpt:4] Playback("IAX2/myphone-iaxrpt-314", "digits/9") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/9' (language 'en')
    -- Executing [519980@phone-iaxrpt:5] Playback("IAX2/myphone-iaxrpt-314", "digits/9") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/9' (language 'en')
    -- Executing [519980@phone-iaxrpt:6] Playback("IAX2/myphone-iaxrpt-314", "digits/8") in new stack
    -- <IAX2/myphone-iaxrpt-314> Playing 'digits/8' (language 'en')
    -- Executing [519980@phone-iaxrpt:7] Set("IAX2/myphone-iaxrpt-314", "CALLERID(num)=0") in new stack
    -- Executing [519980@phone-iaxrpt:8] Rpt("IAX2/myphone-iaxrpt-314", "1998|P|KJ7PLR") in new stack
[Oct 21 00:46:18] WARNING[2817]: app_rpt.c:21237 rpt_exec: Cannot find specified system node 1998
  == Spawn extension (phone-iaxrpt, 519980, 8) exited non-zero on 'IAX2/myphone-iaxrpt-314'
    -- Hungup 'IAX2/myphone-iaxrpt-314'
Richnode1*CLI>


 

Here are the files.

Richard


Steve N4IRS
 

I need extensions.conf and iax.conf

On 10/21/2020 3:39 PM, RichardM wrote:
Here are the files.

Richard


 

BTW, the nodes we are working with are 519980 and 519981.

Richard


Steve N4IRS
 

Does that mean you are no longer having a problem?

On 10/21/2020 3:43 PM, RichardM wrote:

BTW, the nodes we are working with are 519980 and 519981.

Richard



 

We still have the same problem.

Do you have the right files now?

Richard


Steve N4IRS
 

No, I need:
Iax.conf
extensions.conf


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of RichardM <rchrdm@...>
Sent: Wednesday, October 21, 2020 4:12:30 PM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Problems Connecting
 
We still have the same problem.

Do you have the right files now?

Richard


 

Above I uploaded IAX.conf and RPT.conf.

So, that includes IAX.conf, correct?  I will get RPT.conf.

Richard


Steve N4IRS
 

Please read my replies!


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of RichardM <rchrdm@...>
Sent: Wednesday, October 21, 2020 4:28:47 PM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Problems Connecting
 
Above I uploaded IAX.conf and RPT.conf.

So, that includes IAX.conf, correct?  I will get RPT.conf.

Richard


 

Sorry, I thought I did read your replies.

You asked for IAX.conf and RPT.conf.  I uploaded IAX.conf above.  Is that one of the files you need?

Richard


Steve N4IRS
 

One last time.
iax.conf
extensions.conf

Sent by smoke signal (AT&T)


From: main@DVSwitch.groups.io <main@DVSwitch.groups.io> on behalf of RichardM <rchrdm@...>
Sent: Wednesday, October 21, 2020 4:46:19 PM
To: main@DVSwitch.groups.io <main@DVSwitch.groups.io>
Subject: Re: [DVSwitch] Problems Connecting
 

Sorry, I thought I did read your replies.

You asked for IAX.conf and RPT.conf.  I uploaded IAX.conf above.  Is that one of the files you need?

Richard


 

OK, fetching them both.

Richard


 

Here are iax.conf and extensions.conf

Thanks for your help.

Richard


Steve N4IRS
 

You need to configure your extensions.conf See page 6 of this document <https://hamvoip.org/howto/iaxrpt-config.pdf>

73, Steve N4IRS

On 10/21/20 5:17 PM, RichardM wrote:

Here are iax.conf and extensions.conf

Thanks for your help.

Richard



 

Thanks, Steve.

Richard


k7wby@...
 

If you're phone is connected to your home router's wireless then you are attempting to connect to IAX on your local network  (LAN). Assuming that you have your ports forwarded properly, IAX is listening on the wide Area network (WAN). 

Solution: Simply disconnect your phone from the local wireless network and use the cell phone network (WAN) to connect to IAX.

This situation is similar to one that Echolink users who have Echolink setup on their PC's with ports forwarded and then try to use the phone app to connect. Echolink has provisions for using a proxy server but I don't know of any proxy servers for IAX. 


Steve N4IRS
 

His problem is here:
See this log entry:
[Oct 21 00:46:18] WARNING[2817]: app_rpt.c:21237 rpt_exec: Cannot find specified system node 1998

When he connects to his node from DVSM, the section in extensions:

[phone-iaxrpt]    ;;; Stanza is the context from iax.conf
exten => 519980,1,Answer
exten => 519980,n,Playback,rpt/node
exten => 519980,n,Playback,digits/1
exten => 519980,n,Playback,digits/9
exten => 519980,n,Playback,digits/9
exten => 519980,n,Playback,digits/8
exten => 519980,n,Set(CALLERID(num)=0)
exten => 519980,n,Rpt,1998|P|${CALLERID(name)} ;;; The "CallerID" from IAXRpt

Which is HARD Coded to connect to node 1998. This is the the default HAMVIOP stanza. Rather then using a variable like oh say something like NODE" is it is here:

[globals]
NODE = 1999

[iax-client]
exten => ${NODE},1,Ringing
exten => ${NODE},n,Wait(3)
exten => ${NODE},n,Answer
exten => ${NODE},n,Set(RPT_NODENUM=${CALLERID(number)})
exten => ${NODE},n,Playback(connected)
exten => ${NODE},n,Set(CALLERID(num)=0)
exten => ${NODE},n,Rpt,${NODE}|P|${CALLERID(name)}
exten => ${NODE},n,Hangup
exten => ${NODE},n(hangit),Answer
exten => ${NODE},n(hangit),Wait(1)
exten => ${NODE},n(hangit),Hangup

This way, all you need to do is set the value NODE in the top of the file file and you are done. Yes, there are other differences but the concept is the same.
At the end of the day, the HAMVOIP document explains how to configure the node for DVSM. Now, if they would just update the doc file and method...


On 10/22/2020 11:14 AM, k7wby@... wrote:
If you're phone is connected to your home router's wireless then you are attempting to connect to IAX on your local network  (LAN). Assuming that you have your ports forwarded properly, IAX is listening on the wide Area network (WAN). 

Solution: Simply disconnect your phone from the local wireless network and use the cell phone network (WAN) to connect to IAX.

This situation is similar to one that Echolink users who have Echolink setup on their PC's with ports forwarded and then try to use the phone app to connect. Echolink has provisions for using a proxy server but I don't know of any proxy servers for IAX. 


 

Thanks, Steve.  That worked!

Richard


k7wby@...
 

My bad.. I wasn't thinking HamVoip... tried it once, went back to the real deal.