This is a new installation of Asterix PBXact 16 on hardware that was running version 15 previously. The upgrade process failed so I decided to just do a fresh install. I’m using Twilio as my SIP provider. I’m able to receive calls but I’m not able to make calls. I’ve set up notifications for both my 911 and standard outbound routes but I never get any emails. I’ve set up the email in the sys admin and that tests fine in that I can send out emails fine. At one point I was able to make an outbound call after rebooting the server but a short while later, it stopped working.
Outbound route:
Name: Emergency 911
Route CID: “company name” (I’ve also tried just the phone number.)
Override Extension: Yes
Trunk Sequence: Twilio-Us1-North-America-Virgina
Twilio-US2-North-America-Oregon
Dial Patterns:
+, blank, 1911
+, blank, 1933
+1, blank, 911
+1, blank, 933
Name: TwilioSIPOutbound
Route CID: “Company”
Override Extension: No
Trunk Sequence: Twilio-Us1-North-America-Virgina
Twilio-US2-North-America-Oregon
Dial Patterns:
+, blank, 1NXXNXXXXXX
+1, blank, NXXNXXXXXX
Trunks:
Name: Twilio-US1-North-America-Virginia
Type: pjsip
Hide Caller ID: No
Outbound Caller ID: +1[number associated with trunk]
CID Options: Allow Any CID
Asterisk Trunk Dial Options: Tt
pjsip settings:
Auth: None
Reg: None
SIP Server: [company].pstn.ashburn.twilio.com
SIP Server Port: 5060
Context: from-pstn-e164-us
Transport: 0.0.0.0-udp
DTMF Mode: RFC 4733
ulaw only codec checked.
Second trunk is configured the same except the name.
Log for a 933 call:
86491 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [702[outbound #]@from-internal:7] GotoIf("PJSIP/4003-0000001d", "1?restrictedroute-b7b2d5a8d1b4d64f0e89e293d4ac08eb,[outbound #],2:outbound-allroutes,702[outbound number],2") in new stack
[...]
86521 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [[outbound #]@restrictedroute-b7b2d5a8d1b4d64f0e89e293d4ac08eb:3] ExecIf("PJSIP/4003-0000001d", "0 ?Set(CDR(accountcode)=)") in new stack
86522 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [[outbound #]@restrictedroute-b7b2d5a8d1b4d64f0e89e293d4ac08eb:4] Set("PJSIP/4003-0000001d", "_ROUTEID=4") in new stack
86523 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [[outbound #]@restrictedroute-b7b2d5a8d1b4d64f0e89e293d4ac08eb:5] Set("PJSIP/4003-0000001d", "_ROUTENAME=TwilioSIPOutbound") in new stack
86524 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [[outbound #]@restrictedroute-b7b2d5a8d1b4d64f0e89e293d4ac08eb:6] Set("PJSIP/4003-0000001d", "MOHCLASS=default") in new stack
86525 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [[outbound #]@restrictedroute-b7b2d5a8d1b4d64f0e89e293d4ac08eb:7] ExecIf("PJSIP/4003-0000001d", "0?Set(TRUNKCIDOVERRIDE="Blackstar"<+17027107756>)") in new stack
86526 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [[outbound #]@restrictedroute-b7b2d5a8d1b4d64f0e89e293d4ac08eb:8] Set("PJSIP/4003-0000001d", "_CALLERIDNAMEINTERNAL=Extension 4003") in new stack
86527 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [[outbound #]@restrictedroute-b7b2d5a8d1b4d64f0e89e293d4ac08eb:9] Set("PJSIP/4003-0000001d", "_CALLERIDNUMINTERNAL=4003") in new stack
86528 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [[outbound #]@restrictedroute-b7b2d5a8d1b4d64f0e89e293d4ac08eb:10] Set("PJSIP/4003-0000001d", "_EMAILNOTIFICATION=TRUE") in new stack
86529 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [[outbound #]@restrictedroute-b7b2d5a8d1b4d64f0e89e293d4ac08eb:11] Set("PJSIP/4003-0000001d", "_NODEST=") in new stack
86530 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [[outbound #]@restrictedroute-b7b2d5a8d1b4d64f0e89e293d4ac08eb:12] Macro("PJSIP/4003-0000001d", "dialout-trunk,1,+1[outbound #],,off") in new stack
86531 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:1] Set("PJSIP/4003-0000001d", "DIAL_TRUNK=1") in new stack
86532 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:2] UserEvent("PJSIP/4003-0000001d", "zulu-outbound-call,from:4003,to:+1[outbound #]") in new stack
86533 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:3] ExecIf("PJSIP/4003-0000001d", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
86534 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:4] ExecIf("PJSIP/4003-0000001d", "0?Set(DIAL_OPTIONS=HhTr)") in new stack
86535 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:5] ExecIf("PJSIP/4003-0000001d", "0?Set(DIAL_OPTIONS=Hhtr)") in new stack
86536 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:6] GosubIf("PJSIP/4003-0000001d", "0?sub-pincheck,s,1()") in new stack
86537 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:7] ExecIf("PJSIP/4003-0000001d", "0?Set(CALLERID(num)=4003)") in new stack
86538 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:8] GotoIf("PJSIP/4003-0000001d", "0?disabletrunk,1") in new stack
86539 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:9] Set("PJSIP/4003-0000001d", "DIAL_NUMBER=+1[outbound #]") in new stack
86540 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:10] Set("PJSIP/4003-0000001d", "DIAL_TRUNK_OPTIONS=HhTtr") in new stack
86541 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:11] Set("PJSIP/4003-0000001d", "OUTBOUND_GROUP=OUT_1") in new stack
86542 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:12] Set("PJSIP/4003-0000001d", "DIAL_TRUNK_OPTIONS=Tt") in new stack
86543 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:13] ExecIf("PJSIP/4003-0000001d", "0?Set(DIAL_TRUNK_OPTIONS=t)") in new stack
86544 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:14] GotoIf("PJSIP/4003-0000001d", "1?nomax") in new stack
86545 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx_builtins.c: Goto (macro-dialout-trunk,s,16)
86546 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:16] GotoIf("PJSIP/4003-0000001d", "0?skipoutcid") in new stack
86547 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:17] Macro("PJSIP/4003-0000001d", "outbound-callerid,1") in new stack
86548 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:1] NoOp("PJSIP/4003-0000001d", "4003") in new stack
86549 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:2] NoOp("PJSIP/4003-0000001d", "") in new stack
86550 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:3] NoOp("PJSIP/4003-0000001d", "off") in new stack
86551 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:4] ExecIf("PJSIP/4003-0000001d", "0?Set(CALLERPRES(name-pres)=)") in new stack
86552 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:5] ExecIf("PJSIP/4003-0000001d", "0?Set(CALLERPRES(num-pres)=)") in new stack
86553 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:6] Set("PJSIP/4003-0000001d", "HOTDESCKCHAN=4003-0000001d") in new stack
86554 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:7] Set("PJSIP/4003-0000001d", "HOTDESKEXTEN=4003") in new stack
86555 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:8] Set("PJSIP/4003-0000001d", "HOTDESKCALL=0") in new stack
86556 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:9] ExecIf("PJSIP/4003-0000001d", "0?Set(HOTDESKCALL=1)") in new stack
86557 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:10] ExecIf("PJSIP/4003-0000001d", "0?Set(CALLERID(name)=)") in new stack
86558 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:11] Set("PJSIP/4003-0000001d", "ALLOWTHISROUTE=NO") in new stack
86559 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:12] ExecIf("PJSIP/4003-0000001d", "0?Set(ALLOWTHISROUTE=YES)") in new stack
86560 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:13] ExecIf("PJSIP/4003-0000001d", "0?Hangup()") in new stack
86561 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:14] ExecIf("PJSIP/4003-0000001d", "0?Set(REALCALLERIDNUM=4003)") in new stack
86562 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:15] ExecIf("PJSIP/4003-0000001d", "0?Set(AMPUSER=4003)") in new stack
86563 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-outbound-callerid:16] GotoIf("PJSIP/4003-0000001d", "1?normcid") in new stack
86564 [2025-08-15 14:08:12] VERBOSE[13661][C-00000019] pbx_builtins.c: Goto (macro-outbound-callerid,s,20)
[...]
86615 [2025-08-15 14:08:13] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:40] NoOp("PJSIP/4003-0000001d", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 3") in new stack
86616 [2025-08-15 14:08:13] VERBOSE[13661][C-00000019] pbx.c: Executing [s@macro-dialout-trunk:41] GotoIf("PJSIP/4003-0000001d", "0?continue,1:s-CHANUNAVAIL,1") in new stack