Extensions not registering

I have 2 PJSIP extension that will not register on the latest fully updated FreePBX distro. For several months they have been working fine and then a couple of weeks ago they stopped receiving calls. They Can make outbound calls and pickup voicemail.
Ext 7721 not working
Ext 7227 Working
Removed from Freepbx and recreated.
Setup on several different known working handsets.
I can add different extension numbers without issue.
They appear to register on the server but do not create a contact.

Logs as follows. Sorry if this is more than you need.

Phone_Server*CLI> <— Received SIP request (939 bytes) from UDP:problem_ext_ip:60864 —>
REGISTER sip:server_ip;transport=UDP SIP/2.0
Via: SIP/2.0/UDP problem_ext_ip:60864;branch=z9hG4bK-524287-1—41376b5a2961bf4e;rpo
rt
Max-Forwards: 70
Contact: sip:7721@problem_ext_ip:60864;rinstance=591c5193b8ff7f41;transport=UDP;ex
pires=0
To: sip:7721@server_ip;transport=UDP
From: sip:7721@server_ip;transport=UDP;tag=11b39403
Call-ID: kghCuTnJfgeCYiUfAJ0dSA…
CSeq: 7 REGISTER
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIB
E
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-
serviceuri
User-Agent: Zoiper r35079
Authorization: Digest username=“7721”,realm=“asterisk”,nonce=“1450430878/3b1943e
a1bf8984016e74463a1ab6e3b”,uri=“sip:server_ip;transport=UDP”,response=“d66391
c53eba5eb0680291f73b2a4d72”,cnonce=“5651f02486724efb1f0f778003076819”,nc=0000000
2,qop=auth,algorithm=md5,opaque="69e7f60a6beffae3"
Allow-Events: presence, kpml
Content-Length: 0

Phone_ServerCLI> – Attempted to remove non-existent contact ‘sip:7721@problem_ext_ip:60864;rinst
ance=591c5193b8ff7f41’ from AOR ‘7721’ by request
Phone_Server
CLI> <— Transmitting SIP response (381 bytes) to UDP:problem_ext_ip:60864 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP problem_ext_ip:60864;rport=60864;received=problem_ext_ip;branch=z9hG4bK
-524287-1—41376b5a2961bf4e
Call-ID: kghCuTnJfgeCYiUfAJ0dSA…
From: sip:7721@server_ip;tag=11b39403
To: sip:7721@server_ip;tag=z9hG4bK-524287-1—41376b5a2961bf4e
CSeq: 7 REGISTER
Date: Fri, 18 Dec 2015 09:28:22 GMT
Server: FPBX-13.0.33(13.5.0)
Content-Length: 0

Phone_Server*CLI> <— Received SIP request (650 bytes) from UDP:problem_ext_ip:60864 —>
REGISTER sip:server_ip;transport=UDP SIP/2.0
Via: SIP/2.0/UDP problem_ext_ip:60864;branch=z9hG4bK-524287-1—896440f6eff55b7a;rpo
rt
Max-Forwards: 70
Contact: sip:7721@problem_ext_ip:60864;rinstance=5713aac4eae93f21;transport=UDP
To: sip:7721@server_ip;transport=UDP
From: sip:7721@server_ip;transport=UDP;tag=62889c5e
Call-ID: J1X3BpmvXqpFtHpj0zegFg…
CSeq: 1 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIB
E
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-
serviceuri
User-Agent: Zoiper r35079
Allow-Events: presence, kpml
Content-Length: 0

Phone_Server*CLI> <— Transmitting SIP response (501 bytes) to UDP:problem_ext_ip:60864 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP problem_ext_ip:60864;rport=60864;received=problem_ext_ip;branch=z9hG4bK
-524287-1—896440f6eff55b7a
Call-ID: J1X3BpmvXqpFtHpj0zegFg…
From: sip:7721@server_ip;tag=62889c5e
To: sip:7721@server_ip;tag=z9hG4bK-524287-1—896440f6eff55b7a
CSeq: 1 REGISTER
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1450430904/7586067da9d86efb1f7
e04ff9a83e61a”,opaque=“513e93286913aa51”,algorithm=md5,qop="auth"
Server: FPBX-13.0.33(13.5.0)
Content-Length: 0

Phone_Server*CLI> <— Received SIP request (942 bytes) from UDP:problem_ext_ip:60864 —>
REGISTER sip:server_ip;transport=UDP SIP/2.0
Via: SIP/2.0/UDP problem_ext_ip:60864;branch=z9hG4bK-524287-1—b77c3940687c5f13;rpo
rt
Max-Forwards: 70
Contact: sip:7721@problem_ext_ip:60864;rinstance=5713aac4eae93f21;transport=UDP
To: sip:7721@server_ip;transport=UDP
From: sip:7721@server_ip;transport=UDP;tag=62889c5e
Call-ID: J1X3BpmvXqpFtHpj0zegFg…
CSeq: 2 REGISTER
Expires: 60
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIB
E
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-
serviceuri
User-Agent: Zoiper r35079
Authorization: Digest username=“7721”,realm=“asterisk”,nonce=“1450430904/7586067
da9d86efb1f7e04ff9a83e61a”,uri=“sip:server_ip;transport=UDP”,response=“869134
0a51e00ce2a9b24e61ef16217d”,cnonce=“16dc3e888fb887aa2ae2e108f7b30c74”,nc=0000000
1,qop=auth,algorithm=md5,opaque="513e93286913aa51"
Allow-Events: presence, kpml
Content-Length: 0

