Outbound calls not working

Hi,
on a FreePBX 2.11.0.2 on Asterisk (Ver. 11.4.0) i made a trunk and an incoming route for incoming calls and everithing is ok. I also made the outbound route but probably something goes wrong with the route and the calls don’t go:

== 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,userfield) VALUES (‘CHAN_START’,{ts ‘2013-07-01 12:01:44’},‘Office2’,‘402’,’’,’’,’’,‘0584384334’,‘from-internal’,‘SIP/402-0000009f’,’’,’’,3,’’,‘1372669304.159’,‘1372669304.159’,’’,’’,’’)]
– Executing [0584384334@from-internal:1] Macro(“SIP/402-0000009f”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/402-0000009f”, “TOUCH_MONITOR=1372669304.159”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/402-0000009f”, “AMPUSER=402”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/402-0000009f”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/402-0000009f”, “1?Set(REALCALLERIDNUM=402)”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/402-0000009f”, “AMPUSER=402”) in new stack
– Executing [s@macro-user-callerid:6] Set(“SIP/402-0000009f”, “AMPUSERCIDNAME=Office2”) in new stack
– Executing [s@macro-user-callerid:7] GotoIf(“SIP/402-0000009f”, “0?report”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/402-0000009f”, “AMPUSERCID=402”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/402-0000009f”, “__DIAL_OPTIONS=Ttr”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/402-0000009f”, “CALLERID(all)=“Office2” <402>”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“SIP/402-0000009f”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:12] ExecIf(“SIP/402-0000009f”, “1?Set(GROUP(concurrency_limit)=402)”) in new stack
– Executing [s@macro-user-callerid:13] GosubIf(“SIP/402-0000009f”, “7?sub-ccss,s,1(from-internal,0584384334)”) in new stack
– Executing [s@sub-ccss:1] ExecIf(“SIP/402-0000009f”, “0?Return()”) in new stack
– Executing [s@sub-ccss:2] Set(“SIP/402-0000009f”, “CCSS_SETUP=TRUE”) in new stack
– Executing [s@sub-ccss:3] GosubIf(“SIP/402-0000009f”, “0?monitor_config,1(from-internal,0584384334):monitor_default,1(from-internal,0584384334)”) in new stack
– Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/402-0000009f”, “0?is_exten”) in new stack
– Executing [monitor_default@sub-ccss:2] StackPop(“SIP/402-0000009f”, “”) in new stack
– Executing [monitor_default@sub-ccss:3] Return(“SIP/402-0000009f”, “FALSE”) in new stack
– Executing [s@macro-user-callerid:14] ExecIf(“SIP/402-0000009f”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:15] GotoIf(“SIP/402-0000009f”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [s@macro-user-callerid:28] Set(“SIP/402-0000009f”, “CALLERID(number)=402”) in new stack
– Executing [s@macro-user-callerid:29] Set(“SIP/402-0000009f”, “CALLERID(name)=Office2”) in new stack
– Executing [s@macro-user-callerid:30] Set(“SIP/402-0000009f”, “CDR(cnum)=402”) in new stack
– Executing [s@macro-user-callerid:31] Set(“SIP/402-0000009f”, “CDR(cnam)=Office2”) in new stack
– Executing [s@macro-user-callerid:32] Set(“SIP/402-0000009f”, “CHANNEL(language)=en”) in new stack
– Executing [0584384334@from-internal:2] Set(“SIP/402-0000009f”, “MOHCLASS=default”) in new stack
– Executing [0584384334@from-internal:3] ExecIf(“SIP/402-0000009f”, “1?Set(TRUNKCIDOVERRIDE=0287157191)”) in new stack
– Executing [0584384334@from-internal:4] Set(“SIP/402-0000009f”, “_NODEST=”) in new stack
– Executing [0584384334@from-internal:5] Gosub(“SIP/402-0000009f”, “sub-record-check,s,1(out,0584384334,)”) in new stack
– Executing [s@sub-record-check:1] Set(“SIP/402-0000009f”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:2] GotoIf(“SIP/402-0000009f”, “1?check”) in new stack
– Goto (sub-record-check,s,7)
– Executing [s@sub-record-check:7] Set(“SIP/402-0000009f”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:8] GotoIf(“SIP/402-0000009f”, “1?next”) in new stack
– Goto (sub-record-check,s,11)
– Executing [s@sub-record-check:11] ExecIf(“SIP/402-0000009f”, “0?Return()”) in new stack
– Executing [s@sub-record-check:12] ExecIf(“SIP/402-0000009f”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:13] GotoIf(“SIP/402-0000009f”, “0?out,1”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/402-0000009f”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/402-0000009f”, “NOW=1372669304”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/402-0000009f”, “__DAY=01”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/402-0000009f”, “__MONTH=07”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/402-0000009f”, “__YEAR=2013”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/402-0000009f”, “__TIMESTR=20130701-120144”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/402-0000009f”, “__FROMEXTEN=402”) in new stack
– Executing [s@sub-record-check:21] Set(“SIP/402-0000009f”, “__CALLFILENAME=out-0584384334-402-20130701-120144-1372669304.159”) in new stack
– Executing [s@sub-record-check:22] Goto(“SIP/402-0000009f”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“SIP/402-0000009f”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“SIP/402-0000009f”, “0?record,1(exten,0584384334,402)”) in new stack
– Executing [out@sub-record-check:3] Return(“SIP/402-0000009f”, “”) in new stack
– Executing [0584384334@from-internal:6] Macro(“SIP/402-0000009f”, “dialout-trunk,3,0584384334,off”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/402-0000009f”, “DIAL_TRUNK=3”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/402-0000009f”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/402-0000009f”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/402-0000009f”, “DIAL_NUMBER=0584384334”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/402-0000009f”, “DIAL_TRUNK_OPTIONS=Ttr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/402-0000009f”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/402-0000009f”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/402-0000009f”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/402-0000009f”, “DIAL_TRUNK_OPTIONS=Tt”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/402-0000009f”, “outbound-callerid,3”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/402-0000009f”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/402-0000009f”, “0?Set(REALCALLERIDNUM=402)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/402-0000009f”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/402-0000009f”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/402-0000009f”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/402-0000009f”, “TRUNKOUTCID=0287157191”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/402-0000009f”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,14)
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/402-0000009f”, “1?Set(CALLERID(all)=0287157191)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/402-0000009f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:16] ExecIf(“SIP/402-0000009f”, “1?Set(CALLERID(all)=0287157191)”) in new stack
– Executing [s@macro-outbound-callerid:17] ExecIf(“SIP/402-0000009f”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-outbound-callerid:18] Set(“SIP/402-0000009f”, “CDR(outbound_cnum)=0287157191”) in new stack
– Executing [s@macro-outbound-callerid:19] Set(“SIP/402-0000009f”, “CDR(outbound_cnam)=”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/402-0000009f”, “1?sub-flp-3,s,1()”) in new stack
– Executing [s@sub-flp-3:1] ExecIf(“SIP/402-0000009f”, “1?Return()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/402-0000009f”, “OUTNUM=0584384334”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/402-0000009f”, “custom=SIP/messagenet0287157191”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/402-0000009f”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/402-0000009f”, “0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/402-0000009f”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/402-0000009f”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/402-0000009f”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/402-0000009f”, “1?Set(CONNECTEDLINE(num,i)=0584384334)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/402-0000009f”, “1?Set(CONNECTEDLINE(name,i)=CID:0287157191)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/402-0000009f”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/402-0000009f”, “SIP/messagenet0287157191/0584384334,300,Tt”) 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,userfield) VALUES (‘CHAN_START’,{ts ‘2013-07-01 12:01:44’},’’,’’,’’,’’,’’,‘s’,‘from-pstn’,‘SIP/messagenet0287157191-000000a0’,’’,’’,3,’’,‘1372669304.160’,‘1372669304.159’,’’,’’,’’)]
– Called SIP/messagenet0287157191/0584384334
– SIP/messagenet0287157191-000000a0 is ringing
– SIP/messagenet0287157191-000000a0 is making progress passing it to SIP/402-0000009f
> 0xb748f488 – Probation passed - setting RTP source address to 217.26.164.51:9586
> 0xb5757dd8 – Probation passed - setting RTP source address to 193.227.104.40:46588
– SIP/messagenet0287157191-000000a0 answered SIP/402-0000009f
> [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,userfield) VALUES (‘ANSWER’,{ts ‘2013-07-01 12:01:51’},‘CID:0287157191’,‘0584384334’,’’,’’,’’,‘0584384334’,‘from-pstn’,‘SIP/messagenet0287157191-000000a0’,‘AppDial’,’(Outgoing Line)’,3,’’,‘1372669304.160’,‘1372669304.159’,’’,’’,’’)]
> [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,userfield) VALUES (‘ANSWER’,{ts ‘2013-07-01 12:01:51’},’’,‘0287157191’,‘402’,’’,‘0584384334’,‘s’,‘macro-dialout-trunk’,‘SIP/402-0000009f’,‘Dial’,‘SIP/messagenet0287157191/0584384334,300,Tt’,3,’’,‘1372669304.159’,‘1372669304.159’,’’,’’,’’)]
> [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,userfield) VALUES (‘BRIDGE_START’,{ts ‘2013-07-01 12:01:51’},’’,‘0287157191’,‘402’,’’,‘0584384334’,‘s’,‘macro-dialout-trunk’,‘SIP/402-0000009f’,‘Dial’,‘SIP/messagenet0287157191/0584384334,300,Tt’,3,’’,‘1372669304.159’,‘1372669304.159’,‘SIP/messagenet0287157191-000000a0’,’’,’’)]
> 0xb5757dd8 – Probation passed - setting RTP source address to 193.227.104.40:46588
localhost*CLI>

