Asterisk is 1.4. It's a rebuild since the SSD croaked on the last one so it's only a couple of weeks old with a restore from a nightly backup. The provider is Brighthouse.
PEER Details:
type=peer
rfc2833compensate=yes
relaxdtmf=no
host=[hostip]
dtmfmode=inband
USER Details:
type=peer
reinvite=yes
port=5060
insecure=invite,port
host=[hostip]
context=from-trunk
canreinvite=no
No registration. There is a route set up to forward all traffic through the local IAD Gateway IP so no router in the way. Just a PoE switch connecting it all.
Here is the snippet of the Asteisk logfile.
[2013-09-16 09:27:40] DEBUG[3879] app_macro.c: Executed application: ExecIf
[2013-09-16 09:27:40] VERBOSE[3879] logger.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/1011-0000036f", "dialout
-trunk-predial-hook|") in new stack
[2013-09-16 09:27:40] VERBOSE[3879] logger.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/1011-000
0036f", "") in new stack
[2013-09-16 09:27:40] DEBUG[3879] app_macro.c: Executed application: Macro
[2013-09-16 09:27:40] VERBOSE[3879] logger.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/1011-0000036f", "0?bypa
ss|1") in new stack
[2013-09-16 09:27:40] DEBUG[3879] app_macro.c: Executed application: GotoIf
[2013-09-16 09:27:40] VERBOSE[3879] logger.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/1011-0000036f", "0?cust
omtrunk") in new stack
[2013-09-16 09:27:40] DEBUG[3879] app_macro.c: Executed application: GotoIf
[2013-09-16 09:27:40] VERBOSE[3879] logger.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/1011-0000036f", "SIP/BH-S
IP-O/5555555555|300|TwW") in new stack
[2013-09-16 09:27:40] VERBOSE[3879] logger.c: -- Called BH-SIP-O/5555555555
[2013-09-16 09:27:41] VERBOSE[3879] logger.c: -- SIP/BH-SIP-O-00000370 is ringing
[2013-09-16 09:27:41] VERBOSE[3879] logger.c: -- SIP/BH-SIP-O-00000370 is making progress passing it to SIP/1011-0000036f
[2013-09-16 09:27:48] VERBOSE[3879] logger.c: -- SIP/BH-SIP-O-00000370 answered SIP/1011-0000036f
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: -- Executing [h@macro-dialout-trunk:1] Macro("SIP/1011-0000036f", "hangupca
ll|") in new stack
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: -- Executing [s@macro-hangupcall:1] GotoIf("SIP/1011-0000036f", "1?skiprg")
in new stack
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: -- Goto (macro-hangupcall,s,4)
[2013-09-16 09:32:17] DEBUG[3879] app_macro.c: Executed application: GotoIf
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: -- Executing [s@macro-hangupcall:4] GotoIf("SIP/1011-0000036f", "1?skipblkv
m") in new stack
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: -- Goto (macro-hangupcall,s,7)
[2013-09-16 09:32:17] DEBUG[3879] app_macro.c: Executed application: GotoIf
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: -- Executing [s@macro-hangupcall:7] GotoIf("SIP/1011-0000036f", "1?theend")
in new stack
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: -- Goto (macro-hangupcall,s,9)
[2013-09-16 09:32:17] DEBUG[3879] app_macro.c: Executed application: GotoIf
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: -- Executing [s@macro-hangupcall:9] Hangup("SIP/1011-0000036f", "") in new
stack
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/1011-0000
036f' in macro 'hangupcall'
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: == Spawn h extension (macro-dialout-trunk, h, 1) exited non-zero on 'SIP/1011
-0000036f'
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/1011-
0000036f' in macro 'dialout-trunk'
[2013-09-16 09:32:17] VERBOSE[3879] logger.c: == Spawn extension (from-internal, 5555555555, 8) exited non-zero on 'SIP/101
1-0000036f'
You'll see the call lasted for about 4.5 minutes and then the system just hangs up. But it only sends the BYE to the handset and not to the trunk. I don't understand the process. Thanks.