Phone_ServerCLI> Contact 7721/sip:7721@problem_ext_ip:60864;rinstance=5713aac4eae93f21 has been crea
ted
Phone_Server
CLI> – Added contact ‘sip:7721@problem_ext_ip:60864;rinstance=5713aac4eae93f21’ to A
OR ‘7721’ with expiration of 60 seconds
Phone_Server*CLI> <— Transmitting SIP request (524 bytes) to UDP:problem_ext_ip:60864 —>
OPTIONS sip:7721@problem_ext_ip:60864;rinstance=5713aac4eae93f21 SIP/2.0
Via: SIP/2.0/UDP server_ip:5060;rport;branch=z9hG4bKPjHWpvMNGKq0deHjHIjBk48Is
dYpKSvjpq
From: sip:84ddace9-442e-44a0-b1e8-4af7f08779bb@server_ip;tag=XPUU1jXHtWzXdH
hiQWNjc99qkvFcX4Fg
To: sip:7721@problem_ext_ip;rinstance=5713aac4eae93f21
Contact: sip:84ddace9-442e-44a0-b1e8-4af7f08779bb@server_ip:5060
Call-ID: EzxL2nX07SerOPEp3kuR68NG-CVs6s.o
CSeq: 16851 OPTIONS
Max-Forwards: 70
User-Agent: FPBX-13.0.33(13.5.0)
Content-Length: 0

Phone_Server*CLI> <— Transmitting SIP response (394 bytes) to UDP:problem_ext_ip:60864 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP problem_ext_ip:60864;rport=60864;received=problem_ext_ip;branch=z9hG4bK
-524287-1—b77c3940687c5f13
Call-ID: J1X3BpmvXqpFtHpj0zegFg…
From: sip:7721@server_ip;tag=62889c5e
To: sip:7721@server_ip;tag=z9hG4bK-524287-1—b77c3940687c5f13
CSeq: 2 REGISTER
Date: Fri, 18 Dec 2015 09:28:24 GMT
Expires: 60
Server: FPBX-13.0.33(13.5.0)
Content-Length: 0

Phone_Server*CLI> <— Received SIP response (692 bytes) from UDP:problem_ext_ip:60864 —>
SIP/2.0 200 OK
Via: SIP/2.0/UDP server_ip:5060;rport=5060;branch=z9hG4bKPjHWpvMNGKq0deHjHIjB
k48IsdYpKSvjpq
Contact: sip:problem_ext_ip:60864
To: sip:7721@problem_ext_ip;rinstance=5713aac4eae93f21;tag=6f446b06
From: sip:84ddace9-442e-44a0-b1e8-4af7f08779bb@server_ip;tag=XPUU1jXHtWzXdH
hiQWNjc99qkvFcX4Fg
Call-ID: EzxL2nX07SerOPEp3kuR68NG-CVs6s.o
CSeq: 16851 OPTIONS
Accept: application/sdp, application/sdp
Accept-Language: en
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIB
E
Supported: replaces, norefersub, extended-refer, timer, outbound, path, X-cisco-
serviceuri
User-Agent: Zoiper r35079
Allow-Events: presence, kpml
Content-Length: 0

Phone_Server*CLI> Contact 7721/sip:7721@problem_ext_ip:60864;rinstance=5713aac4eae93f21 is now Reacha
ble. RTT: 45.461 msec

Phone_Server*CLI> <— Received SIP request (1230 bytes) from UDP:working_ext_ip:2048 —>
INVITE sip:7721@server_ip SIP/2.0
Via: SIP/2.0/UDP working_ext_ip:2048;branch=z9hG4bK-crz9j1gbo537;rport
From: “Mark Davies” sip:7227@server_ip;tag=bolkcwq1sh
To: sip:7721@server_ip
Call-ID: 3c2b9fbd8a41-hzxsvrl64pz9
CSeq: 1 INVITE
Max-Forwards: 70
Contact: sip:7227@working_ext_ip:2048;reg-id=1
X-Serialnumber: 000413244DCC
P-Key-Flags: keys="3"
User-Agent: snom320/8.4.35
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSA
GE, INFO, UPDATE
Allow-Events: talk, hold, refer, call-info
Supported: timer, 100rel, replaces, from-change
Call-Info: sip:server_ip;appearance-index=1
Session-Expires: 3600;refresher=uas
Min-SE: 90
Content-Type: application/sdp
Content-Length: 469

