Integration with the Excel switch, using the phoenix cms

Hello,

I’m trying to integrate Asterisk with Excel switch.

The Excel Switch is connected to Carriers, by T1.

I installed a Digium Card TE410P. I configured 2 T1 trunks, connected to Excel.

I’m using a sipphone to connect to Asterisk (extension 999).

The Excel trunks are allow to receive calls, from Asterisk, with DNIS (trunk outbound id) 5555.

The sipphone will inform the ANI field and Destination Number.

Below, I demonstrate the occurrence of the error.

How can I setup the Asterisk to forward this information correctly to Excel ?

Best Regards,
Anderson.


The Excel trace:
2010/03/16 19:36:45.404 [0000000C] [851786] INFO: Next State <CMS_RELEASE_WAIT_A_STATE>
2010/03/16 19:36:45.404 [0000000C] [851786] INFO: Ending call
2010/03/16 19:36:45.404 [0000000C] [851786] DEBUG: ClearRouteStatusList 1
2010/03/16 19:37:05.948 [0000000E] [851787] NEW TRACE: Span 45, Channel 0, [color=#FF0000]Calling[999], Called[81803010xxxx][/color]2010/03/16 19:37:05.948 [0000000E] [851787] DEBUG: Check the routing details
2010/03/16 19:37:05.949 [0000000E] [851787] DEBUG: Send CallingPartyConnected Message
2010/03/16 19:37:05.949 [0000000E] [851787] 0x00 FE 9D 02 00 2E 00 2D 00 00 0C FF 4B 4B 9F DD E1 …-…KK…
2010/03/16 19:37:05.949 [0000000E] [851787] 0x10 30 06 03 39 39 39 0C 38 31 38 30 33 30 31 30 31 0…[color=#FF0000]999.818030101[/color]
2010/03/16 19:37:05.949 [0000000E] [851787] 0x20 32 33 30 00 02 30 30 01 32 02 30 30 00 00 [color=#FF0000]230[/color]…00.2.00…
2010/03/16 19:37:05.950 [0000000E] [851787] INFO: Next State <NEW_CALL_STATE>
2010/03/16 19:37:07.140 [00000012] [851787] DEBUG: Message Received From CCS:
2010/03/16 19:37:07.140 [00000012] [851787] 0x00 FE 97 07 00 0D 00 2D 00 00 0C FF 4B 00 …-…K.
2010/03/16 19:37:07.140 [00000012] [851787] DEBUG: Received CC Event <25,(DISCONNECTA)>
2010/03/16 19:37:07.141 [0000000E] [851787] DEBUG: Process event (25,DISCONNECTA)
2010/03/16 19:37:07.141 [0000000E] [851787] 0x00
2010/03/16 19:37:07.141 [0000000E] [851787] INFO: Process Event (25,DISCONNECTA), with Status (0,UNKNOWN_STATUS)
2010/03/16 19:37:07.141 [0000000E] [851787] INFO: Current State <NEW_CALL_STATE>
2010/03/16 19:37:07.141 [0000000E] [851787] DEBUG: NEW_CALL_STATE
2010/03/16 19:37:07.141 [0000000E] [851787] INFO: Event (25,DISCONNECTA) not handled in State <NEW_CALL_STATE>, Check DEFAULT
2010/03/16 19:37:07.141 [0000000E] [851787] DEBUG: DEFAULT_STATE
2010/03/16 19:37:07.141 [0000000E] [851787] INFO: CMS initiated RELEASE on A[45,0]
2010/03/16 19:37:07.141 [0000000E] [851787] INFO: Build ISDN DISCONNECT

Note:
-The field “Calling” is the equivalent to “ANI” field.

  • The “818030101230” is destination number.

Asterisk trace
voipCLI>
– Executing [818030101230@from-internal:1] Macro(“SIP/999-08578ae0”, “user-callerid|SKIPTTL|”) in new stack
– Executing [s@macro-user-callerid:1] NoOp(“SIP/999-08578ae0”, “user-callerid: device 999”) in new stack
– Executing [s@macro-user-callerid:2] Set(“SIP/999-08578ae0”, “AMPUSER=999”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“SIP/999-08578ae0”, “0?report”) in new stack
– Executing [s@macro-user-callerid:4] ExecIf(“SIP/999-08578ae0”, “1|Set|REALCALLERIDNUM=999”) in new stack
– Executing [s@macro-user-callerid:5] NoOp(“SIP/999-08578ae0”, “REALCALLERIDNUM is 999”) in new stack
– Executing [s@macro-user-callerid:6] Set(“SIP/999-08578ae0”, “AMPUSER=999”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/999-08578ae0”, “AMPUSERCIDNAME=Teste2”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“SIP/999-08578ae0”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“SIP/999-08578ae0”, “AMPUSERCID=999”) in new stack
– Executing [s@macro-user-callerid:10] Set(“SIP/999-08578ae0”, “CALLERID(all)=“Teste2” <999>”) in new stack
– Executing [s@macro-user-callerid:11] Set(“SIP/999-08578ae0”, “REALCALLERIDNUM=999”) in new stack
– Executing [s@macro-user-callerid:12] ExecIf(“SIP/999-08578ae0”, “0|Set|CHANNEL(language)=”) in new stack
– Executing [s@macro-user-callerid:13] NoOp(“SIP/999-08578ae0”, “TTL: ARG1: SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“SIP/999-08578ae0”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [s@macro-user-callerid:23] NoOp(“SIP/999-08578ae0”, “Using CallerID “Teste2” <999>”) in new stack
– Executing [818030101230@from-internal:2] Set(“SIP/999-08578ae0”, “_NODEST=”) in new stack
– Executing [818030101230@from-internal:3] Macro(“SIP/999-08578ae0”, “record-enable|999|OUT|”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/999-08578ae0”, “0?2:4”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“SIP/999-08578ae0”, “recordingcheck|20100316-200059|1268737259.34”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100316-200059|1268737259.34: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] NoOp(“SIP/999-08578ae0”, “No recording needed”) in new stack
– Executing [818030101230@from-internal:4] Macro(“SIP/999-08578ae0”, “dialout-trunk|2|81803010xxxx||”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/999-08578ae0”, “DIAL_TRUNK=2”) in new stack
– Executing [s@macro-dialout-trunk:2] ExecIf(“SIP/999-08578ae0”, “0|Authenticate|”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/999-08578ae0”, “0?disabletrunk|1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/999-08578ae0”, “DIAL_NUMBER=81803010xxxx”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/999-08578ae0”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/999-08578ae0”, “GROUP()=OUT_2”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/999-08578ae0”, “0?nomax”) in new stack
– Executing [s@macro-dialout-trunk:8] GotoIf(“SIP/999-08578ae0”, “0?chanfull”) in new stack
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/999-08578ae0”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/999-08578ae0”, “DIAL_TRUNK_OPTIONS=t”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/999-08578ae0”, “outbound-callerid|2”) in new stack
– Executing [s@macro-outbound-callerid:1] GotoIf(“SIP/999-08578ae0”, “1?start”) in new stack
– Goto (macro-outbound-callerid,s,3)
– Executing [s@macro-outbound-callerid:3] NoOp(“SIP/999-08578ae0”, “REALCALLERIDNUM is 999”) in new stack
– Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/999-08578ae0”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,9)
– Executing [s@macro-outbound-callerid:9] Set(“SIP/999-08578ae0”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:10] Set(“SIP/999-08578ae0”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:11] Set(“SIP/999-08578ae0”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:12] GotoIf(“SIP/999-08578ae0”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,16)
– Executing [s@macro-outbound-callerid:16] GotoIf(“SIP/999-08578ae0”, “1?usercid”) in new stack
– Goto (macro-outbound-callerid,s,18)
– Executing [s@macro-outbound-callerid:18] GotoIf(“SIP/999-08578ae0”, “1?report”) in new stack
– Goto (macro-outbound-callerid,s,22)
– Executing [s@macro-outbound-callerid:22] NoOp(“SIP/999-08578ae0”, “CallerID set to “Teste2” <999>”) in new stack
– Executing [s@macro-dialout-trunk:12] AGI(“SIP/999-08578ae0”, “fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern 55|55+XXXXXXXXXX
> fixlocalprefix: Using pattern 81|81+XXXXXXXXX
> fixlocalprefix: Using pattern 81|81+XXXXXXXXXX
== fixlocalprefix: Dialpattern 81|81+XXXXXXXXXX matched. 81803010xxxx -> 81803010xxxx
– AGI Script fixlocalprefix completed, returning 0
– Executing [s@macro-dialout-trunk:13] Set(“SIP/999-08578ae0”, “OUTNUM=81803010xxxx”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/999-08578ae0”, “custom=ZAP/g1”) in new stack
– Executing [s@macro-dialout-trunk:15] GotoIf(“SIP/999-08578ae0”, “1?gocall”) in new stack
– Goto (macro-dialout-trunk,s,17)
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/999-08578ae0”, “dialout-trunk-predial-hook|”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/999-08578ae0”, “0?bypass|1”) in new stack
– Executing [s@macro-dialout-trunk:19] GotoIf(“SIP/999-08578ae0”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:20] Dial(“SIP/999-08578ae0”, “ZAP/g1/81803010xxxx|300|t”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called g1/818030101230
– Zap/1-1 is proceeding passing it to SIP/999-08578ae0
– Channel 0/1, span 1 got hangup request, cause 16
– Hungup ‘Zap/1-1’
– No one is available to answer at this time (1:0/0/0)
– Executing [s@macro-dialout-trunk:21] Goto(“SIP/999-08578ae0”, “s-NOANSWER|1”) in new stack
– Goto (macro-dialout-trunk,s-NOANSWER,1)
– Executing [s-NOANSWER@macro-dialout-trunk:1] NoOp(“SIP/999-08578ae0”, “Dial failed due to trunk reporting NOANSWER - giving up”) in new stack
– Executing [s-NOANSWER@macro-dialout-trunk:2] PlayTones(“SIP/999-08578ae0”, “congestion”) in new stack
– Executing [s-NOANSWER@macro-dialout-trunk:3] Congestion(“SIP/999-08578ae0”, “20”) in new stack
== Spawn extension (macro-dialout-trunk, s-NOANSWER, 3) exited non-zero on ‘SIP/999-08578ae0’ in macro ‘dialout-trunk’
== Spawn extension (macro-dialout-trunk, s-NOANSWER, 3) exited non-zero on ‘SIP/999-08578ae0’
– Executing [h@macro-dialout-trunk:1] Macro(“SIP/999-08578ae0”, “hangupcall|”) in new stack
– Executing [s@macro-hangupcall:1] ResetCDR(“SIP/999-08578ae0”, “w”) in new stack
– Executing [s@macro-hangupcall:2] NoCDR(“SIP/999-08578ae0”, “”) in new stack
– Executing [s@macro-hangupcall:3] GotoIf(“SIP/999-08578ae0”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,6)
– Executing [s@macro-hangupcall:6] GotoIf(“SIP/999-08578ae0”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] GotoIf(“SIP/999-08578ae0”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,11)
– Executing [s@macro-hangupcall:11] Hangup(“SIP/999-08578ae0”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on ‘SIP/999-08578ae0’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/999-08578ae0’
voip
CLI>

I need to similar trace on Excel Switch:

2010/03/16 19:36:45.404 [0000000C] [851786] INFO: Next State <CMS_RELEASE_WAIT_A_STATE>
2010/03/16 19:36:45.404 [0000000C] [851786] INFO: Ending call
2010/03/16 19:36:45.404 [0000000C] [851786] DEBUG: ClearRouteStatusList 1
2010/03/16 19:37:05.948 [0000000E] [851787] NEW TRACE: Span 45, Channel 0, [color=#FF0000]Calling[0801234xxxx], Called[81803010xxxx][/color]2010/03/16 19:37:05.948 [0000000E] [851787] DEBUG: Check the routing details
2010/03/16 19:37:05.949 [0000000E] [851787] DEBUG: Send CallingPartyConnected Message
2010/03/16 19:37:05.949 [0000000E] [851787] 0x00 FE 9D 02 00 2E 00 2D 00 00 0C FF 4B 4B 9F DD E1 …-…KK…
2010/03/16 19:37:05.949 [0000000E] [851787] 0x10 30 06 03 39 39 39 0C 38 31 38 30 33 30 31 30 31 0…[color=#FF0000]0801234xxxx.[/color][color=#4000FF]5555[/color][color=#FF0000]81803010x[/color]
2010/03/16 19:37:05.949 [0000000E] [851787] 0x20 32 33 30 00 02 30 30 01 32 02 30 30 00 00 [color=#FF0000]xxx[/color]…00.2.00…
2010/03/16 19:37:05.950 [0000000E] [851787] INFO: Next State <NEW_CALL_STATE>