Can't Make Outbound calls

Hi there,
I have a register SIP trunk and I can see the calls go through it, but I always receive service unavailable from the peer side, Am afraid that the SIP invite message from side has some problems:

Trunk configuration
type=friend
context="name"
host=x.x.x.x
disallow=all
allow=ulaw&alaw
nat=yes
canreinvite=no
qualify=yes

logs:

localhostCLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [962788897171@from-internal:1] Macro(“SIP/1000-0000007c”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/1000-0000007c”, “AMPUSER=1000”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/1000-0000007c”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/1000-0000007c”, “1?Set(REALCALLERIDNUM=1000)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/1000-0000007c”, “AMPUSER=1000”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/1000-0000007c”, “AMPUSERCIDNAME=Firas”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/1000-0000007c”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/1000-0000007c”, “AMPUSERCID=1000”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/1000-0000007c”, “CALLERID(all)=“Firas” <1000>”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/1000-0000007c”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:10] ExecIf(“SIP/1000-0000007c”, “1?Set(GROUP(concurrency_limit)=1000)”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“SIP/1000-0000007c”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,24)
– Executing [s@macro-user-callerid:24] Set(“SIP/1000-0000007c”, “CALLERID(number)=1000”) in new stack
– Executing [s@macro-user-callerid:25] Set(“SIP/1000-0000007c”, “CALLERID(name)=Firas”) in new stack
– Executing [s@macro-user-callerid:26] Set(“SIP/1000-0000007c”, “CHANNEL(language)=en”) in new stack
– Executing [962788897171@from-internal:2] Set(“SIP/1000-0000007c”, “MOHCLASS=default”) in new stack
– Executing [962788897171@from-internal:3] Set(“SIP/1000-0000007c”, “_NODEST=”) in new stack
– Executing [962788897171@from-internal:4] Gosub(“SIP/1000-0000007c”, “sub-record-check,s,1(out,962788897171,)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/1000-0000007c”, “1?check”) in new stack
– Goto (sub-record-check,s,3)
– Executing [s@sub-record-check:3] Set(“SIP/1000-0000007c”, “MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:4] GotoIf(“SIP/1000-0000007c”, “1?next”) in new stack
– Goto (sub-record-check,s,7)
– Executing [s@sub-record-check:7] ExecIf(“SIP/1000-0000007c”, “0?Return()”) in new stack
– Executing [s@sub-record-check:8] GotoIf(“SIP/1000-0000007c”, “0?out,1”) in new stack
– Executing [s@sub-record-check:9] Set(“SIP/1000-0000007c”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:10] ExecIf(“SIP/1000-0000007c”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:11] Set(“SIP/1000-0000007c”, “NOW=1337007738”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/1000-0000007c”, “__DAY=14”) in new stack
– Executing [s@sub-record-check:13] Set(“SIP/1000-0000007c”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/1000-0000007c”, “__YEAR=2012”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/1000-0000007c”, “__TIMESTR=20120514-180218”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/1000-0000007c”, “__FROMEXTEN=1000”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/1000-0000007c”, “__CALLFILENAME=out-962788897171-1000-20120514-180218-1337007738.124”) in new stack
– Executing [s@sub-record-check:18] Goto(“SIP/1000-0000007c”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“SIP/1000-0000007c”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“SIP/1000-0000007c”, “0?record,1(exten,962788897171,1000)”) in new stack
– Executing [out@sub-record-check:3] Return(“SIP/1000-0000007c”, “”) in new stack
– Executing [962788897171@from-internal:5] Macro(“SIP/1000-0000007c”, “dialout-trunk,3,962788897171,”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/1000-0000007c”, “DIAL_TRUNK=3”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/1000-0000007c”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/1000-0000007c”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/1000-0000007c”, “DIAL_NUMBER=962788897171”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/1000-0000007c”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/1000-0000007c”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/1000-0000007c”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:8] GotoIf(“SIP/1000-0000007c”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/1000-0000007c”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/1000-0000007c”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/1000-0000007c”, “outbound-callerid,3”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/1000-0000007c”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/1000-0000007c”, “0?Set(REALCALLERIDNUM=1000)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/1000-0000007c”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/1000-0000007c”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/1000-0000007c”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/1000-0000007c”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/1000-0000007c”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/1000-0000007c”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/1000-0000007c”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/1000-0000007c”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/1000-0000007c”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/1000-0000007c”, “0?sub-flp-3,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/1000-0000007c”, “OUTNUM=962788897171”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/1000-0000007c”, “custom=SIP/ERIS”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/1000-0000007c”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/1000-0000007c”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/1000-0000007c”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] GotoIf(“SIP/1000-0000007c”, ““ERIS””) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:2] MacroExit(“SIP/1000-0000007c”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/1000-0000007c”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/1000-0000007c”, “1?Set(CONNECTEDLINE(num,i)=962788897171)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/1000-0000007c”, “1?Set(CONNECTEDLINE(name,i)=CID:1000)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/1000-0000007c”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/1000-0000007c”, “SIP/ERIS/962788897171,300,”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/ERIS/962788897171
– Got SIP response 480 “Temporarily Unavailable” back from x.x.x.x:5060
– SIP/ERIS-0000007d is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [s@macro-dialout-trunk:23] NoOp(“SIP/1000-0000007c”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 19”) in new stack
– Executing [s@macro-dialout-trunk:24] Goto(“SIP/1000-0000007c”, “s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [s-CONGESTION@macro-dialout-trunk:1] Set(“SIP/1000-0000007c”, “RC=19”) in new stack
– Executing [s-CONGESTION@macro-dialout-trunk:2] Goto(“SIP/1000-0000007c”, “19,1”) in new stack
– Goto (macro-dialout-trunk,19,1)
– Executing [19@macro-dialout-trunk:1] Goto(“SIP/1000-0000007c”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] GotoIf(“SIP/1000-0000007c”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [continue@macro-dialout-trunk:3] NoOp(“SIP/1000-0000007c”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 19 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:4] Set(“SIP/1000-0000007c”, “CALLERID(number)=1000”) in new stack
– Executing [962788897171@from-internal:6] Macro(“SIP/1000-0000007c”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/1000-0000007c”, “”) in new stack
– Executing [s@macro-outisbusy:2] Playback(“SIP/1000-0000007c”, “all-circuits-busy-now,noanswer”) in new stack
– <SIP/1000-0000007c> Playing ‘all-circuits-busy-now.gsm’ (language ‘en’)
– Executing [s@macro-outisbusy:3] Playback(“SIP/1000-0000007c”, “pls-try-call-later,noanswer”) in new stack
– <SIP/1000-0000007c> Playing ‘pls-try-call-later.gsm’ (language ‘en’)
– Executing [s@macro-outisbusy:4] Macro(“SIP/1000-0000007c”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/1000-0000007c”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [s@macro-hangupcall:3] Hangup(“SIP/1000-0000007c”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘SIP/1000-0000007c’ in macro ‘hangupcall’
== Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘SIP/1000-0000007c’ in macro ‘outisbusy’
== Spawn extension (from-internal, 962788897171, 6) exited non-zero on ‘SIP/1000-0000007c’
– Executing [h@from-internal:1] Hangup(“SIP/1000-0000007c”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1000-0000007c’
localhost
CLI>

Any Idea what is the problem and how to solve it?

[quote]Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/ERIS/962788897171
– Got SIP response 480 “Temporarily Unavailable” back from x.x.x.x:5060
– SIP/ERIS-0000007d is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
[/quote]

Your provider returned temp. unavailable.

Thanks for the replay.
I found the problem and fix it.
Its something related to network layer as am sending from wrong IP address to my provider.

Thanks again

Hi there,

Hope you are all well. I’ve set up a Lync 2010 environment in a vmware lab following various blogs and posts. My network is a back to back TMG perimiter network and I setup FreePBX as a PSTN Gatewat for the Lync 2010 Consolidated server in the perimeter. Again looking through posts managed to setup calls from both FreePBX to Lync users and Lync to FreePBX users.

At the moment I can’t seem to make any calls out from the FreePBX, doesnt matter if I try a Lync user or a FreePBX user. I trired asterisk -vvvvvvr from the commad line as someone suggested in another post. and I got this


Executing [8+442077003233@from-internal :6] Macro (“SIP/3001-0000004d”, “outisbusy,”) in new stack

Executing [s@macro-outisbusy:1] Progress (“SIP/3001-0000004d”, “”) in new stack

Executing [s@macro-outisbusy:2] GotoIf (“SIP/3001-0000004d”, “0?emergency,1”) in new stack

Executing [s@macro-outisbusy:3] GotoIf (“SIP/3001-0000004d”, “0?intracompany,1”) in new stack

Executing [s@macro-outisbusy:4] Playback (“SIP/3001-0000004d”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack

<SIP/3001-0000004d. Playing ‘all-circuits-busy-now.ulaw’

<SIP/3001-0000004d. Playing ‘pls-try-call-later.ulaw’

Executing [s@macro-outisbusy:5] Congestion (“SIP/3001-0000004d”, “20”) in new stack

[2012-05-21 20:32:07] WARNING[-1] channel .c:4742 ast_prod: Prodding Channel ‘SIP/3001-0000004d’ failed

Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘SIP/3001-0000004d’ in macro ‘outisbusy’

Spawn extension (from-internal, 8+442077003233, 6) exited non-zero on ‘SIP/3001-0000004d’

Executing [h@from-internal:1] Hangup (“SIP/3001-0000004d”, “”) in new stack

Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/3001-0000004d’


Anyone able to help out please or point me in the right direction? Much appriciated.

Kind regards

Hammad