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 [[email protected]:1] Macro(“SIP/1000-0000007c”, “user-callerid,LIMIT,”) in new stack
– Executing [[email protected]:1] Set(“SIP/1000-0000007c”, “AMPUSER=1000”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/1000-0000007c”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/1000-0000007c”, “1?Set(REALCALLERIDNUM=1000)”) in new stack
– Executing [[email protected]:4] Set(“SIP/1000-0000007c”, “AMPUSER=1000”) in new stack
– Executing [[email protected]:5] Set(“SIP/1000-0000007c”, “AMPUSERCIDNAME=Firas”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/1000-0000007c”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/1000-0000007c”, “AMPUSERCID=1000”) in new stack
– Executing [[email protected]:8] Set(“SIP/1000-0000007c”, “CALLERID(all)=“Firas” <1000>”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/1000-0000007c”, “0?limit”) in new stack
– Executing [[email protected]:10] ExecIf(“SIP/1000-0000007c”, “1?Set(GROUP(concurrency_limit)=1000)”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/1000-0000007c”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,24)
– Executing [[email protected]:24] Set(“SIP/1000-0000007c”, “CALLERID(number)=1000”) in new stack
– Executing [[email protected]:25] Set(“SIP/1000-0000007c”, “CALLERID(name)=Firas”) in new stack
– Executing [[email protected]:26] Set(“SIP/1000-0000007c”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“SIP/1000-0000007c”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:3] Set(“SIP/1000-0000007c”, “_NODEST=”) in new stack
– Executing [[email protected]:4] Gosub(“SIP/1000-0000007c”, “sub-record-check,s,1(out,962788897171,)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/1000-0000007c”, “1?check”) in new stack
– Goto (sub-record-check,s,3)
– Executing [[email protected]:3] Set(“SIP/1000-0000007c”, “MON_FMT=wav”) in new stack
– Executing [[email protected]:4] GotoIf(“SIP/1000-0000007c”, “1?next”) in new stack
– Goto (sub-record-check,s,7)
– Executing [[email protected]:7] ExecIf(“SIP/1000-0000007c”, “0?Return()”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/1000-0000007c”, “0?out,1”) in new stack
– Executing [[email protected]:9] Set(“SIP/1000-0000007c”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:10] ExecIf(“SIP/1000-0000007c”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [[email protected]:11] Set(“SIP/1000-0000007c”, “NOW=1337007738”) in new stack
– Executing [[email protected]:12] Set(“SIP/1000-0000007c”, “__DAY=14”) in new stack
– Executing [[email protected]:13] Set(“SIP/1000-0000007c”, “__MONTH=05”) in new stack
– Executing [[email protected]:14] Set(“SIP/1000-0000007c”, “__YEAR=2012”) in new stack
– Executing [[email protected]:15] Set(“SIP/1000-0000007c”, “__TIMESTR=20120514-180218”) in new stack
– Executing [[email protected]:16] Set(“SIP/1000-0000007c”, “__FROMEXTEN=1000”) in new stack
– Executing [[email protected]:17] Set(“SIP/1000-0000007c”, “__CALLFILENAME=out-962788897171-1000-20120514-180218-1337007738.124”) in new stack
– Executing [[email protected]:18] Goto(“SIP/1000-0000007c”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] ExecIf(“SIP/1000-0000007c”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/1000-0000007c”, “0?record,1(exten,962788897171,1000)”) in new stack
– Executing [[email protected]:3] Return(“SIP/1000-0000007c”, “”) in new stack
– Executing [[email protected]:5] Macro(“SIP/1000-0000007c”, “dialout-trunk,3,962788897171,”) in new stack
– Executing [[email protected]:1] Set(“SIP/1000-0000007c”, “DIAL_TRUNK=3”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/1000-0000007c”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/1000-0000007c”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“SIP/1000-0000007c”, “DIAL_NUMBER=962788897171”) in new stack
– Executing [[email protected]:5] Set(“SIP/1000-0000007c”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“SIP/1000-0000007c”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/1000-0000007c”, “0?nomax”) in new stack
– Executing [[email protected]:8] GotoIf(“SIP/1000-0000007c”, “0?chanfull”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/1000-0000007c”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/1000-0000007c”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/1000-0000007c”, “outbound-callerid,3”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/1000-0000007c”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/1000-0000007c”, “0?Set(REALCALLERIDNUM=1000)”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/1000-0000007c”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/1000-0000007c”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“SIP/1000-0000007c”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/1000-0000007c”, “TRUNKOUTCID=”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/1000-0000007c”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“SIP/1000-0000007c”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/1000-0000007c”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/1000-0000007c”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/1000-0000007c”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/1000-0000007c”, “0?sub-flp-3,s,1()”) in new stack
– Executing [[email protected]:13] Set(“SIP/1000-0000007c”, “OUTNUM=962788897171”) in new stack
– Executing [[email protected]:14] Set(“SIP/1000-0000007c”, “custom=SIP/ERIS”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/1000-0000007c”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/1000-0000007c”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [[email protected]:17] Macro(“SIP/1000-0000007c”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/1000-0000007c”, ““ERIS””) in new stack
– Executing [[email protected]:2] MacroExit(“SIP/1000-0000007c”, “”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/1000-0000007c”, “0?bypass,1”) in new stack
– Executing [[email protected]:19] ExecIf(“SIP/1000-0000007c”, “1?Set(CONNECTEDLINE(num,i)=962788897171)”) in new stack
– Executing [[email protected]:20] ExecIf(“SIP/1000-0000007c”, “1?Set(CONNECTEDLINE(name,i)=CID:1000)”) in new stack
– Executing [[email protected]:21] GotoIf(“SIP/1000-0000007c”, “0?customtrunk”) in new stack
– Executing [[email protected]: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 [[email protected]:23] NoOp(“SIP/1000-0000007c”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 19”) in new stack
– Executing [[email protected]:24] Goto(“SIP/1000-0000007c”, “s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [[email protected]:1] Set(“SIP/1000-0000007c”, “RC=19”) in new stack
– Executing [[email protected]:2] Goto(“SIP/1000-0000007c”, “19,1”) in new stack
– Goto (macro-dialout-trunk,19,1)
– Executing [[email protected]:1] Goto(“SIP/1000-0000007c”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] GotoIf(“SIP/1000-0000007c”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [[email protected]:3] NoOp(“SIP/1000-0000007c”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 19 - failing through to other trunks”) in new stack
– Executing [[email protected]:4] Set(“SIP/1000-0000007c”, “CALLERID(number)=1000”) in new stack
– Executing [[email protected]:6] Macro(“SIP/1000-0000007c”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“SIP/1000-0000007c”, “”) in new stack
– Executing [[email protected]: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 [[email protected]: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 [[email protected]:4] Macro(“SIP/1000-0000007c”, “hangupcall”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/1000-0000007c”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]: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 [[email protected]:1] Hangup(“SIP/1000-0000007c”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/1000-0000007c’
localhostCLI>
Any Idea what is the problem and how to solve it?