Hello billsimon,
thank you, but its not working.
can you help me?
here the log:
– Executing [[email protected]:3] GotoIf(“SIP/10-0000000f”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“SIP/10-0000000f”, “DIAL_NUMBER=300043*********”) in new stack
– Executing [[email protected]:5] Set(“SIP/10-0000000f”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [[email protected]:6] Set(“SIP/10-0000000f”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/10-0000000f”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [[email protected]:9] GotoIf(“SIP/10-0000000f”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/10-0000000f”, “DIAL_TRUNK_OPTIONS=T”) in new stack
– Executing [[email protected]:11] Macro(“SIP/10-0000000f”, “outbound-callerid,1”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/10-0000000f”, “0?Set(CALLERPRES(name-pres)=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/10-0000000f”, “0?Set(CALLERPRES(num-pres)=)”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/10-0000000f”, “0?Set(REALCALLERIDNUM=10)”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/10-0000000f”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,7)
– Executing [[email protected]:7] Set(“SIP/10-0000000f”, “USEROUTCID=+4310") in new stack
– Executing [[email protected]:8] Set(“SIP/10-0000000f”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:9] Set(“SIP/10-0000000f”, “TRUNKOUTCID=”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/10-0000000f”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,15)
– Executing [[email protected]:15] ExecIf(“SIP/10-0000000f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/10-0000000f”, "1?Set(CALLERID(all)=+4310)”) in new stack
– Executing [[email protected]:17] ExecIf(“SIP/10-0000000f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:18] ExecIf(“SIP/10-0000000f”, “0?Set(CALLERPRES(name-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:19] ExecIf(“SIP/10-0000000f”, “0?Set(CALLERPRES(num-pres)=prohib_passed_screen)”) in new stack
– Executing [[email protected]:20] Set(“SIP/10-0000000f”, “CDR(outbound_cnum)=+4310") in new stack
– Executing [[email protected]:21] Set(“SIP/10-0000000f”, “CDR(outbound_cnam)=”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/10-0000000f”, “0?sub-flp-1,s,1()”) in new stack
– Executing [[email protected]:13] Set(“SIP/10-0000000f”, "OUTNUM=300043") in new stack
– Executing [[email protected]:14] Set(“SIP/10-0000000f”, “custom=SIP/Out”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/10-0000000f”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)T)”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/10-0000000f”, “0?Set(DIAL_TRUNK_OPTIONS=TM(confirm))”) in new stack
– Executing [[email protected]:17] Macro(“SIP/10-0000000f”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] SIPAddHeader(“SIP/10-0000000f”, "cid:+4310") in new stack
– Executing [[email protected]:18] GotoIf(“SIP/10-0000000f”, “0?bypass,1”) in new stack
– Executing [[email protected]:19] ExecIf(“SIP/10-0000000f”, "1?Set(CONNECTEDLINE(num,i)=300043)”) in new stack
– Executing [[email protected]:20] ExecIf(“SIP/10-0000000f”, “1?Set(CONNECTEDLINE(name,i)=CID:+4310)") in new stack
– Executing [[email protected]:21] ExecIf(“SIP/10-0000000f”, "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)+4310)”) in new stack
– Executing [[email protected]:22] GotoIf(“SIP/10-0000000f”, “0?customtrunk”) in new stack
– Executing [[email protected]:23] Dial(“SIP/10-0000000f”, “SIP/Out/300043*********,300,T”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES (‘CHAN_START’,{ts ‘2017-12-03 18:05:27.856117’},’’,’’,’’,’’,’’,‘s’,‘from-trunk’,‘SIP/Out-00000010’,’’,’’,3,’’,‘1512320727.16’,‘1512320727.15’,’’,’’,’’)]
– Called SIP/Out/300043*********
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES (‘HANGUP’,{ts ‘2017-12-03 18:05:27.859947’},‘CID:+4310’,'300043’,’’,’’,’’,'300043*******’,‘from-trunk’,‘SIP/Out-00000010’,‘AppDial’,’(Outgoing Line)’,3,’’,‘1512320727.16’,‘1512320727.15’,’’,’’,‘1,SIP/Out-00000010,’)]
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [[email protected]:24] NoOp(“SIP/10-0000000f”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1”) in new stack
– Executing [[email protected]:25] GotoIf(“SIP/10-0000000f”, “0?continue,1:s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,extra) VALUES (‘CHAN_END’,{ts ‘2017-12-03 18:05:27.860197’},‘CID:+4310’,'300043’,’’,’’,’’,'300043*******’,‘from-trunk’,‘SIP/Out-00000010’,‘AppDial’,’(Outgoing Line)’,3,’’,‘1512320727.16’,‘1512320727.15’,’’,’’,’’)]
– Executing [[email protected]:1] Set(“SIP/10-0000000f”, “RC=1”) in new stack
– Executing [[email protected]:2] Goto(“SIP/10-0000000f”, “1,1”) in new stack
– Goto (macro-dialout-trunk,1,1)
– Executing [[email protected]:1] Goto(“SIP/10-0000000f”, “s-INVALIDNMBR,1”) in new stack
– Goto (macro-dialout-trunk,s-INVALIDNMBR,1)
– Executing [[email protected]:1] NoOp(“SIP/10-0000000f”, “Dial failed due to trunk reporting Address Incomplete - giving up”) in new stack
– Executing [[email protected]:2] Progress(“SIP/10-0000000f”, “”) in new stack
– Executing [[email protected]:3] Playback(“SIP/10-0000000f”, “ss-noservice,noanswer”) in new stack
– <SIP/10-0000000f> Playing ‘ss-noservice.gsm’ (language ‘en’)
> 0x7f72e00187a0 – Probation passed - setting RTP source address to 192.168.10.18:61564
SRV-PBX-CSIP-0000*CLI>
indent preformatted text by 4 spaces
the route settings:
main route:
new route with 30 prefix:
what im doing wrong?
thank you