Hi, Leonidf
Thank you for the response and notes on the changes. I have commented out the necessary lines you suggested and tried again but unfortunately it still is not working.
I have run the ISDN trace as you suggest and the results are below.
Many Thanks for your help so far…
localhostCLI> pri set debug 1 span 1
Enabled debugging on span 1
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [07824880195@from-internal:1] Macro(“SIP/500-00000002”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/500-00000002”, “AMPUSER=500”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/500-00000002”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/500-00000002”, “1?Set(REALCALLERIDNUM=500)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/500-00000002”, “AMPUSER=500”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/500-00000002”, “AMPUSERCIDNAME=Rod”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/500-00000002”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/500-00000002”, “AMPUSERCID=500”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/500-00000002”, “CALLERID(all)=“Rod” <500>”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/500-00000002”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:10] ExecIf(“SIP/500-00000002”, “1?Set(GROUP(concurrency_limit)=500)”) in new stack
– Executing [s@macro-user-callerid:11] GosubIf(“SIP/500-00000002”, “7?sub-ccss,s,1(from-internal,07824880195)”) in new stack
– Executing [s@sub-ccss:1] ExecIf(“SIP/500-00000002”, “0?Return()”) in new stack
– Executing [s@sub-ccss:2] Set(“SIP/500-00000002”, “CCSS_SETUP=TRUE”) in new stack
– Executing [s@sub-ccss:3] GosubIf(“SIP/500-00000002”, “0?monitor_config,1(from-internal,07824880195):monitor_default,1(from-internal,07824880195)”) in new stack
– Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/500-00000002”, “0?is_exten”) in new stack
– Executing [monitor_default@sub-ccss:2] StackPop(“SIP/500-00000002”, “”) in new stack
– Executing [monitor_default@sub-ccss:3] Return(“SIP/500-00000002”, “FALSE”) in new stack
– Executing [s@macro-user-callerid:12] ExecIf(“SIP/500-00000002”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/500-00000002”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [s@macro-user-callerid:26] Set(“SIP/500-00000002”, “CALLERID(number)=500”) in new stack
– Executing [s@macro-user-callerid:27] Set(“SIP/500-00000002”, “CALLERID(name)=Rod”) in new stack
– Executing [s@macro-user-callerid:28] Set(“SIP/500-00000002”, “CHANNEL(language)=en”) in new stack
– Executing [07824880195@from-internal:2] Set(“SIP/500-00000002”, “MOHCLASS=default”) in new stack
– Executing [07824880195@from-internal:3] Set(“SIP/500-00000002”, “_NODEST=”) in new stack
– Executing [07824880195@from-internal:4] Gosub(“SIP/500-00000002”, “sub-record-check,s,1(out,07824880195,)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/500-00000002”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [s@sub-record-check:6] Set(“SIP/500-00000002”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:7] GotoIf(“SIP/500-00000002”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] ExecIf(“SIP/500-00000002”, “0?Return()”) in new stack
– Executing [s@sub-record-check:11] GotoIf(“SIP/500-00000002”, “0?out,1”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/500-00000002”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/500-00000002”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/500-00000002”, “NOW=1367826794”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/500-00000002”, “__DAY=06”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/500-00000002”, “__MONTH=05”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/500-00000002”, “__YEAR=2013”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/500-00000002”, “__TIMESTR=20130506-075314”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/500-00000002”, “__FROMEXTEN=500”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/500-00000002”, “__CALLFILENAME=out-07824880195-500-20130506-075314-1367826794.4”) in new stack
– Executing [s@sub-record-check:21] Goto(“SIP/500-00000002”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“SIP/500-00000002”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“SIP/500-00000002”, “0?record,1(exten,07824880195,500)”) in new stack
– Executing [out@sub-record-check:3] Return(“SIP/500-00000002”, “”) in new stack
– Executing [07824880195@from-internal:5] Macro(“SIP/500-00000002”, “dialout-trunk,2,07824880195,”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/500-00000002”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/500-00000002”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/500-00000002”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/500-00000002”, “DIAL_NUMBER=07824880195”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/500-00000002”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/500-00000002”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/500-00000002”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/500-00000002”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/500-00000002”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/500-00000002”, “outbound-callerid,2”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/500-00000002”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/500-00000002”, “0?Set(REALCALLERIDNUM=500)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/500-00000002”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/500-00000002”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/500-00000002”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/500-00000002”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/500-00000002”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/500-00000002”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/500-00000002”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/500-00000002”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/500-00000002”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/500-00000002”, “0?sub-flp-2,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/500-00000002”, “OUTNUM=07824880195”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/500-00000002”, “custom=DAHDI/g0”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/500-00000002”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/500-00000002”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/500-00000002”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/500-00000002”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/500-00000002”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/500-00000002”, “1?Set(CONNECTEDLINE(num,i)=07824880195)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/500-00000002”, “1?Set(CONNECTEDLINE(name,i)=CID:500)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/500-00000002”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:22] Dial(“SIP/500-00000002”, “DAHDI/g0/07824880195,300,”) in new stack
PRI Span: 1 – Making new call for cref 32771
– Requested transfer capability: 0x00 - SPEECH
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=34
PRI Span: 1 > TEI=0 Call Ref: len= 1 (reference 3/0x3) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 Changing from state 1(TEI unassigned) to 3(Establish awaiting TEI)
PRI Span: 1 Sending TEI management message 1(TEI Identity Request), TEI=127
PRI Span: 1 TEI=0 Just queued I-frame since in state 3(Establish awaiting TEI)
PRI Span: 1 q931.c:6036 q931_setup: Call 32771 enters state 1 (Call Initiated). Hold state: Idle
– Called DAHDI/g0/07824880195
PRI Span: 1 T303 timed out. cref:32771
PRI Span: 1
PRI Span: 1 > DL-DATA request
PRI Span: 1 > Protocol Discriminator: Q.931 (8) len=34
PRI Span: 1 > TEI=0 Call Ref: len= 1 (reference 3/0x3) (Sent from originator)
PRI Span: 1 > Message Type: SETUP (5)
PRI Span: 1 TEI=0 Just queued I-frame since in state 3(Establish awaiting TEI)
PRI Span: 1 T303 timed out. cref:32771
PRI Span: 1 q931.c:5925 t303_expiry: Call 32771 enters state 0 (Null). Hold state: Idle
PRI Span: 1 Fake clearing. cref:32771
PRI Span: 1 q931.c:9219 pri_internal_clear: alive 1, hangupack 1
Span 1: Processing event PRI_EVENT_HANGUP
– Span 1: Channel 0/1 got hangup, cause 18
PRI Span: 1 q931.c:6837 q931_hangup: Hangup other cref:32771
PRI Span: 1 q931.c:6594 __q931_hangup: ourstate Null, peerstate Null, hold-state Idle
PRI Span: 1 Destroying call 0xb730f480, ourstate Null, peerstate Null, hold-state Idle
– Hungup ‘DAHDI/i1/07824880195-3’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:23] NoOp(“SIP/500-00000002”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 18”) in new stack
– Executing [s@macro-dialout-trunk:24] Goto(“SIP/500-00000002”, “s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“SIP/500-00000002”, “RC=18”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“SIP/500-00000002”, “18,1”) in new stack
– Goto (macro-dialout-trunk,18,1)
– Executing [18@macro-dialout-trunk:1] Goto(“SIP/500-00000002”, “s-NOANSWER,1”) in new stack
– Goto (macro-dialout-trunk,s-NOANSWER,1)
– Executing [s-NOANSWER@macro-dialout-trunk:1] NoOp(“SIP/500-00000002”, “Dial failed due to trunk reporting NOANSWER - giving up”) in new stack
– Executing [s-NOANSWER@macro-dialout-trunk:2] Progress(“SIP/500-00000002”, “”) in new stack
– Executing [s-NOANSWER@macro-dialout-trunk:3] Playback(“SIP/500-00000002”, “number-not-answering,noanswer”) in new stack
– <SIP/500-00000002> Playing ‘number-not-answering.ulaw’ (language ‘en’)
– Executing [s-NOANSWER@macro-dialout-trunk:4] Congestion(“SIP/500-00000002”, “20”) in new stack
[2013-05-06 07:53:23] WARNING[1928]: channel.c:4747 ast_prod: Prodding channel ‘SIP/500-00000002’ failed
== Spawn extension (macro-dialout-trunk, s-NOANSWER, 4) exited non-zero on ‘SIP/500-00000002’ in macro ‘dialout-trunk’
== Spawn extension (from-internal, 07824880195, 5) exited non-zero on ‘SIP/500-00000002’
– Executing [h@from-internal:1] Hangup(“SIP/500-00000002”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/500-00000002’
PRI Span: 1 Sending TEI management message 1(TEI Identity Request), TEI=127
localhostCLI>