Phone_Server*CLI> <— Transmitting SIP response (484 bytes) to UDP:working_ext_ip:2048 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP working_ext_ip:2048;rport=2048;received=working_ext_ip;branch=z9hG4bK-c
rz9j1gbo537
Call-ID: 3c2b9fbd8a41-hzxsvrl64pz9
From: “Mark Davies” sip:7227@server_ip;tag=bolkcwq1sh
To: sip:7721@server_ip;tag=z9hG4bK-crz9j1gbo537
CSeq: 1 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1450430909/0a8f19faaac1c541237
92372c33c0ab7”,opaque=“5abced51019349de”,algorithm=md5,qop="auth"
Server: FPBX-13.0.33(13.5.0)
Content-Length: 0

Phone_Server*CLI> <— Received SIP request (351 bytes) from UDP:working_ext_ip:2048 —>
ACK sip:7721@server_ip SIP/2.0
Via: SIP/2.0/UDP working_ext_ip:2048;branch=z9hG4bK-crz9j1gbo537;rport
From: “Mark Davies” sip:7227@server_ip;tag=bolkcwq1sh
To: sip:7721@server_ip;tag=z9hG4bK-crz9j1gbo537
Call-ID: 3c2b9fbd8a41-hzxsvrl64pz9
CSeq: 1 ACK
Max-Forwards: 70
Contact: sip:7227@working_ext_ip:2048;reg-id=1
Content-Length: 0

Phone_Server*CLI> <— Received SIP request (1489 bytes) from UDP:working_ext_ip:2048 —>
INVITE sip:7721@server_ip SIP/2.0
Via: SIP/2.0/UDP working_ext_ip:2048;branch=z9hG4bK-t2t61pmukqvc;rport
From: “Mark Davies” sip:7227@server_ip;tag=bolkcwq1sh
To: sip:7721@server_ip
Call-ID: 3c2b9fbd8a41-hzxsvrl64pz9
CSeq: 2 INVITE
Max-Forwards: 70
Contact: sip:7227@working_ext_ip:2048;reg-id=1
X-Serialnumber: 000413244DCC
P-Key-Flags: keys="3"
User-Agent: snom320/8.4.35
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSA
GE, INFO, UPDATE
Allow-Events: talk, hold, refer, call-info
Supported: timer, 100rel, replaces, from-change
Call-Info: sip:server_ip;appearance-index=1
Session-Expires: 3600;refresher=uas
Min-SE: 90
Authorization: Digest username=“7227”,realm=“asterisk”,nonce=“1450430909/0a8f19f
aaac1c54123792372c33c0ab7”,uri=“sip:7721@server_ip”,qop=auth,nc=00000001,cnon
ce=“4edf80d6”,response=“9b4dc7396fde95ab97d56cea1233deec”,opaque=“5abced51019349
de”,algorithm=MD5
Content-Type: application/sdp
Content-Length: 469

v=0
o=root 1267623304 1267623304 IN IP4 working_ext_ip
s=call
c=IN IP4 working_ext_ip
t=0 0
m=audio 59556 RTP/AVP 8 0 9 2 3 18 4 101
a=crypto:1 AES_CM_128_HMAC_SHA1_32 inline:y/SA6wzitT4DQqvp6dy2izg+KeO/kYIP0lCfiM
TU
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:3 GSM/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:4 G723/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

Phone_Server*CLI> <— Transmitting SIP response (306 bytes) to UDP:working_ext_ip:2048 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP working_ext_ip:2048;rport=2048;received=working_ext_ip;branch=z9hG4bK-t
2t61pmukqvc
Call-ID: 3c2b9fbd8a41-hzxsvrl64pz9
From: “Mark Davies” sip:7227@server_ip;tag=bolkcwq1sh
To: sip:7721@server_ip
CSeq: 2 INVITE
Server: FPBX-13.0.33(13.5.0)
Content-Length: 0

