Pressing Doorphone 1 will hit the PBX but I get an instant hang up on the indoor station PBX doesnt have a chance to ring,
Sometimes i'll hear a system message try to play for a split second. I think its the Goodbye message looking at the logs.
Connected to Asterisk 21.6.0 currently running on FreePBX (pid = 1932968)
-- Executing [10000000005@default:1] Playback("PJSIP/mytrunk-0000000d", "vm-goodbye") in new stack
-- <PJSIP/mytrunk-0000000d> Playing 'vm-goodbye.ulaw' (language 'en')
[2024-12-14 02:13:38] WARNING[2144085]: res_pjsip_pubsub.c:803 subscription_get_handler_from_rdata: No registered subscribe handler for event as-feature-event from 402
[2024-12-14 02:13:38] WARNING[2144085]: res_pjsip_pubsub.c:803 subscription_get_handler_from_rdata: No registered subscribe handler for event as-feature-event from 402
-- Executing [10000000005@default:2] NoOp("PJSIP/mytrunk-0000000d", "ERROR: FreePBX Does not use the [default] context, confguration error") in new stack
-- Executing [10000000005@default:3] Gosub("PJSIP/mytrunk-0000000d", "macro-hangupcall,s,1") in new stack
-- Executing [s@macro-hangupcall:1] Set("PJSIP/mytrunk-0000000d", "__MCVMSTATUS=") in new stack
-- Executing [s@macro-hangupcall:2] Gosub("PJSIP/mytrunk-0000000d", "app-missedcall-hangup,s,1()") in new stack
-- Executing [s@app-missedcall-hangup:1] NoOp("PJSIP/mytrunk-0000000d", "Dialed: s") in new stack
-- Executing [s@app-missedcall-hangup:2] NoOp("PJSIP/mytrunk-0000000d", "Caller: ") in new stack
-- Executing [s@app-missedcall-hangup:3] GotoIf("PJSIP/mytrunk-0000000d", "0?exit") in new stack
-- Executing [s@app-missedcall-hangup:4] Set("PJSIP/mytrunk-0000000d", "EXTENNUM=s") in new stack
-- Executing [s@app-missedcall-hangup:5] Set("PJSIP/mytrunk-0000000d", "FEXTENNUM=s") in new stack
-- Executing [s@app-missedcall-hangup:6] GotoIf("PJSIP/mytrunk-0000000d", "0?exit") in new stack
-- Executing [s@app-missedcall-hangup:7] AGI("PJSIP/mytrunk-0000000d", "agi:/127.0.0.1/missedcallnotify.php,s,,s,0,,PJSIP/mytrunk-0000000d,,,,") in new stack
-- <PJSIP/mytrunk-0000000d>AGI Script agi:/127.0.0.1/missedcallnotify.php completed, returning 0
-- Executing [s@app-missedcall-hangup:8] Return("PJSIP/mytrunk-0000000d", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("PJSIP/mytrunk-0000000d", "1?theend") in new stack
-- Goto (macro-hangupcall,s,5)
-- Executing [s@macro-hangupcall:5] ExecIf("PJSIP/mytrunk-0000000d", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:6] Hangup("PJSIP/mytrunk-0000000d", "") in new stack
== Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'PJSIP/mytrunk-0000000d'
[2024-12-14 02:13:48] WARNING[1967409]: res_pjsip_pubsub.c:803 subscription_get_handler_from_rdata: No registered subscribe handler for event as-feature-event from 402
[2024-12-14 02:13:48] WARNING[1967409]: res_pjsip_pubsub.c:803 subscription_get_handler_from_rdata: No registered subscribe handler for event as-feature-event from 402
FreePBX*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
root@FreePBX:~#
Looks like its dropping the 1 and 5 in the script
my,
pjsip_custom.conf
[mytrunk-auth]
type=auth
auth_type=userpass
password=xxxx
username=10000000005
[mytrunk-aor]
type=aor
contact=sip:192.168.1.232:5065
[mytrunk-registration]
type=registration
outbound_auth=mytrunk-auth
server_uri=sip:192.168.1.232:5065
client_uri=sip:
10000000005@192.168.1.232:5065
retry_interval=10
contact_user=10000000005
expiration=600
[mytrunk]
type=endpoint
context=default
disallow=all
allow=ulaw,alaw
allow=h264,vp8
outbound_auth=mytrunk-auth
aors=mytrunk-aor
rewrite_contact=yes
from_domain=192.168.1.232
[mytrunk-identify]
type=identify
endpoint=mytrunk
match=192.168.1.232