cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1955
Views
0
Helpful
7
Replies

CME TCL script for outbound call

alex goshtaei
Level 1
Level 1

Hi All,

is there any TCL script available to make outbound call by CME? for example user from outside call specific number in CME, then CME asks a password or pin, after user enter the password, he would be able to make a outbound call through CME. In this case, our employee can make a outbound call to international, and our company is getting charged not employee.

thanks

Alex

7 Replies 7

Michael Owuor
Cisco Employee
Cisco Employee

Alex,

The script is attached. Keep in mind that it is not supported by TAC.

Copy the files onto flash.

Enter the following commands in configuration mode, to load and activate the script:

!

application

service acctfixedpin flash:acctfixedpin.tcl

param pin-len 5

param uid-len

!

dial-peer voice x voip

service acctfixedpin

Create usernames for authentication. The usernames represent the pin that the caller dials to be authenticated. Create multiple usernames as needed:

username 12345 password 0 123456

username 54321 password 0 123456

aaa new-model

aaa authentication login h323 local

aaa authorization exec h323 local

aaa authorization network h323 local

On the dial-peer routing the international calls, add the command 'service fac'

Hope this helps.

Regards,

Michael.

thank you very much Micheal, let me try your solution to our CME. is it working on UC500 as well?

thanks for reply,

is it working for outside caller as well or only from IP phone? for example we have employee outside our corporation, they need to call international number. is that possible for them to dial specific number to reach to CME, then dial their password, and make international call?

thanks

Hi michael ,

i tried the FAC , but there is no prompts, the call is going directly without authentication

attached is my config

thanks

edwin

Hi ,

Thanks for uploading script and procedure.

I have uploaded TCL script into router, it is asking me to give pin after that nothing happens...if i am trying to make outside calls , it doesnt happens.

dial-peer voice 3 voip

description **incoming - Remote Dial-in  **

service acctfixedpin

destination-pattern .T

session target ipv4:10.228.131.5

incoming called-number .T

dtmf-relay h245-alphanumeric

codec g711ulaw

no vad

AAUSMELVG01#    debug voip application digitcollect

voip application digit collect debugging is on

AAUSMELVG01#

Aug 24 23:29:01.187: //41//Digi:/C_DigitCollect_Start: Leg=41, Dialplan=True, Diaplanterm=False, DigitReport=False, DigitConsume=False IgnoreInitialKey=False, IgnoreDTMFacceptINFO=True, Abortkey=, Terminationkey=#, Numpatterns=0, Maxdigits=0, Mindigits=0, Interruptprompt=False, InterTimeout=-1000, Initialtimeout=-1000, Mask=0 Hotword=0

Aug 24 23:29:01.187: //-1//Digi:/AFW_DigitCollect_New: 

Aug 24 23:29:01.187: //-1//Digi:HN003E6688:/AFW_DigitCollect_New: DialPlan=TRUE AbortKey= TermKey=# NumPatts=0

              Enable=FALSE Consume=FALSE InterruptPrompt=FALSE minDigits=0 maxDigits=0 DialPlanTerm=FALSE hotword=0

Aug 24 23:29:01.187: //41/51CB00AF8032/Digi:/DigitCollectStart_UpdateStats: 

Aug 24 23:29:01.187: //41//Digi:/DigitCollect_MLPPTuning: 

Aug 24 23:29:01.187: //41//Digi:/DigitCollect_MLPPTuning: Precednece Digit Collect not enabled

Aug 24 23:29:01.187: //41//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:01.187: //41//Digi:/act_DCRunning_RDone: id=41 Enable succeeded.enable=0 matchDialplan=1 numPatterns=0matchDialplanTerm=0

Aug 24 23:29:02.111: //41//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:02.111: //41//Digi:/act_DCRunning_Digit: : pLeg 41 Digit 3 Tone Mode 0

Aug 24 23:29:02.111: //41//Digi:/DigitCollect_TreatDigit: 

Aug 24 23:29:02.111: //41//Digi:/DigitCollect_DialPlanMatch: pattern offset=0, digits=3

Aug 24 23:29:02.111: //41//Digi:/DigitCollect_DialPlanMatch: src carrier id:, tgt carrier id:

Aug 24 23:29:02.111: //41//Digi:/DigitCollect_DialPlanMatch: Match single infotype

Aug 24 23:29:02.311: //41//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:02.311: //41//Digi:/act_DCRunning_Digit: : pLeg 41 Digit 9 Tone Mode 0

Aug 24 23:29:02.311: //41//Digi:/DigitCollect_TreatDigit: 

Aug 24 23:29:02.311: //41//Digi:/DigitCollect_DialPlanMatch: pattern offset=0, digits=39

Aug 24 23:29:02.311: //41//Digi:/DigitCollect_DialPlanMatch: src carrier id:, tgt carrier id:

Aug 24 23:29:02.311: //41//Digi:/DigitCollect_DialPlanMatch: Match single infotype

Aug 24 23:29:02.511: //41//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:02.511: //41//Digi:/act_DCRunning_Digit: : pLeg 41 Digit 0 Tone Mode 0

Aug 24 23:29:02.511: //41//Digi:/DigitCollect_TreatDigit: 

Aug 24 23:29:02.511: //41//Digi:/DigitCollect_DialPlanMatch: pattern offset=0, digits=390

Aug 24 23:29:02.511: //41//Digi:/DigitCollect_DialPlanMatch: src carrier id:, tgt carrier id:

Aug 24 23:29:02.511: //41//Digi:/DigitCollect_DialPlanMatch: Match single infotype