Phone_ServerCLI> – Executing [7721@from-internal:1] GotoIf(“PJSIP/7227-00000b9f”, “1?ext-loc
al,7721,1”) in new stack
Phone_Server
CLI> – Goto (ext-local,7721,1)
Phone_ServerCLI> – Executing [7721@ext-local:1] Set(“PJSIP/7227-00000b9f”, “__RINGTIMER=15”)
in new stack
Phone_Server
CLI> – Executing [7721@ext-local:2] Macro(“PJSIP/7227-00000b9f”, “exten-vm,novm,
7721,0,0,0”) in new stack
Phone_ServerCLI> – Executing [s@macro-exten-vm:1] Macro(“PJSIP/7227-00000b9f”, “user-calleri
d,”) in new stack
Phone_Server
CLI> – Executing [s@macro-user-callerid:1] Set(“PJSIP/7227-00000b9f”, “TOUCH_MON
ITOR=1450430909.7215”) in new stack
Phone_ServerCLI> – Executing [s@macro-user-callerid:2] Set(“PJSIP/7227-00000b9f”, “AMPUSER=7
227”) in new stack
Phone_Server
CLI> – Executing [s@macro-user-callerid:3] GotoIf(“PJSIP/7227-00000b9f”, “0?repo
rt”) in new stack
Phone_ServerCLI> – Executing [s@macro-user-callerid:4] ExecIf(“PJSIP/7227-00000b9f”, “1?Set(
REALCALLERIDNUM=7227)”) in new stack
Phone_Server
CLI> – Executing [s@macro-user-callerid:5] Set(“PJSIP/7227-00000b9f”, “AMPUSER=7
227”) in new stack
Phone_ServerCLI> – Executing [s@macro-user-callerid:6] GotoIf(“PJSIP/7227-00000b9f”, “0?limi
t”) in new stack
Phone_Server
CLI> – Executing [s@macro-user-callerid:7] Set(“PJSIP/7227-00000b9f”, “AMPUSERCI
DNAME=Mark Davies”) in new stack
Phone_ServerCLI> – Executing [s@macro-user-callerid:8] GotoIf(“PJSIP/7227-00000b9f”, “0?repo
rt”) in new stack
Phone_Server
CLI> – Executing [s@macro-user-callerid:9] Set(“PJSIP/7227-00000b9f”, “AMPUSERCI
D=7227”) in new stack
Phone_ServerCLI> – Executing [s@macro-user-callerid:10] Set(“PJSIP/7227-00000b9f”, “__DIAL_O
PTIONS=Ttr”) in new stack
Phone_Server
CLI> – Executing [s@macro-user-callerid:11] Set(“PJSIP/7227-00000b9f”, “CALLERID
(all)=“Mark Davies” <7227>”) in new stack
Phone_ServerCLI> – Executing [s@macro-user-callerid:12] GotoIf(“PJSIP/7227-00000b9f”, “0?lim
it”) in new stack
Phone_Server
CLI> – Executing [s@macro-user-callerid:13] ExecIf(“PJSIP/7227-00000b9f”, “0?Set
(GROUP(concurrency_limit)=7227)”) in new stack
Phone_ServerCLI> – Executing [s@macro-user-callerid:14] ExecIf(“PJSIP/7227-00000b9f”, “0?Set
(CHANNEL(language)=)”) in new stack
Phone_Server
CLI> – Executing [s@macro-user-callerid:15] GotoIf(“PJSIP/7227-00000b9f”, “0?con
tinue”) in new stack
Phone_ServerCLI> – Executing [s@macro-user-callerid:16] ExecIf(“PJSIP/7227-00000b9f”, “1?Set
(__CALLEE_ACCOUNCODE=)”) in new stack
Phone_Server
CLI> – Executing [s@macro-user-callerid:17] Set(“PJSIP/7227-00000b9f”, “__TTL=64
”) in new stack
Phone_ServerCLI> – Executing [s@macro-user-callerid:18] GotoIf(“PJSIP/7227-00000b9f”, “1?con
tinue”) in new stack
Phone_Server
CLI> – Goto (macro-user-callerid,s,29)
Phone_ServerCLI> – Executing [s@macro-user-callerid:29] Set(“PJSIP/7227-00000b9f”, “CALLERID
(number)=7227”) in new stack
Phone_Server
CLI> – Executing [s@macro-user-callerid:30] Set(“PJSIP/7227-00000b9f”, “CALLERID
(name)=Mark Davies”) in new stack
Phone_ServerCLI> – Executing [s@macro-user-callerid:31] Set(“PJSIP/7227-00000b9f”, “CDR(cnum
)=7227”) in new stack
Phone_Server
CLI> – Executing [s@macro-user-callerid:32] Set(“PJSIP/7227-00000b9f”, “CDR(cnam
)=Mark Davies”) in new stack
Phone_ServerCLI> – Executing [s@macro-user-callerid:33] Set(“PJSIP/7227-00000b9f”, “CHANNEL(
language)=en_GB”) in new stack
Phone_Server
CLI> – Executing [s@macro-exten-vm:2] Set(“PJSIP/7227-00000b9f”, “RingGroupMetho
d=none”) in new stack
Phone_ServerCLI> – Executing [s@macro-exten-vm:3] Set(“PJSIP/7227-00000b9f”, “__EXTTOCALL=77
21”) in new stack
Phone_Server
CLI> – Executing [s@macro-exten-vm:4] Set(“PJSIP/7227-00000b9f”, “__PICKUPMARK=7
721”) in new stack
Phone_ServerCLI> – Executing [s@macro-exten-vm:5] Set(“PJSIP/7227-00000b9f”, “RT=”) in new s
tack
Phone_Server
CLI> [2015-12-18 09:28:29] ERROR[17835][C-000006c7]: pbx.c:4405 ast_func_read: Functi
on SIP_HEADER not registered
Phone_ServerCLI> – Executing [s@macro-exten-vm:6] ExecIf(“PJSIP/7227-00000b9f”, “0?Macro(vm,
novm,DIRECTDIAL,)”) in new stack
Phone_Server
CLI> [2015-12-18 09:28:29] ERROR[17835][C-000006c7]: pbx.c:4444 ast_func_read2: Funct
ion SIP_HEADER not registered
Phone_ServerCLI> [2015-12-18 09:28:29] ERROR[17835][C-000006c7]: pbx.c:4405 ast_func_read: Functi
on SIP_HEADER not registered
Phone_Server
CLI> – Executing [s@macro-exten-vm:7] ExecIf(“PJSIP/7227-00000b9f”, “0?MacroExit
()”) in new stack
Phone_ServerCLI> [2015-12-18 09:28:29] ERROR[17835][C-000006c7]: pbx.c:4444 ast_func_read2: Funct
ion SIP_HEADER not registered
Phone_Server
CLI> – Executing [s@macro-exten-vm:8] Gosub(“PJSIP/7227-00000b9f”, “sub-record-c
heck,s,1(exten,7721,dontcare)”) in new stack
Phone_ServerCLI> – Executing [s@sub-record-check:1] GotoIf(“PJSIP/7227-00000b9f”, “0?initial
ized”) in new stack
Phone_Server
CLI> – Executing [s@sub-record-check:2] Set(“PJSIP/7227-00000b9f”, “__REC_STATUS
=INITIALIZED”) in new stack
Phone_ServerCLI> – Executing [s@sub-record-check:3] Set(“PJSIP/7227-00000b9f”, “NOW=14504309
09”) in new stack
Phone_Server
CLI> – Executing [s@sub-record-check:4] Set(“PJSIP/7227-00000b9f”, “__DAY=18”) i
n new stack
Phone_ServerCLI> – Executing [s@sub-record-check:5] Set(“PJSIP/7227-00000b9f”, “__MONTH=12”)
in new stack
Phone_Server
CLI> – Executing [s@sub-record-check:6] Set(“PJSIP/7227-00000b9f”, “__YEAR=2015”
) in new stack
Phone_ServerCLI> – Executing [s@sub-record-check:7] Set(“PJSIP/7227-00000b9f”, “__TIMESTR=20
151218-092829”) in new stack
Phone_Server
CLI> – Executing [s@sub-record-check:8] Set(“PJSIP/7227-00000b9f”, “_FROMEXTEN=
7227") in new stack
Phone_ServerCLI> – Executing [s@sub-record-check:9] Set(“PJSIP/7227-00000b9f”, “__MON_FMT=wa
v”) in new stack
Phone_Server
CLI> – Executing [s@sub-record-check:10] NoOp(“PJSIP/7227-00000b9f”, “Recordings
initialized”) in new stack
Phone_ServerCLI> – Executing [s@sub-record-check:11] ExecIf(“PJSIP/7227-00000b9f”, “0?Set(AR
G3=dontcare)”) in new stack
Phone_Server
CLI> – Executing [s@sub-record-check:12] Set(“PJSIP/7227-00000b9f”, "REC_POLICY

MODE_SAVE=”) in new stack
Phone_ServerCLI> – Executing [s@sub-record-check:13] ExecIf(“PJSIP/7227-00000b9f”, “0?Set(RE
C_STATUS=NO)”) in new stack
Phone_Server
CLI> – Executing [s@sub-record-check:14] GotoIf(“PJSIP/7227-00000b9f”, “5?checka
ction”) in new stack
Phone_ServerCLI> – Goto (sub-record-check,s,17)
Phone_Server
CLI> – Executing [s@sub-record-check:17] GotoIf(“PJSIP/7227-00000b9f”, “1?sub-re
cord-check,exten,1”) in new stack
Phone_ServerCLI> – Goto (sub-record-check,exten,1)
Phone_Server
CLI> – Executing [exten@sub-record-check:1] NoOp(“PJSIP/7227-00000b9f”, “Exten R
ecording Check between 7227 and 7721”) in new stack
Phone_ServerCLI> – Executing [exten@sub-record-check:2] Set(“PJSIP/7227-00000b9f”, “CALLTYPE
=internal”) in new stack
Phone_Server
CLI> – Executing [exten@sub-record-check:3] ExecIf(“PJSIP/7227-00000b9f”, “0?Set
(CALLTYPE=)”) in new stack
Phone_ServerCLI> – Executing [exten@sub-record-check:4] Set(“PJSIP/7227-00000b9f”, “CALLEE=d
ontcare”) in new stack
Phone_Server
CLI> – Executing [exten@sub-record-check:5] ExecIf(“PJSIP/7227-00000b9f”, “0?Set
(CALLEE=dontcare)”) in new stack
Phone_ServerCLI> – Executing [exten@sub-record-check:6] GotoIf(“PJSIP/7227-00000b9f”, “0?cal
lee”) in new stack
Phone_Server
CLI> – Executing [exten@sub-record-check:7] GotoIf(“PJSIP/7227-00000b9f”, “1?cal
ler”) in new stack
Phone_ServerCLI> – Goto (sub-record-check,exten,13)
Phone_Server
CLI> – Executing [exten@sub-record-check:13] Set(“PJSIP/7227-00000b9f”, “RECMODE
=dontcare”) in new stack
Phone_ServerCLI> – Executing [exten@sub-record-check:14] ExecIf(“PJSIP/7227-00000b9f”, “0?Se
t(RECMODE=dontcare)”) in new stack
Phone_Server
CLI> – Executing [exten@sub-record-check:15] ExecIf(“PJSIP/7227-00000b9f”, “1?Se
t(RECMODE=dontcare)”) in new stack
Phone_ServerCLI> – Executing [exten@sub-record-check:16] Gosub(“PJSIP/7227-00000b9f”, “recor
dcheck,1(dontcare,internal,7721)”) in new stack
Phone_Server
CLI> – Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/7227-00000b9f”, “S
tarting recording check against dontcare”) in new stack
Phone_ServerCLI> – Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/7227-00000b9f”, “d
ontcare”) in new stack
Phone_Server
CLI> – Goto (sub-record-check,recordcheck,3)
Phone_ServerCLI> – Executing [recordcheck@sub-record-check:3] Return(“PJSIP/7227-00000b9f”,
"") in new stack
Phone_Server
CLI> – Executing [exten@sub-record-check:17] Return(“PJSIP/7227-00000b9f”, “”) i
n new stack
Phone_ServerCLI> – Executing [s@macro-exten-vm:9] GotoIf(“PJSIP/7227-00000b9f”, “1?macrodial
”) in new stack
Phone_Server
CLI> – Goto (macro-exten-vm,s,15)
Phone_ServerCLI> – Executing [s@macro-exten-vm:15] GosubIf(“PJSIP/7227-00000b9f”, “0?clrhead
er,1()”) in new stack
Phone_Server
CLI> – Executing [s@macro-exten-vm:16] Macro(“PJSIP/7227-00000b9f”, “dial-one,T
tr,7721”) in new stack
Phone_ServerCLI> – Executing [s@macro-dial-one:1] Set(“PJSIP/7227-00000b9f”, “DEXTEN=7721”)
in new stack
Phone_Server
CLI> – Executing [s@macro-dial-one:2] Set(“PJSIP/7227-00000b9f”, “DIALSTATUS_CW=
”) in new stack
Phone_ServerCLI> – Executing [s@macro-dial-one:3] GosubIf(“PJSIP/7227-00000b9f”, “0?screen,1
()”) in new stack
Phone_Server
CLI> – Executing [s@macro-dial-one:4] GosubIf(“PJSIP/7227-00000b9f”, “0?cf,1()”)
in new stack
Phone_ServerCLI> – Executing [s@macro-dial-one:5] GotoIf(“PJSIP/7227-00000b9f”, “1?skip1”) i
n new stack
Phone_Server
CLI> – Goto (macro-dial-one,s,8)
Phone_ServerCLI> – Executing [s@macro-dial-one:8] GotoIf(“PJSIP/7227-00000b9f”, “0?nodial”)
in new stack
Phone_Server
CLI> – Executing [s@macro-dial-one:9] GotoIf(“PJSIP/7227-00000b9f”, “0?continue”
) in new stack
Phone_ServerCLI> – Executing [s@macro-dial-one:10] Set(“PJSIP/7227-00000b9f”, “EXTHASCW=ENAB
LED”) in new stack
Phone_Server
CLI> – Executing [s@macro-dial-one:11] GotoIf(“PJSIP/7227-00000b9f”, “0?next1:cw
inusebusy”) in new stack
Phone_ServerCLI> – Goto (macro-dial-one,s,23)
Phone_Server
CLI> – Executing [s@macro-dial-one:23] GotoIf(“PJSIP/7227-00000b9f”, “0?next3:co
ntinue”) in new stack
Phone_ServerCLI> – Goto (macro-dial-one,s,25)
Phone_Server
CLI> – Executing [s@macro-dial-one:25] GotoIf(“PJSIP/7227-00000b9f”, “0?nodial”)
in new stack
Phone_ServerCLI> – Executing [s@macro-dial-one:26] GosubIf(“PJSIP/7227-00000b9f”, “1?dstring
,1():dlocal,1()”) in new stack
Phone_Server
CLI> – Executing [dstring@macro-dial-one:1] Set(“PJSIP/7227-00000b9f”, “DSTRING=
”) in new stack
Phone_ServerCLI> – Executing [dstring@macro-dial-one:2] Set(“PJSIP/7227-00000b9f”, “DEVICES=
7721”) in new stack
Phone_Server
CLI> – Executing [dstring@macro-dial-one:3] ExecIf(“PJSIP/7227-00000b9f”, “0?Ret
urn()”) in new stack
Phone_ServerCLI> – Executing [dstring@macro-dial-one:4] ExecIf(“PJSIP/7227-00000b9f”, “0?Set
(DEVICES=721)”) in new stack
Phone_Server
CLI> – Executing [dstring@macro-dial-one:5] Set(“PJSIP/7227-00000b9f”, “LOOPCNT=
1”) in new stack
Phone_ServerCLI> – Executing [dstring@macro-dial-one:6] Set(“PJSIP/7227-00000b9f”, “ITER=1”)
in new stack
Phone_Server
CLI> – Executing [dstring@macro-dial-one:7] Set(“PJSIP/7227-00000b9f”, “THISDIAL
=PJSIP/7721”) in new stack
Phone_ServerCLI> – Executing [dstring@macro-dial-one:8] GosubIf(“PJSIP/7227-00000b9f”, “1?za
p2dahdi,1()”) in new stack
Phone_Server
CLI> – Executing [zap2dahdi@macro-dial-one:1] ExecIf(“PJSIP/7227-00000b9f”, “0?R
eturn()”) in new stack
Phone_ServerCLI> – Executing [zap2dahdi@macro-dial-one:2] Set(“PJSIP/7227-00000b9f”, “NEWDIA
L=”) in new stack
Phone_Server
CLI> – Executing [zap2dahdi@macro-dial-one:3] Set(“PJSIP/7227-00000b9f”, “LOOPCN
T2=1”) in new stack
Phone_ServerCLI> – Executing [zap2dahdi@macro-dial-one:4] Set(“PJSIP/7227-00000b9f”, “ITER2=
1”) in new stack
Phone_Server
CLI> – Executing [zap2dahdi@macro-dial-one:5] Set(“PJSIP/7227-00000b9f”, “THISPA
RT2=PJSIP/7721”) in new stack
Phone_ServerCLI> – Executing [zap2dahdi@macro-dial-one:6] ExecIf(“PJSIP/7227-00000b9f”, “0?S
et(THISPART2=DAHDIIP/7721)”) in new stack
Phone_Server
CLI> – Executing [zap2dahdi@macro-dial-one:7] Set(“PJSIP/7227-00000b9f”, “NEWDIA
L=PJSIP/7721&”) in new stack
Phone_ServerCLI> – Executing [zap2dahdi@macro-dial-one:8] Set(“PJSIP/7227-00000b9f”, “ITER2=
2”) in new stack
Phone_Server
CLI> – Executing [zap2dahdi@macro-dial-one:9] GotoIf(“PJSIP/7227-00000b9f”, “0?b
egin2”) in new stack
Phone_ServerCLI> – Executing [zap2dahdi@macro-dial-one:10] Set(“PJSIP/7227-00000b9f”, “THISD
IAL=PJSIP/7721”) in new stack
Phone_Server
CLI> – Executing [zap2dahdi@macro-dial-one:11] Return(“PJSIP/7227-00000b9f”, “”)
in new stack
Phone_ServerCLI> – Executing [dstring@macro-dial-one:9] GotoIf(“PJSIP/7227-00000b9f”, “0?doc
heck”) in new stack
Phone_Server
CLI> – Executing [dstring@macro-dial-one:10] NoOp(“PJSIP/7227-00000b9f”, “Debug:
Found PJSIP Destination PJSIP/7721, updating with PJSIP_DIAL_CONTACTS”) in new
stack
Phone_ServerCLI> – Executing [dstring@macro-dial-one:11] Set(“PJSIP/7227-00000b9f”, “THISDIA
L=”) in new stack
Phone_Server
CLI> – Executing [dstring@macro-dial-one:12] GotoIf(“PJSIP/7227-00000b9f”, “1?sk
ipset”) in new stack
Phone_ServerCLI> – Goto (macro-dial-one,dstring,14)
Phone_Server
CLI> – Executing [dstring@macro-dial-one:14] Set(“PJSIP/7227-00000b9f”, “ITER=2”
) in new stack
Phone_ServerCLI> – Executing [dstring@macro-dial-one:15] GotoIf(“PJSIP/7227-00000b9f”, “0?be
gin”) in new stack
Phone_Server
CLI> – Executing [dstring@macro-dial-one:16] ExecIf(“PJSIP/7227-00000b9f”, “1?Re
turn()”) in new stack
Phone_ServerCLI> – Executing [s@macro-dial-one:27] GotoIf(“PJSIP/7227-00000b9f”, “1?nodial”)
in new stack
Phone_Server
CLI> – Goto (macro-dial-one,s,48)
Phone_ServerCLI> – Executing [s@macro-dial-one:48] ExecIf(“PJSIP/7227-00000b9f”, “1?Set(DIAL
STATUS=NOANSWER)”) in new stack
Phone_Server
CLI> – Executing [s@macro-dial-one:49] NoOp(“PJSIP/7227-00000b9f”, “Returned fro
m dial-one with nothing to call and DIALSTATUS: NOANSWER”) in new stack
Phone_ServerCLI> – Executing [s@macro-dial-one:50] MacroExit(“PJSIP/7227-00000b9f”, “”) in n
ew stack
Phone_Server
CLI> – Executing [s@macro-exten-vm:17] Set(“PJSIP/7227-00000b9f”, “SV_DIALSTATUS
=NOANSWER”) in new stack
Phone_ServerCLI> – Executing [s@macro-exten-vm:18] GosubIf(“PJSIP/7227-00000b9f”, “0?docfu,1
()”) in new stack
Phone_Server
CLI> – Executing [s@macro-exten-vm:19] GosubIf(“PJSIP/7227-00000b9f”, “0?docfb,1
()”) in new stack
Phone_ServerCLI> – Executing [s@macro-exten-vm:20] Set(“PJSIP/7227-00000b9f”, “DIALSTATUS=NO
ANSWER”) in new stack
Phone_Server
CLI> – Executing [s@macro-exten-vm:21] ExecIf(“PJSIP/7227-00000b9f”, “0?MacroExi
t()”) in new stack
Phone_ServerCLI> – Executing [s@macro-exten-vm:22] GotoIf(“PJSIP/7227-00000b9f”, “1?s-NOANSW
ER,1”) in new stack
Phone_Server
CLI> – Goto (macro-exten-vm,s-NOANSWER,1)
Phone_ServerCLI> – Executing [s-NOANSWER@macro-exten-vm:1] GotoIf(“PJSIP/7227-00000b9f”, “0?
exit,1”) in new stack
Phone_Server
CLI> – Executing [s-NOANSWER@macro-exten-vm:2] PlayTones(“PJSIP/7227-00000b9f”,
“congestion”) in new stack
Phone_ServerCLI> – Executing [s-NOANSWER@macro-exten-vm:3] Congestion(“PJSIP/7227-00000b9f”,
“10”) in new stack
Phone_Server
CLI> <— Transmitting SIP response (379 bytes) to UDP:working_ext_ip:2048 —>
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP working_ext_ip:2048;rport=2048;received=working_ext_ip;branch=z9hG4bK-t
2t61pmukqvc
Call-ID: 3c2b9fbd8a41-hzxsvrl64pz9
From: “Mark Davies” sip:7227@server_ip;tag=bolkcwq1sh
To: sip:7721@server_ip;tag=8DvdRWwF52SONRGOBjpg60vLW2Ctm0rT
CSeq: 2 INVITE
Server: FPBX-13.0.33(13.5.0)
Reason: Q.850;cause=0
Content-Length: 0

