Hi degsod,
thanks for the conf files, unfortunately they don’t make any difference.
I have tried making a call with “pri debug span 1” enabled and this is what happens
-- Executing Macro("SIP/4002-081e38f8", "dialout-trunk|1|905555111111||") in new stack
-- Executing Set("SIP/4002-081e38f8", "DIAL_TRUNK=1") in new stack
-- Executing Set("SIP/4002-081e38f8", "DIAL_NUMBER=905555111111") in new stack
-- Executing Set("SIP/4002-081e38f8", "ROUTE_PASSWD=") in new stack
-- Executing GotoIf("SIP/4002-081e38f8", "1?noauth") in new stack
-- Goto (macro-dialout-trunk,s,6)
-- Executing Set("SIP/4002-081e38f8", "GROUP()=OUT_1") in new stack
-- Executing Macro("SIP/4002-081e38f8", "user-callerid") in new stack
-- Executing GotoIf("SIP/4002-081e38f8", "0?report") in new stack
-- Executing GotoIf("SIP/4002-081e38f8", "0?start") in new stack
-- Executing Set("SIP/4002-081e38f8", "REALCALLERIDNUM=4002") in new stack
-- Executing NoOp("SIP/4002-081e38f8", "REALCALLERIDNUM is 4002") in new stack
-- Executing Set("SIP/4002-081e38f8", "AMPUSER=4002") in new stack
-- Executing Set("SIP/4002-081e38f8", "AMPUSERCIDNAME=Test User") in new stack
-- Executing GotoIf("SIP/4002-081e38f8", "0?report") in new stack
-- Executing Set("SIP/4002-081e38f8", "CALLERID(all)=Test User <4002>") in new stack
-- Executing NoOp("SIP/4002-081e38f8", "Using CallerID "Test User" <4002>") in new stack
-- Executing Macro("SIP/4002-081e38f8", "record-enable|4002|OUT") in new stack
-- Executing GotoIf("SIP/4002-081e38f8", "0 > 0?24") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing AGI("SIP/4002-081e38f8", "recordingcheck|20061020-095853|1161334732.4") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20061020-095853|1161334732.4 Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing NoOp(“SIP/4002-081e38f8”, “No recording needed”) in new stack
– Executing Macro(“SIP/4002-081e38f8”, “outbound-callerid|1”) in new stack
– Executing GotoIf(“SIP/4002-081e38f8”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing NoOp(“SIP/4002-081e38f8”, “REALCALLERIDNUM is 4002”) in new stack
– Executing Set(“SIP/4002-081e38f8”, “USEROUTCID=”) in new stack
– Executing Set(“SIP/4002-081e38f8”, “EMERGENCYCID=”) in new stack
– Executing Set(“SIP/4002-081e38f8”, “TRUNKOUTCID=05555222222”) in new stack
– Executing GotoIf(“SIP/4002-081e38f8”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,11)
– Executing GotoIf(“SIP/4002-081e38f8”, “0?usercid”) in new stack
– Executing Set(“SIP/4002-081e38f8”, “CALLERID(all)=05555222222”) in new stack
– Executing GotoIf(“SIP/4002-081e38f8”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,17)
– Executing NoOp(“SIP/4002-081e38f8”, “CallerID set to “” <05555222222>”) in new stack
– Executing GotoIf(“SIP/4002-081e38f8”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,12)
– Executing AGI(“SIP/4002-081e38f8”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
fixlocalprefix Could not parse /etc/asterisk/localprefixes.conf
– AGI Script fixlocalprefix completed, returning 0
– Executing Set(“SIP/4002-081e38f8”, “OUTNUM=905555111111”) in new stack
– Executing Set(“SIP/4002-081e38f8”, “custom=ZAP/g0”) in new stack
– Executing GotoIf(“SIP/4002-081e38f8”, “0?customtrunk”) in new stack
– Executing Dial(“SIP/4002-081e38f8”, “ZAP/g0/905555111111|120|r”) in new stack
– Making new call for cr 32772
– Requested transfer capability 0x00 - SPEECH
Protocol Discriminator Q.931 (8) len=46
Call Ref len= 2 (reference 4/0x4) (Originator)
Message type SETUP (5)
[04 03 80 90 a3]
Bearer Capability (len= 5) [ Ext 1 Q.931 Std 0 Info transfer capability Speech (0)
Ext 1 Trans mode/rate 64kbps, circuit-mode (16)
Ext 1 User information layer 1 A-Law (35)
[18 03 a9 83 81]
Channel ID (len= 5) [ Ext 1 IntID Implicit, PRI Spare 0, Exclusive Dchan 0
ChanSel Reserved
Ext 1 Coding 0 Number Specified Channel Type 3
Ext 1 Channel 1 ]
[6c 0d 21 80 30 31 37 35 33 38 32 38 39 30 31]
Calling Number (len=15) [ Ext 0 TON National Number (2) NPI ISDN/Telephony Numbering Plan (E.164/E.163) (1)
Presentation Presentation permitted, user number not screened (0) ‘05555222222’ ]
[70 0d 80 39 30 31 37 35 33 38 32 38 39 31 30]
Called Number (len=15) [ Ext 1 TON Unknown Number Type (0) NPI Unknown Number Plan (0) ‘905555111111’ ]
[a1]sk-slo*CLI>
Sending Complete (len= 1)
– Called g0/905555111111
< Protocol Discriminator Q.931 (8) len=10
< Call Ref len= 2 (reference 4/0x4) (Terminator)
< Message type CALL PROCEEDING (2)
< [18 03 a9 83 81]
< Channel ID (len= 5) [ Ext 1 IntID Implicit, PRI Spare 0, Exclusive Dchan 0
< ChanSel Reserved
< Ext 1 Coding 0 Number Specified Channel Type 3
< Ext 1 Channel 1 ]
– Processing IE 24 (cs0, Channel Identification)
– Zap/1-1 is proceeding passing it to SIP/4002-081e38f8
< Protocol Discriminator Q.931 (8) len=13
< Call Ref len= 2 (reference 4/0x4) (Terminator)
< Message type DISCONNECT (69)
< [08 02 80 9c]
< Cause (len= 4) [ Ext 1 Coding CCITT (ITU) standard (0) 0 0 Location User (0)
< Ext 1 Cause Invalid number format (28), class = Normal Event (1) ]
< [1e 02 80 88]
< Progress Indicator (len= 4) [ Ext 1 Coding CCITT (ITU) standard (0) 0 0 Location User (0)
< Ext 1 Progress Description Inband information or appropriate pattern now available. (8) ]
– Processing IE 8 (cs0, Cause)
– Processing IE 30 (cs0, Progress Indicator)
– Channel 0/1, span 1 got hangup request
NEW_HANGUP DEBUG Calling q931_hangup, ourstate Disconnect Indication, peerstate Disconnect Request
Protocol Discriminator Q.931 (8) len=9
Call Ref len= 2 (reference 4/0x4) (Originator)
Message type RELEASE (77)
[08 02 81 9c]I>
Cause (len= 4) [ Ext 1 Coding CCITT (ITU) standard (0) 0 0 Location Private network serving the local user (1)
Ext 1 Cause Invalid number format (28), class = Normal Event (1) ]
– Hungup ‘Zap/1-1’
== Everyone is busy/congested at this time (10/0/1)
– Executing Goto(“SIP/4002-081e38f8”, “s-CHANUNAVAIL|1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing NoOp(“SIP/4002-081e38f8”, “Dial failed due to CHANUNAVAIL”) in new stack
– Executing Macro(“SIP/4002-081e38f8”, “outisbusy|”) in new stack
– Executing Playback(“SIP/4002-081e38f8”, “all-circuits-busy-now|noanswer”) in new stack
– Playing ‘all-circuits-busy-now’ (language ‘en’)
< Protocol Discriminator Q.931 (8) len=5
< Call Ref len= 2 (reference 4/0x4) (Terminator)
< Message type RELEASE COMPLETE (90)
NEW_HANGUP DEBUG Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG Destroying the call, ourstate Null, peerstate Null
– Executing Playback(“SIP/4002-081e38f8”, “pls-try-call-later|noanswer”) in new stack
– Playing ‘pls-try-call-later’ (language ‘en’)
– Executing Macro(“SIP/4002-081e38f8”, “hangupcall”) in new stack
– Executing ResetCDR(“SIP/4002-081e38f8”, “w”) in new stack
– Executing NoCDR(“SIP/4002-081e38f8”, “”) in new stack
– Executing Wait(“SIP/4002-081e38f8”, “5”) in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘SIP/4002-081e38f8’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘SIP/4002-081e38f8’ in macro ‘outisbusy’
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘SIP/4002-081e38f8’
Any more ideas?
Regards,
Dave.