I’m A new user and i cannot understand the reason why the outbound calls don’t work.
Can somebody give an help?

Thanks
dan

For the sip trunk are you registering and what have you down under Peer Details in the sip trunk?

Looks like a configuration error.

the configuration of the trunks and the peers seems to be ok:

localhost*CLI> sip show peers
Name/username Host Dyn Forcerport ACL Port Status Description
201/201 (Unspecified) D A 0 UNKNOWN
202/202 (Unspecified) D N A 0 UNKNOWN
299 (Unspecified) D A 0 UNKNOWN
401/401 92.xx.xx.175 D A 52571 OK (107 ms)
402/402 (Unspecified) D A 0 UNKNOWN
499 (Unspecified) D A 0 UNKNOWN
messagenet02xxxxx91/5392 212.xx.xx.76 a 5061 OK (49 ms)
messagenet02871xxxx/5397 212.xx.xx.76 a 5061 OK (49 ms)
8 sip peers [Monitored: 3 online, 5 offline Unmonitored: 0 online, 0 offline]

localhost*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
sip.messagenet.it:5061 N 53xxxx4 105 Registered Thu, 04 Jul 2013 15:30:51
sip.messagenet.it:5061 N 53xxxx0 105 Registered Thu, 04 Jul 2013 15:30:52
2 SIP registrations.