F: continues execution after hangup if caller hangs up.
g: continues execution after hangup if called party hangs up.
exten =>1000,1,dial(PJSIP/1000 , , gF)
same => n,NoOp(${ANSWEREDTIME})
same => n,hangup()
when the called party is hanging up then the dial plan continues execution to the next line and types the duration of the call.
whereas when the caller hangs up, it is true that the dial plan continues execution but it is not typing the ANSWEREDTIME … it is always NULL.