I have this situation where the whole call goes well, except the BYE.
Freeswitch receives the BYE, but doesn't relay it, and I can't figure out why, here's a trace:
recv 489 bytes from udp/[196.207.243.108]:5080 at 07:22:05.626643:
------------------------------------------------------------------------
BYE sip:gw+gw_108@196.207.243.245:5080;transport=udp;gw=gw_108 SIP/2.0
Via: SIP/2.0/UDP 196.207.243.108:5080;branch=z9hG4bK2e5f9502;rport
Max-Forwards: 70
Call-ID: 16336d2d-1d02-1235-8693-0026b955dc81
CSeq: 102 BYE
User-Agent: Asterisk PBX 11.23.0
X-Asterisk-HangupCause: Unallocated (unassigned) number
X-Asterisk-HangupCauseCode: 1
Content-Length: 0
------------------------------------------------------------------------
tport.c:3023 tport_deliver() tport_deliver(0x7f5a04004540): msg 0x7f5a04007eb0 (489 bytes) from udp/
196.207.243.108:5080/sip next=(nil)
nta.c:2880 agent_recv_request() nta: received BYE sip:gw+gw_108@196.207.243.245:5080;transport=udp;gw=gw_108 SIP/2.0 (CSeq 102)
nta.c:3060 agent_recv_request() nta: BYE (102) going to existing leg
nua_server.c:102 nua_stack_process_request() nua: nua_stack_process_request: entering
nua_stack.c:359 nua_application_event() nua: nua_application_event: entering
nua.c:366 nua_handle_magic() nua: nua_handle_magic: entering
nua.c:879 nua_respond() nua: nua_respond: entering
nua_stack.c:529 nua_signal() nua(0x7f599c000d40): sent signal r_respond
nua.c:342 nua_handle_bind() nua: nua_handle_bind: entering
nua.c:921 nua_handle_destroy() nua: nua_handle_destroy: entering
nua_stack.c:529 nua_signal() nua(0x7f599c000d40): sent signal r_destroy
nua_params.c:480 nua_stack_set_params() nua: nua_stack_set_params: entering
soa.c:403 soa_set_params() soa_set_params(static::0x7f5a04014610, ...) called
tport.c:4680 tport_by_addrinfo() tport_by_addrinfo(0x7f5a04004540): not found by name UDP/
196.207.243.108:5080