Collect digits Error

Version 1
    This document was generated from CDN thread

    Created by: Jean Lofrano on 29-08-2013 09:34:43 AM
    Hey team,

    My TCL script is working properly, but I have been trying to send digit "1" for router and I receive a error message.

    I ´m not able to collect the digits because I have the following error:

    Aug 29 14:06:52.971: //51//Digi:/tcl_LegDigitCollectObjCmd: collectdigits leg_incoming Question1Param
    Aug 29 14:06:52.971: //51//Digi:/C_DigitCollect_Start: Leg=51, Dialplan=False, Diaplanterm=False, DigitReport=False, DigitConsume=False IgnoreInitialKey=False, IgnoreDTMFacceptINFO=False, Abortkey=, Terminationkey=, Numpatterns=0, Maxdigits=1, Mindigits=0, Interruptprompt=True, InterTimeout=-1000, Initialtimeout=-1000, Mask=0 Hotword=0
    Aug 29 14:06:52.971: //-1//Digi:/AFW_DigitCollect_New:
    Aug 29 14:06:52.971: //-1//Digi:HN001C8A64:/AFW_DigitCollect_New: DialPlan=FALSE AbortKey= TermKey= NumPatts=0
                  Enable=FALSE Consume=FALSE InterruptPrompt=TRUE minDigits=0 maxDigits=1 DialPlanTerm=FALSE hotword=0
    Aug 29 14:06:52.971: //51/0F1F2882802F/Digi:/DigitCollectStart_UpdateStats:
    Aug 29 14:06:52.971: //51//Digi:/DigitCollect_MLPPTuning:
    Aug 29 14:06:52.971: //51//Digi:/DigitCollect_MLPPTuning: Precednece Digit Collect not enabled
    Aug 29 14:06:52.971: //51//TCL :/tcl_PutsObjCmd: IT7: collected question 1
    Aug 29 14:06:52.971:
    Aug 29 14:06:52.971: //51//Digi:/AFW_M_DigitCollect_Action:
    Aug 29 14:06:52.971: //51//Digi:/act_DCRunning_RDone: id=51 Enable succeeded.enable=0 matchDialplan=0 numPatterns=0matchDialplanTerm=0
    Aug 29 14:06:59.671: //51//Digi:/AFW_M_DigitCollect_Action:
    Aug 29 14:06:59.671: //51//Digi:/DigitCollect_ActiveAction: PassingThrough
    Aug 29 14:06:59.675: //51//Digi:/AFW_M_DigitCollect_Action:
    Aug 29 14:06:59.675: //51//Digi:/DigitCollect_ActiveAction: PassingThrough
    Aug 29 14:06:59.755: //51//Digi:/AFW_M_DigitCollect_Action:
    Aug 29 14:06:59.755: //51//Digi:/act_DCRunning_Disconnected:
    Aug 29 14:06:59.755: //-1//Digi:/DigitCollect_Complete: DC_DISCONNECTED. Digits=
    Aug 29 14:06:59.755: //51//TCL :/tcl_PutsObjCmd: IT7: Call Disconnected
    Aug 29 14:06:59.755:
    Aug 29 14:06:59.755: //51//Digi:/AFW_M_DigitCollect_EventPreProcess:
    Aug 29 14:06:59.755: //51//Digi:/DigitCollectEnd_UpdateStats:


    My script is:

    proc ActionPlayQuestion1 { } {
        
        global counter

        set counter 0

       set Question1Param(interruptPrompt) true
       set Question1Param(terminationKey) #
       set Question1Param(enableReporting) true
       set Question1Param(maxDigits) 1
       set Question1Param(dialPlan) true
       set Question1Pattern(1) "1"
       set Question1Pattern(2) "2"
       set Question1Pattern(3) "3"
        
        puts "IT7: playing question 1"

        media play leg_incoming "flash:/opcoes.wav"

        puts "IT7: played question 1"

        fsm setstate COLLECTEDQUESTION1

    }

    proc ActionCollectQuestion1 { } {
        puts "IT7: collecting question 1"

        set Question1Param(interruptPrompt) true
        set Question1Param(maxDigits) 1
        set Question1Pattern(1) "1"
        set Question1Pattern(2) "2"
        set Question1Pattern(3) "3"

        leg collectdigits leg_incoming Question1Param
        
        fsm setstate COLLECTEDTEST

        puts "IT7: collected question 1"
    }

    Can you help me please?

    thanks,

    Subject: RE: Collect digits Error
    Replied by: Jean Lofrano on 29-08-2013 10:24:27 AM
    Yes, I have been using voip configuration because there is a sip trunk between cisco router and another call control Alcatel Lucent. 

    voice service voip
     allow-connections sip to sip
     no supplementary-service sip moved-temporarily
     no supplementary-service sip refer
     fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
     sip
      registrar server
    !

    dial-peer voice 1 voip
     description Forward to ServiceDesk
     preference 1
     destination-pattern 9850
     session protocol sipv2
     session target ipv4:172.26.0.25
     voice-class sip dtmf-relay force rtp-nte
     dtmf-relay rtp-nte
     codec g711alaw
     fax-relay ecm disable
     fax rate 9600
     no vad
    !
    dial-peer voice 100 mmoip
     service uraparanabanaco
     destination-pattern 1000
    !
    dial-peer voice 101 voip
     service uraparanabanaco
     incoming called-number 1000
     dtmf-relay rtp-nte
     codec g711alaw

    Subject: Re: New Message from Jean Lofrano in Voice Gateway API (VGAPI) - TCL-API: C
    Replied by: LEON MCCALLA on 29-08-2013 10:13:15 AM
    If this is a voip call you must have DTMF relay enabled and successfully negotiated.

    Leon

    From: Cisco Developer Community Forums
    Sent: Thursday, August 29, 2013 10:34 AM
    To: cdicuser@developer.cisco.com
    Subject: New Message from Jean Lofrano in Voice Gateway API (VGAPI) - TCL-API: Collect digits Error

    Jean Lofrano has created a new message in the forum "TCL-API": -------------------------------------------------------------- Hey team,

    My TCL script is working properly, but I have been trying to send digit "1" for router and I receive a error message.

    I ´m not able to collect the digits because I have the following error:

    Aug 29 14:06:52.971: //51//Digi:/tcl_LegDigitCollectObjCmd: collectdigits leg_incoming Question1Param
    Aug 29 14:06:52.971: //51//Digi:/C_DigitCollect_Start: Leg=51, Dialplan=False, Diaplanterm=False, DigitReport=False, DigitConsume=False IgnoreInitialKey=False, IgnoreDTMFacceptINFO=False, Abortkey=, Terminationkey=, Numpatterns=0, Maxdigits=1, Mindigits=0, Interruptprompt=True, InterTimeout=-1000, Initialtimeout=-1000, Mask=0 Hotword=0
    Aug 29 14:06:52.971: //-1//Digi:/AFW_DigitCollect_New:
    Aug 29 14:06:52.971: //-1//Digi:HN001C8A64:/AFW_DigitCollect_New: DialPlan=FALSE AbortKey= TermKey= NumPatts=0
                  Enable=FALSE Consume=FALSE InterruptPrompt=TRUE minDigits=0 maxDigits=1 DialPlanTerm=FALSE hotword=0
    Aug 29 14:06:52.971: //51/0F1F2882802F/Digi:/DigitCollectStart_UpdateStats:
    Aug 29 14:06:52.971: //51//Digi:/DigitCollect_MLPPTuning:
    Aug 29 14:06:52.971: //51//Digi:/DigitCollect_MLPPTuning: Precednece Digit Collect not enabled
    Aug 29 14:06:52.971: //51//TCL :/tcl_PutsObjCmd: IT7: collected question 1
    Aug 29 14:06:52.971:
    Aug 29 14:06:52.971: //51//Digi:/AFW_M_DigitCollect_Action:
    Aug 29 14:06:52.971: //51//Digi:/act_DCRunning_RDone: id=51 Enable succeeded.enable=0 matchDialplan=0 numPatterns=0matchDialplanTerm=0
    Aug 29 14:06:59.671: //51//Digi:/AFW_M_DigitCollect_Action:
    Aug 29 14:06:59.671: //51//Digi:/DigitCollect_ActiveAction: PassingThrough
    Aug 29 14:06:59.675: //51//Digi:/AFW_M_DigitCollect_Action:
    Aug 29 14:06:59.675: //51//Digi:/DigitCollect_ActiveAction: PassingThrough
    Aug 29 14:06:59.755: //51//Digi:/AFW_M_DigitCollect_Action:
    Aug 29 14:06:59.755: //51//Digi:/act_DCRunning_Disconnected:
    Aug 29 14:06:59.755: //-1//Digi:/DigitCollect_Complete: DC_DISCONNECTED. Digits=
    Aug 29 14:06:59.755: //51//TCL :/tcl_PutsObjCmd: IT7: Call Disconnected
    Aug 29 14:06:59.755:
    Aug 29 14:06:59.755: //51//Digi:/AFW_M_DigitCollect_EventPreProcess:
    Aug 29 14:06:59.755: //51//Digi:/DigitCollectEnd_UpdateStats:


    My script is:

    proc ActionPlayQuestion1 { } {
       
        global counter

        set counter 0

       set Question1Param(interruptPrompt) true
       set Question1Param(terminationKey) #
       set Question1Param(enableReporting) true
       set Question1Param(maxDigits) 1
       set Question1Param(dialPlan) true
       set Question1Pattern(1) "1"
       set Question1Pattern(2) "2"
       set Question1Pattern(3) "3"
       
        puts "IT7: playing question 1"

        media play leg_incoming "flash:/opcoes.wav"

        puts "IT7: played question 1"

        fsm setstate COLLECTEDQUESTION1

    }

    proc ActionCollectQuestion1 { } {
        puts "IT7: collecting question 1"

        set Question1Param(interruptPrompt) true
        set Question1Param(maxDigits) 1
        set Question1Pattern(1) "1"
        set Question1Pattern(2) "2"
        set Question1Pattern(3) "3"

        leg collectdigits leg_incoming Question1Param
       
        fsm setstate COLLECTEDTEST

        puts "IT7: collected question 1"
    }

    Can you help me please?

    thanks,
    --
    To respond to this post, please click the following link: http://developer.cisco.com/web/vgapi/forums/-/message_boards/view_message/18766744 or simply reply to this email.

    Subject: RE: Collect digits Error
    Replied by: Geevarghese Cheria on 30-08-2013 05:11:37 AM
    Hi Jean,

      Can you please try "dtmf-relay rtp-nte digit-drop h245-alphanumeric" under dial-peer 101

    Thanks and Regards,
    Geevarghese