Aug 24 23:29:02.711: //41//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:02.711: //41//Digi:/act_DCRunning_Digit: : pLeg 41 Digit 2 Tone Mode 0

Aug 24 23:29:02.711: //41//Digi:/DigitCollect_TreatDigit: 

Aug 24 23:29:02.711: //41//Digi:/DigitCollect_DialPlanMatch: pattern offset=0, digits=3902

Aug 24 23:29:02.711: //41//Digi:/DigitCollect_DialPlanMatch: src carrier id:, tgt carrier id:

Aug 24 23:29:02.711: //41//Digi:/DigitCollect_DialPlanMatch: Match single infotype

Aug 24 23:29:02.711: //41//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:02.711: //41//Digi:/act_DCRunning_RDone: id=41 Reporting disabled.

Aug 24 23:29:02.711: //-1//Digi:/DigitCollect_Complete: DC_MATCHED_DIALPLAN. Digits=3902

Aug 24 23:29:02.711: //41//Digi:/AFW_M_DigitCollect_EventPreProcess: 

Aug 24 23:29:02.711: //41//Digi:/DigitCollectEnd_UpdateStats: 

Aug 24 23:29:02.715: //43//Digi:/tcl_LegDigitCollectObjCmd: collectdigits leg_incoming param

Aug 24 23:29:02.715: //43//Digi:/C_DigitCollect_Start: Leg=43, Dialplan=False, Diaplanterm=False, DigitReport=False, DigitConsume=False IgnoreInitialKey=False, IgnoreDTMFacceptINFO=False, Abortkey=*, Terminationkey=#, Numpatterns=0, Maxdigits=20, Mindigits=0, Interruptprompt=True, InterTimeout=-1000, Initialtimeout=10000, Mask=0 Hotword=0

Aug 24 23:29:02.715: //-1//Digi:/AFW_DigitCollect_New: 

Aug 24 23:29:02.715: //-1//Digi:HN003E6C80:/AFW_DigitCollect_New: DialPlan=FALSE AbortKey=* TermKey=# NumPatts=0

              Enable=FALSE Consume=FALSE InterruptPrompt=TRUE minDigits=0 maxDigits=20 DialPlanTerm=FALSE hotword=0

Aug 24 23:29:02.715: //43/51CB00AF8032/Digi:/DigitCollectStart_UpdateStats: 

Aug 24 23:29:02.715: //43//Digi:/DigitCollect_MLPPTuning: 

Aug 24 23:29:02.715: //43//Digi:/DigitCollect_MLPPTuning: Precednece Digit Collect not enabled

Aug 24 23:29:02.715: //43//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:02.715: //43//Digi:/act_DCRunning_RDone: id=43 Enable succeeded.enable=0 matchDialplan=0 numPatterns=0matchDialplanTerm=0

Aug 24 23:29:12.715: //43//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:15.723: //43//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:15.723: //43//Digi:/act_DCRunning_Digit: : pLeg 43 Digit T Tone Mode -1

Aug 24 23:29:15.723: //43//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:15.723: //43//Digi:/act_DCRunning_RDone: id=43 Reporting disabled.

Aug 24 23:29:15.723: //-1//Digi:/DigitCollect_Complete: DC_TIMEOUT. Digits=

Aug 24 23:29:15.723: //43//Digi:/AFW_M_DigitCollect_EventPreProcess: 

Aug 24 23:29:15.723: //43//Digi:/DigitCollectEnd_UpdateStats: 

Aug 24 23:29:15.723: //43//Digi:/tcl_LegDigitCollectObjCmd: collectdigits leg_incoming param

Aug 24 23:29:15.723: //43//Digi:/C_DigitCollect_Start: Leg=43, Dialplan=False, Diaplanterm=False, DigitReport=False, DigitConsume=False IgnoreInitialKey=False, IgnoreDTMFacceptINFO=False, Abortkey=*, Terminationkey=#, Numpatterns=0, Maxdigits=20, Mindigits=0, Interruptprompt=True, InterTimeout=-1000, Initialtimeout=10000, Mask=0 Hotword=0

Aug 24 23:29:15.723: //-1//Digi:/AFW_DigitCollect_New: 

Aug 24 23:29:15.723: //-1//Digi:HN003E9F50:/AFW_DigitCollect_New: DialPlan=FALSE AbortKey=* TermKey=# NumPatts=0

              Enable=FALSE Consume=FALSE InterruptPrompt=TRUE minDigits=0 maxDigits=20 DialPlanTerm=FALSE hotword=0

Aug 24 23:29:15.723: //43/51CB00AF8032/Digi:/DigitCollectStart_UpdateStats: 

Aug 24 23:29:15.723: //43//Digi:/DigitCollect_MLPPTuning: 

Aug 24 23:29:15.723: //43//Digi:/DigitCollect_MLPPTuning: Precednece Digit Collect not enabled

Aug 24 23:29:15.723: //43//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:15.723: //43//Digi:/act_DCRunning_RDone: id=43 Enable succeeded.enable=0 matchDialplan=0 numPatterns=0matchDialplanTerm=0

Aug 24 23:29:17.331: //43//Digi:/AFW_M_DigitCollect_Action: 

Aug 24 23:29:17.331: //43//Digi:/act_DCRunning_Disconnected: 

Aug 24 23:29:17.331: //-1//Digi:/DigitCollect_Complete: DC_DISCONNECTED. Digits=

Aug 24 23:29:17.331: //43//Digi:/AFW_M_DigitCollect_EventPreProcess: 

Aug 24 23:29:17.331: //43//Digi:/DigitCollectEnd_UpdateStats: 

DIGIT COLLECT NOT HAPPENING...it keeps on saying ENTER YOUR PIN

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: