Stewart,
Thank you for those suggestions. I had used Chan_SIP based someone in a forum post said “Always use Chan_SIP to create extensions” and because the original pjsip extensions I created didn’t work.
I did not do anything to bind to port 5060; it seems to have defaulted there. Is that part of the issue?
Today I tried changing all the passwords to a short password. It didn’t help. I deleted extension 204 and recreated it as pjsip. When I created it, FreePBX reported “This device uses PJSIP technology listening on Port 5061 (UDP).” I’ve tried the extension with both a long and short password. It didn’t work. Here are the logs:
2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx.c: Executing [3032048513@from-sip-external:1] NoOp(“SIP/192.168.3.108-0000002c”, “Received incoming SIP connection from unknown peer to 3032048513”) in new stack
3666[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx.c: Executing [3032048513@from-sip-external:2] Set(“SIP/192.168.3.108-0000002c”, “DID=3032048513”) in new stack
3667[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx.c: Executing [3032048513@from-sip-external:3] Goto(“SIP/192.168.3.108-0000002c”, “s,1”) in new stack
3668[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx_builtins.c: Goto (from-sip-external,s,1)
3669[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx.c: Executing [s@from-sip-external:1] GotoIf(“SIP/192.168.3.108-0000002c”, “1?setlanguage:checkanon”) in new stack
3670[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx_builtins.c: Goto (from-sip-external,s,2)
3671[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx.c: Executing [s@from-sip-external:2] Set(“SIP/192.168.3.108-0000002c”, “CHANNEL(language)=en”) in new stack
3672[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx.c: Executing [s@from-sip-external:3] GotoIf(“SIP/192.168.3.108-0000002c”, “1?noanonymous”) in new stack
3673[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx_builtins.c: Goto (from-sip-external,s,5)
3674[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx.c: Executing [s@from-sip-external:5] Set(“SIP/192.168.3.108-0000002c”, “TIMEOUT(absolute)=15”) in new stack
3675[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] func_timeout.c: Channel will hangup at 2023-07-20 10:02:02.543 MDT.
3676[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx.c: Executing [s@from-sip-external:6] Set(“SIP/192.168.3.108-0000002c”, “receveip=recvip”) in new stack
3677[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx.c: Executing [s@from-sip-external:7] Log(“SIP/192.168.3.108-0000002c”, "WARNING,“Rejecting unknown SIP connection from 192.168.3.16"”) in new stack
3678[2023-07-20 10:01:47] WARNING[568388][C-0000002d] Ext. s: “Rejecting unknown SIP connection from 192.168.3.16”
3679[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx.c: Executing [s@from-sip-external:8] Answer(“SIP/192.168.3.108-0000002c”, “”) in new stack
3680[2023-07-20 10:01:47] VERBOSE[568388][C-0000002d] pbx.c: Executing [s@from-sip-external:9] Wait(“SIP/192.168.3.108-0000002c”, “2”) in new stack
3681[2023-07-20 10:01:49] VERBOSE[568388][C-0000002d] pbx.c: Executing [s@from-sip-external:10] Playback(“SIP/192.168.3.108-0000002c”, “ss-noservice”) in new stack
3682[2023-07-20 10:01:49] VERBOSE[568388][C-0000002d] file.c: <SIP/192.168.3.108-0000002c> Playing ‘ss-noservice.gsm’ (language ‘en’)
3683[2023-07-20 10:01:54] VERBOSE[568388][C-0000002d] pbx.c: Executing [s@from-sip-external:11] PlayTones(“SIP/192.168.3.108-0000002c”, “congestion”) in new stack
3684[2023-07-20 10:01:54] VERBOSE[568388][C-0000002d] pbx.c: Executing [s@from-sip-external:12] Congestion(“SIP/192.168.3.108-0000002c”, “5”) in new stack
3685[2023-07-20 10:01:56] NOTICE[3366] chan_sip.c: Registration from ‘sip:[email protected]’ failed for ‘192.168.3.16:5060’ - Wrong password
3686[2023-07-20 10:01:56] VERBOSE[568388][C-0000002d] pbx.c: Spawn extension (from-sip-external, s, 12) exited non-zero on ‘SIP/192.168.3.108-0000002c’
3687[2023-07-20 10:01:56] VERBOSE[568388][C-0000002d] pbx.c: Executing [h@from-sip-external:1] Hangup(“SIP/192.168.3.108-0000002c”, “”) in new stack
3688[2023-07-20 10:01:56] VERBOSE[568388][C-0000002d] pbx.c: Spawn extension (from-sip-external, h, 1) exited non-zero on ‘SIP/192.168.3.108-0000002c’
The error message is coming from Asterisk rather than Grandstream. The precise message is “The number you have dialed is not in service. Please check the number and try again.”
Then I created an IAX extension and was able to dial using a softphone. Any idea what else I could try to get those SIP extensions to work?