Phone_ServerCLI> == Spawn extension (macro-exten-vm, s-NOANSWER, 3) exited non-zero on ‘PJSIP/7
227-00000b9f’ in macro 'exten-vm’
Phone_Server
CLI> == Spawn extension (ext-local, 7721, 2) exited non-zero on 'PJSIP/7227-00000b9
f’
Phone_ServerCLI> – Executing [h@ext-local:1] Macro(“PJSIP/7227-00000b9f”, “hangupcall,”) in
new stack
Phone_Server
CLI> – Executing [s@macro-hangupcall:1] GotoIf(“PJSIP/7227-00000b9f”, “1?theend”
) in new stack
Phone_ServerCLI> – Goto (macro-hangupcall,s,3)
Phone_Server
CLI> – Executing [s@macro-hangupcall:3] ExecIf(“PJSIP/7227-00000b9f”, “0?Set(CDR
(recordingfile)=)”) in new stack
Phone_ServerCLI> – Executing [s@macro-hangupcall:4] Hangup(“PJSIP/7227-00000b9f”, “”) in new
stack
Phone_Server
CLI> == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘PJSIP/7227-000
00b9f’ in macro 'hangupcall’
Phone_Server*CLI> <— Received SIP request (363 bytes) from UDP:working_ext_ip:2048 —>
ACK sip:7721@server_ip SIP/2.0
Via: SIP/2.0/UDP working_ext_ip:2048;branch=z9hG4bK-t2t61pmukqvc;rport
From: “Mark Davies” sip:7227@server_ip;tag=bolkcwq1sh
To: sip:7721@server_ip;tag=8DvdRWwF52SONRGOBjpg60vLW2Ctm0rT
Call-ID: 3c2b9fbd8a41-hzxsvrl64pz9
CSeq: 2 ACK
Max-Forwards: 70
Contact: sip:7227@working_ext_ip:2048;reg-id=1
Content-Length: 0

Phone_Server*CLI> == Spawn extension (ext-local, h, 1) exited non-zero on ‘PJSIP/7227-00000b9f’

Thanks in advance
Mark