Outbound calls are not working

I have a system running behind the asterisk I have a cucm calls in and out from cisco work. I can call from cisco to asterisk extentions and from asterisk I can call cucm extensions. I can call out from cisco but when I try to call from asterisk phone out the call does not work. I tried to call and external number from ext 6000 and below is the logs pf the error

[2019-01-25 08:13:41] WARNING[2401] chan_sip.c: Timeout on 1120593924-359603251-201250776 on non-critical invite transaction.
[2019-01-25 08:13:53] VERBOSE[2401][C-000238ce] netsock2.c: Using SIP RTP TOS bits 184
[2019-01-25 08:13:53] VERBOSE[2401][C-000238ce] netsock2.c: Using SIP RTP CoS mark 5
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:1] Macro(“SIP/6000-000001d1”, “user-callerid,LIMIT,EXTERNAL,”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:1] Set(“SIP/6000-000001d1”, “TOUCH_MONITOR=1548429233.465”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:2] Set(“SIP/6000-000001d1”, “AMPUSER=6000”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:3] GotoIf(“SIP/6000-000001d1”, “0?report”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:4] ExecIf(“SIP/6000-000001d1”, “1?Set(REALCALLERIDNUM=6000)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:5] Set(“SIP/6000-000001d1”, “AMPUSER=6000”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:6] GotoIf(“SIP/6000-000001d1”, “0?limit”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:7] Set(“SIP/6000-000001d1”, “AMPUSERCIDNAME=Maria Pena”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:8] GotoIf(“SIP/6000-000001d1”, “0?report”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:9] Set(“SIP/6000-000001d1”, “AMPUSERCID=6000”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:10] Set(“SIP/6000-000001d1”, “__DIAL_OPTIONS=Ttr”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:11] Set(“SIP/6000-000001d1”, “CALLERID(all)=“Maria Pena” <6000>”) in new stack
[2019-01-25 08:13:53] WARNING[19924][C-000238ce] ast_expr2.fl: ast_yyerror(): syntax error: syntax error, unexpected ‘>’, expecting ‘-’ or ‘!’ or ‘(’ or ‘’; Input:
“LIMIT”=“LIMIT” & 4 & 1 & >0 & 0>=
^
[2019-01-25 08:13:53] WARNING[19924][C-000238ce] ast_expr2.fl: If you have questions, please refer to https://wiki.asterisk.org/wiki/display/AST/Channel+Variables
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:12] GotoIf(“SIP/6000-000001d1”, “0?limit”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:13] ExecIf(“SIP/6000-000001d1”, “1?Set(GROUP(concurrency_limit)=6000)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:14] ExecIf(“SIP/6000-000001d1”, “0?Set(CHANNEL(language)=)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:15] NoOp(“SIP/6000-000001d1”, “Macro Depth is 1”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:16] GotoIf(“SIP/6000-000001d1”, “1?report2:macroerror”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx_builtins.c: Goto (macro-user-callerid,s,17)
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:17] GotoIf(“SIP/6000-000001d1”, “1?continue”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx_builtins.c: Goto (macro-user-callerid,s,36)
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:36] Set(“SIP/6000-000001d1”, “CALLERID(number)=6000”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:37] Set(“SIP/6000-000001d1”, “CALLERID(name)=Maria Pena”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:38] GotoIf(“SIP/6000-000001d1”, “0?cnum”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:39] Set(“SIP/6000-000001d1”, “CDR(cnam)=Maria Pena”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:40] Set(“SIP/6000-000001d1”, “CDR(cnum)=6000”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:41] Set(“SIP/6000-000001d1”, “CHANNEL(language)=en”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:2] Gosub(“SIP/6000-000001d1”, “sub-record-check,s,1(out,4808622782,dontcare)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:1] GotoIf(“SIP/6000-000001d1”, “0?initialized”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:2] Set(“SIP/6000-000001d1”, “__REC_STATUS=INITIALIZED”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:3] Set(“SIP/6000-000001d1”, “NOW=1548429233”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:4] Set(“SIP/6000-000001d1”, “__DAY=25”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:5] Set(“SIP/6000-000001d1”, “__MONTH=01”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:6] Set(“SIP/6000-000001d1”, “__YEAR=2019”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:7] Set(“SIP/6000-000001d1”, “__TIMESTR=20190125-081353”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:8] Set(“SIP/6000-000001d1”, “__FROMEXTEN=6000”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:9] Set(“SIP/6000-000001d1”, “__MON_FMT=wav”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:10] NoOp(“SIP/6000-000001d1”, “Recordings initialized”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:11] ExecIf(“SIP/6000-000001d1”, “0?Set(ARG3=dontcare)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:12] Set(“SIP/6000-000001d1”, “REC_POLICY_MODE_SAVE=”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:13] ExecIf(“SIP/6000-000001d1”, “0?Set(REC_STATUS=NO)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:14] GotoIf(“SIP/6000-000001d1”, “3?checkaction”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx_builtins.c: Goto (sub-record-check,s,17)
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:17] GotoIf(“SIP/6000-000001d1”, “1?sub-record-check,out,1”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx_builtins.c: Goto (sub-record-check,out,1)
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:1] NoOp(“SIP/6000-000001d1”, “Outbound Recording Check from 6000 to 4808622782”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:2] Set(“SIP/6000-000001d1”, “RECMODE=dontcare”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:3] ExecIf(“SIP/6000-000001d1”, “1?Goto(routewins)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx_builtins.c: Goto (sub-record-check,out,7)
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:7] Gosub(“SIP/6000-000001d1”, “recordcheck,1(dontcare,out,4808622782)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:1] NoOp(“SIP/6000-000001d1”, “Starting recording check against dontcare”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:2] Goto(“SIP/6000-000001d1”, “dontcare”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx_builtins.c: Goto (sub-record-check,recordcheck,3)
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:3] Return(“SIP/6000-000001d1”, “”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:8] Return(“SIP/6000-000001d1”, “”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:3] ExecIf(“SIP/6000-000001d1”, “0 ?Set(CDR(accountcode)=)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:4] Set(“SIP/6000-000001d1”, “MOHCLASS=default”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:5] ExecIf(“SIP/6000-000001d1”, “1?Set(TRUNKCIDOVERRIDE=+16023627646)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:6] Set(“SIP/6000-000001d1”, “_NODEST=”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:7] Macro(“SIP/6000-000001d1”, “dialout-trunk,2,4808622782,off”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:1] Set(“SIP/6000-000001d1”, “DIAL_TRUNK=2”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:2] GosubIf(“SIP/6000-000001d1”, “0?sub-pincheck,s,1()”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:3] GotoIf(“SIP/6000-000001d1”, “0?disabletrunk,1”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:4] Set(“SIP/6000-000001d1”, “DIAL_NUMBER=4808622782”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:5] Set(“SIP/6000-000001d1”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:6] Set(“SIP/6000-000001d1”, “OUTBOUND_GROUP=OUT_2”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:7] Set(“SIP/6000-000001d1”, “DIAL_TRUNK_OPTIONS=T”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:8] GotoIf(“SIP/6000-000001d1”, “1?nomax”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx_builtins.c: Goto (macro-dialout-trunk,s,10)
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:10] GotoIf(“SIP/6000-000001d1”, “0?skipoutcid”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:11] Macro(“SIP/6000-000001d1”, “outbound-callerid,2”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:1] ExecIf(“SIP/6000-000001d1”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:2] ExecIf(“SIP/6000-000001d1”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:3] ExecIf(“SIP/6000-000001d1”, “0?Set(REALCALLERIDNUM=6000)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:4] GotoIf(“SIP/6000-000001d1”, “1?normcid”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx_builtins.c: Goto (macro-outbound-callerid,s,7)
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:7] Set(“SIP/6000-000001d1”, “USEROUTCID=”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:8] Set(“SIP/6000-000001d1”, “EMERGENCYCID=”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:9] Set(“SIP/6000-000001d1”, “TRUNKOUTCID=6023627646”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]rid:10] GotoIf(“SIP/6000-000001d1”, “1?trunkcid”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx_builtins.c: Goto (macro-outbound-callerid,s,15)
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:15] ExecIf(“SIP/6000-000001d1”, “1?Set(CALLERID(all)=6023627646)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:16] ExecIf(“SIP/6000-000001d1”, “0?Set(CALLERID(all)=)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:17] ExecIf(“SIP/6000-000001d1”, “1?Set(CALLERID(all)=6023627646)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:18] ExecIf(“SIP/6000-000001d1”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:19] ExecIf(“SIP/6000-000001d1”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:20] ExecIf(“SIP/6000-000001d1”, “0?Set(CALLERID(name)=)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:21] Set(“SIP/6000-000001d1”, “CDR(outbound_cnum)=6023627646”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:22] Set(“SIP/6000-000001d1”, “CDR(outbound_cnam)=”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:12] GosubIf(“SIP/6000-000001d1”, “0?sub-flp-2,s,1()”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:13] Set(“SIP/6000-000001d1”, “OUTNUM=4808622782”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:14] Set(“SIP/6000-000001d1”, “custom=SIP/TwilioTrunk”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:15] ExecIf(“SIP/6000-000001d1”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:16] ExecIf(“SIP/6000-000001d1”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:17] Macro(“SIP/6000-000001d1”, “dialout-trunk-predial-hook,”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:1] MacroExit(“SIP/6000-000001d1”, “”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:18] GotoIf(“SIP/6000-000001d1”, “0?skipcrm”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:19] Set(“SIP/6000-000001d1”, “__CRM_DIRECTION=OUTBOUND”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:20] Set(“SIP/6000-000001d1”, “__CRM_DESTINATION=4808622782”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:21] Set(“SIP/6000-000001d1”, “__CRM_SOURCE=6000”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:22] AGI(“SIP/6000-000001d1”, “sangomacrm.agi”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] res_agi.c: <SIP/6000-000001d1>AGI Script sangomacrm.agi completed, returning 0
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:23] Set(“SIP/6000-000001d1”, “CHANNEL(hangup_handler_push)=crm-hangup,s,1”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:24] NoOp(“SIP/6000-000001d1”, “CRM Finished”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:25] GotoIf(“SIP/6000-000001d1”, “0?bypass,1”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:26] ExecIf(“SIP/6000-000001d1”, “1?Set(CONNECTEDLINE(num,i)=4808622782)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:27] ExecIf(“SIP/6000-000001d1”, “1?Set(CONNECTEDLINE(name,i)=CID:6023627646)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:28] ExecIf(“SIP/6000-000001d1”, “0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)6023627646)”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:29] GotoIf(“SIP/6000-000001d1”, “0?customtrunk”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:30] Dial(“SIP/6000-000001d1”, “SIP/TwilioTrunk/4808622782,300,T”) in new stack
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] netsock2.c: Using SIP RTP TOS bits 184
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] netsock2.c: Using SIP RTP CoS mark 5
[2019-01-25 08:13:53] VERBOSE[19924][C-000238ce] app_dial.c: Called SIP/TwilioTrunk/4808622782
[2019-01-25 08:14:02] NOTICE[2401][C-000238cf] chan_sip.c: Failed to authenticate device sip:[email protected];tag=1459056053
[2019-01-25 08:14:12] WARNING[2401] chan_sip.c: Retransmission timeout reached on transmission 2123179029-874924234-894543898 for seqno 2 (Critical Response) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response
[2019-01-25 08:14:34] WARNING[2401] chan_sip.c: Retransmission timeout reached on transmission 1755412023-1953481067-694152975 for seqno 2 (Critical Response) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response
[2019-01-25 08:14:46] WARNING[2401] chan_sip.c: Timeout on 1317455650-1466997001-709005674 on non-critical invite transaction.
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] app_macro.c: Spawn extension (macro-dialout-trunk, s, 30) exited non-zero on ‘SIP/6000-000001d1’ in macro ‘dialout-trunk’
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Spawn extension (from-internal, 4808622782, 7) exited non-zero on ‘SIP/6000-000001d1’
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:1] Macro(“SIP/6000-000001d1”, “hangupcall”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:1] GotoIf(“SIP/6000-000001d1”, “1?theend”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:3] ExecIf(“SIP/6000-000001d1”, “0?Set(CDR(recordingfile)=)”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:4] Hangup(“SIP/6000-000001d1”, “”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/6000-000001d1’ in macro ‘hangupcall’
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/6000-000001d1’
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] app_stack.c: SIP/6000-000001d1 Internal Gosub(crm-hangup,s,1) start
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:1] NoOp(“SIP/6000-000001d1”, “Sending Hangup to CRM”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:2] NoOp(“SIP/6000-000001d1”, “HANGUP CAUSE: 16”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:3] ExecIf(“SIP/6000-000001d1”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:4] NoOp(“SIP/6000-000001d1”, “MASTER CHANNEL: 1548429233.465 = 1548429233.465”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:5] GotoIf(“SIP/6000-000001d1”, “0?return”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:6] Set(“SIP/6000-000001d1”, “__CRM_HANGUP=1”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:7] AGI(“SIP/6000-000001d1”, “sangomacrm.agi”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] res_agi.c: <SIP/6000-000001d1>AGI Script sangomacrm.agi completed, returning 0
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] pbx.c: Executing [[email protected]:8] Return(“SIP/6000-000001d1”, “”) in new stack
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] app_stack.c: Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/6000-000001d1’
[2019-01-25 08:15:13] VERBOSE[19924][C-000238ce] app_stack.c: SIP/6000-000001d1 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
[2019-01-25 08:15:24] WARNING[2401] chan_sip.c: Timeout on 942027665-1376396227-1879119284 on non-critical invite transaction.

The numbers are not formatted correctly for Twilio. The 480 number you are calling (presumably Phoenix) would look like a call to Poland (country code 48). Likewise, the caller ID would appear to be from Malaysia (country code 60).

Twilio would prefer that you use e.g. +14808622782 but I believe that they will accept 14808622782.

If fixing the numbers does not help, at the Asterisk console do
sip set debug on
and retry a failing call. The SIP requests and responses will appear in the log and we can see if there is a problem with the trunk setup.

Thanks this help and it is now working

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.