Grandstream HT813 as an outbound route to fxo on a POT line

Hi folks. Newbie question here.

I’ve got a working Freepbx on a Raspberry PI I’ve been using for several years and its been working great with several SIP phones.

Comcast has an analog POTS line they have packaged with my Internet connection - the price is the same with or without the phone line - and it has free long distance, etc.

So ok, I figured I’d use it instead of just leaving it there unused. So I bought a Grandstream HT813.

Got it setup as a trunk with pjsip. Incoming calls work great. I can route it over to my Grandstream SIP phone (GXP1625) which I have defined as a separate account / extension. All good.

Its the outgoing calls through that trunk / Outbound route that fails and I get the ‘all circuits are busy now’ message.

In the log, I get the following messages (I replaced the numbers with the appropriate labels):

8187[2024-07-24 11:38:00] VERBOSE[25103][C-0000006e] app_dial.c: Called PJSIP/@
8188[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
8189[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [s@macro-dialout-trunk:28] NoOp(“PJSIP/300-000000cb”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21”) in new stack
8190[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [s@macro-dialout-trunk:29] GotoIf(“PJSIP/300-000000cb”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
8191[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
8192[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“PJSIP/300-000000cb”, “RC=21”) in new stack
8193[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“PJSIP/300-000000cb”, “21,1”) in new stack
8194[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx_builtins.c: Goto (macro-dialout-trunk,21,1)
8195[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [21@macro-dialout-trunk:1] Goto(“PJSIP/300-000000cb”, “continue,1”) in new stack
8196[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx_builtins.c: Goto (macro-dialout-trunk,continue,1)
8197[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [continue@macro-dialout-trunk:1] NoOp(“PJSIP/300-000000cb”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 21 - failing through to other trunks”) in new stack
8198[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [continue@macro-dialout-trunk:2] ExecIf(“PJSIP/300-000000cb”, “1?Set(CALLERID(number)=300)”) in new stack
8199[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [@from-internal:13] Macro(“PJSIP/300-000000cb”, “outisbusy,”) in new stack
8200[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [s@macro-outisbusy:1] Progress(“PJSIP/300-000000cb”, “”) in new stack
8201[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [s@macro-outisbusy:2] GotoIf(“PJSIP/300-000000cb”, “0?emergency,1”) in new stack
8202[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [s@macro-outisbusy:3] GotoIf(“PJSIP/300-000000cb”, “0?intracompany,1”) in new stack
8203[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] pbx.c: Executing [s@macro-outisbusy:4] Playback(“PJSIP/300-000000cb”, “all-circuits-busy-now&please-try-call-later, noanswer”) in new stack
8204[2024-07-24 11:38:01] VERBOSE[25103][C-0000006e] file.c: <PJSIP/300-000000cb> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
8205[2024-07-24 11:38:02] VERBOSE[25103][C-0000006e] file.c: <PJSIP/300-000000cb> Playing ‘please-try-call-later.ulaw’ (language ‘en’)

Sorry if this is a newbie question. I’ve been trying to follow the other threads in the past on a similar setup, but I seem to be missing something.

any suggestions on what next to look at?

Thank you.

Oh Man, I found what I missed.
I missed changing Stage Method which needed to be changed from 2 to 1

Stage Method (1/2): 	   (Default 2 - 2 stage dialing)

Now its working!

-J

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.