Call success but can't hear person called

HI there! I have a FreePBX machine that manages 4 analog lines that are connected on a GrandStream GXW4108.

On some calls that are made going out, the following happens. We dial the number, the number rings once, then phone goes dead. It appears that sometimes the person called can hear us but we can’t hear them. below is the asterisk log files for such a call. Any troubleshooting ideas?

[2013-06-20 09:07:45] VERBOSE[1704] netsock2.c: == Using SIP RTP TOS bits 184
[2013-06-20 09:07:45] VERBOSE[1704] netsock2.c: == Using SIP RTP CoS mark 5
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:1] Macro(“SIP/101-000084e5”, “user-callerid,LIMIT,”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:1] Set(“SIP/101-000084e5”, “AMPUSER=101”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/101-000084e5”, “0?report”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/101-000084e5”, “1?Set(REALCALLERIDNUM=101)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:4] Set(“SIP/101-000084e5”, “AMPUSER=101”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:5] Set(“SIP/101-000084e5”, “AMPUSERCIDNAME=Francoise”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:6] GotoIf(“SIP/101-000084e5”, “0?report”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:7] Set(“SIP/101-000084e5”, “AMPUSERCID=101”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:8] Set(“SIP/101-000084e5”, “CALLERID(all)=“Francoise” <101>”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:9] GotoIf(“SIP/101-000084e5”, “0?limit”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:10] ExecIf(“SIP/101-000084e5”, “1?Set(GROUP(concurrency_limit)=101)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:11] ExecIf(“SIP/101-000084e5”, “0?Set(CHANNEL(language)=)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:12] GosubIf(“SIP/101-000084e5”, “7?sub-ccss,s,1(from-internal,4441024)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:1] ExecIf(“SIP/101-000084e5”, “0?Return()”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:2] Set(“SIP/101-000084e5”, “CCSS_SETUP=TRUE”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:3] GosubIf(“SIP/101-000084e5”, “0?monitor_config,1(from-internal,4441024):monitor_default,1(from-internal,4441024)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/101-000084e5”, “0?is_exten”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:2] StackPop(“SIP/101-000084e5”, “”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:3] Return(“SIP/101-000084e5”, “FALSE”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:13] GotoIf(“SIP/101-000084e5”, “1?continue”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Goto (macro-user-callerid,s,26)
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:26] Set(“SIP/101-000084e5”, “CALLERID(number)=101”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:27] Set(“SIP/101-000084e5”, “CALLERID(name)=Francoise”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:28] Set(“SIP/101-000084e5”, “CHANNEL(language)=en”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:2] Set(“SIP/101-000084e5”, “MOHCLASS=default”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:3] Set(“SIP/101-000084e5”, “_NODEST=”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:4] Gosub(“SIP/101-000084e5”, “sub-record-check,s,1(out,4441024,)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/101-000084e5”, “1?check”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Goto (sub-record-check,s,6)
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:6] Set(“SIP/101-000084e5”, “__MON_FMT=wav”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:7] GotoIf(“SIP/101-000084e5”, “1?next”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Goto (sub-record-check,s,10)
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:10] ExecIf(“SIP/101-000084e5”, “0?Return()”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:11] GotoIf(“SIP/101-000084e5”, “0?out,1”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:12] Set(“SIP/101-000084e5”, “__REC_STATUS=INITIALIZED”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:13] ExecIf(“SIP/101-000084e5”, “0?Set(__REC_POLICY_MODE=)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:14] Set(“SIP/101-000084e5”, “NOW=1371733665”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:15] Set(“SIP/101-000084e5”, “__DAY=20”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:16] Set(“SIP/101-000084e5”, “__MONTH=06”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:17] Set(“SIP/101-000084e5”, “__YEAR=2013”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:18] Set(“SIP/101-000084e5”, “__TIMESTR=20130620-090745”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:19] Set(“SIP/101-000084e5”, “__FROMEXTEN=101”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:20] Set(“SIP/101-000084e5”, “__CALLFILENAME=out-4441024-101-20130620-090745-1371733665.67549”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:21] Goto(“SIP/101-000084e5”, “out,1”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Goto (sub-record-check,out,1)
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:1] ExecIf(“SIP/101-000084e5”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:2] GosubIf(“SIP/101-000084e5”, “0?record,1(exten,4441024,101)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:3] Return(“SIP/101-000084e5”, “”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:5] Macro(“SIP/101-000084e5”, “dialout-trunk,4,4441024,”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:1] Set(“SIP/101-000084e5”, “DIAL_TRUNK=4”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:2] GosubIf(“SIP/101-000084e5”, “0?sub-pincheck,s,1()”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:3] GotoIf(“SIP/101-000084e5”, “0?disabletrunk,1”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:4] Set(“SIP/101-000084e5”, “DIAL_NUMBER=4441024”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:5] Set(“SIP/101-000084e5”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:6] Set(“SIP/101-000084e5”, “OUTBOUND_GROUP=OUT_4”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:7] GotoIf(“SIP/101-000084e5”, “1?nomax”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Goto (macro-dialout-trunk,s,9)
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:9] GotoIf(“SIP/101-000084e5”, “0?skipoutcid”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:10] Set(“SIP/101-000084e5”, “DIAL_TRUNK_OPTIONS=”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:11] Macro(“SIP/101-000084e5”, “outbound-callerid,4”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:1] ExecIf(“SIP/101-000084e5”, “0?Set(CALLERPRES()=)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:2] ExecIf(“SIP/101-000084e5”, “0?Set(REALCALLERIDNUM=101)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:3] GotoIf(“SIP/101-000084e5”, “1?normcid”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Goto (macro-outbound-callerid,s,6)
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:6] Set(“SIP/101-000084e5”, “USEROUTCID=”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:7] Set(“SIP/101-000084e5”, “EMERGENCYCID=”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:8] Set(“SIP/101-000084e5”, “TRUNKOUTCID=4940707”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:9] GotoIf(“SIP/101-000084e5”, “1?trunkcid”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Goto (macro-outbound-callerid,s,12)
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:12] ExecIf(“SIP/101-000084e5”, “1?Set(CALLERID(all)=4940707)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:13] ExecIf(“SIP/101-000084e5”, “0?Set(CALLERID(all)=)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:14] ExecIf(“SIP/101-000084e5”, “0?Set(CALLERID(all)=)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:15] ExecIf(“SIP/101-000084e5”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:12] GosubIf(“SIP/101-000084e5”, “0?sub-flp-4,s,1()”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:13] Set(“SIP/101-000084e5”, “OUTNUM=4441024”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:14] Set(“SIP/101-000084e5”, “custom=SIP/4940707”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:15] ExecIf(“SIP/101-000084e5”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:16] ExecIf(“SIP/101-000084e5”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:17] Macro(“SIP/101-000084e5”, “dialout-trunk-predial-hook,”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:1] MacroExit(“SIP/101-000084e5”, “”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:18] GotoIf(“SIP/101-000084e5”, “0?bypass,1”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:19] ExecIf(“SIP/101-000084e5”, “1?Set(CONNECTEDLINE(num,i)=4441024)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:20] ExecIf(“SIP/101-000084e5”, “1?Set(CONNECTEDLINE(name,i)=CID:4940707)”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:21] GotoIf(“SIP/101-000084e5”, “0?customtrunk”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] pbx.c: – Executing [[email protected]:22] Dial(“SIP/101-000084e5”, “SIP/4940707/4441024,300,”) in new stack
[2013-06-20 09:07:45] VERBOSE[13367] netsock2.c: == Using SIP RTP TOS bits 184
[2013-06-20 09:07:45] VERBOSE[13367] netsock2.c: == Using SIP RTP CoS mark 5
[2013-06-20 09:07:45] VERBOSE[13367] app_dial.c: – Called SIP/4940707/4441024
[2013-06-20 09:07:47] VERBOSE[13367] app_dial.c: – SIP/4940707-000084e6 is ringing
[2013-06-20 09:07:50] VERBOSE[13348] pbx.c: – Executing [[email protected]:1] Macro(“SIP/182-000084e3”, “hangupcall,”) in new stack
[2013-06-20 09:07:50] VERBOSE[13348] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/182-000084e3”, “1?theend”) in new stack
[2013-06-20 09:07:50] VERBOSE[13348] pbx.c: – Goto (macro-hangupcall,s,3)
[2013-06-20 09:07:50] VERBOSE[13348] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/182-000084e3”, “0?Set(CDR(recordingfile)=)”) in new stack
[2013-06-20 09:07:50] VERBOSE[13348] pbx.c: – Executing [[email protected]:4] Hangup(“SIP/182-000084e3”, “”) in new stack
[2013-06-20 09:07:50] VERBOSE[13348] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/182-000084e3’ in macro ‘hangupcall’
[2013-06-20 09:07:50] VERBOSE[13348] features.c: == Spawn extension (macro-dial-one, h, 1) exited non-zero on ‘SIP/182-000084e3’
[2013-06-20 09:07:50] VERBOSE[13348] app_macro.c: == Spawn extension (macro-dial-one, s, 42) exited non-zero on ‘SIP/182-000084e3’ in macro ‘dial-one’
[2013-06-20 09:07:50] VERBOSE[13348] app_macro.c: == Spawn extension (macro-exten-vm, s, 14) exited non-zero on ‘SIP/182-000084e3’ in macro ‘exten-vm’
[2013-06-20 09:07:50] VERBOSE[13348] pbx.c: == Spawn extension (from-internal, 151, 2) exited non-zero on ‘SIP/182-000084e3’
[2013-06-20 09:07:51] VERBOSE[13367] app_dial.c: – SIP/4940707-000084e6 answered SIP/101-000084e5
[2013-06-20 09:07:56] VERBOSE[13367] pbx.c: – Executing [[email protected]:1] Macro(“SIP/101-000084e5”, “hangupcall,”) in new stack
[2013-06-20 09:07:56] VERBOSE[13367] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/101-000084e5”, “1?theend”) in new stack
[2013-06-20 09:07:56] VERBOSE[13367] pbx.c: – Goto (macro-hangupcall,s,3)
[2013-06-20 09:07:56] VERBOSE[13367] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/101-000084e5”, “0?Set(CDR(recordingfile)=)”) in new stack
[2013-06-20 09:07:56] VERBOSE[13367] pbx.c: – Executing [[email protected]:4] Hangup(“SIP/101-000084e5”, “”) in new stack
[2013-06-20 09:07:56] VERBOSE[13367] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/101-000084e5’ in macro ‘hangupcall’
[2013-06-20 09:07:56] VERBOSE[13367] features.c: == Spawn extension (macro-dialout-trunk, h, 1) exited non-zero on ‘SIP/101-000084e5’
[2013-06-20 09:07:56] VERBOSE[13367] app_macro.c: == Spawn extension (macro-dialout-trunk, s, 22) exited non-zero on ‘SIP/101-000084e5’ in macro ‘dialout-trunk’
[2013-06-20 09:07:56] VERBOSE[13367] pbx.c: == Spawn extension (from-internal, 4441024, 5) exited non-zero on ‘SIP/101-000084e5’

is your gw inside or outside the firewall

any thoughts?

everything is inside the firewall.