UC500 IVR TCL Script

Answered Question
May 29th, 2009
User Badges:

HI,

I have a UC500 with 2 analog lines connected to the FXO ports, also I have a VoIP service with the corresponding dial-peer for International calls. In addition to that I have a device that has a GSM SIM chip connected to another FXO port (this is for having a cell phone connected to the UC500).


What I need to do is the following:


1.- be able to make a call to the number of the GSM SIM chip.

2.- when the numver answer do either of two: a) to give a dial tone so I can dial a destination number or, b) an IVR script to prompt me for a destination number to call.


3.- when either of the above is performed, then dial the number via the appropiate configured dial-peer.


I have tried load ing the ivr script and tested it, but even when I call the number, I see an error saying that it cannot find the script to be executed. I know the script is there but dont work.


Any guidelines on how can I accomplishe this ?


Any config example will be helpful.


Thanks

Correct Answer by paolo bevilacqua about 7 years 10 months ago

With a direct dialtone, you have no control about who call where.

With a script, you could use a PIN, etc.


Please remember to rate useful posts with the scrollbox below.



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
paolo bevilacqua Fri, 05/29/2009 - 13:50
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

1. dial the GSM number

2. by default, the fxo port gives dialtone

3. the number entered will be dialed.




wdiclo Mon, 06/01/2009 - 05:53
User Badges:

Thank fro the response , but I dont understand when you say that it will give a diual tone by default.


I tried calling the number after connecting it to the UC500 and did not give a dial tone.


Can you be more specific.


Thanks

paolo bevilacqua Mon, 06/01/2009 - 05:58
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

It should, include configuration of voice-port.

wdiclo Mon, 06/01/2009 - 06:07
User Badges:

I assume that connection plar command should not be included on the voice port ?

paolo bevilacqua Mon, 06/01/2009 - 06:07
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Not if you want dialtone.

wdiclo Mon, 06/01/2009 - 06:18
User Badges:

OK, I got that working. All I had to do was to remove a connection plar that was configured on the voice port.


and like you said it will give the dial tone by default and dial the destination number based on the configured destinnation pattern.


What is more appropiate to use, this default configuration (that works) or the use of an IVR TCL script ?


Thanks

Correct Answer
paolo bevilacqua Mon, 06/01/2009 - 06:21
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

With a direct dialtone, you have no control about who call where.

With a script, you could use a PIN, etc.


Please remember to rate useful posts with the scrollbox below.



wdiclo Mon, 06/01/2009 - 06:24
User Badges:

Thanks a lot, it was extremely helpful

wdiclo Mon, 06/01/2009 - 07:02
User Badges:

I got that part all ready set up, but still have problem making the tcl script to work.


I think I have done the steps to load it and define it on the dial-peer, but everytime I dial the number the router gives an error, saying that the application xxx could not be found.


I did load the script into the router and placed it on the flash.


this is how I have it configured.


application

service test flash:test.tcl

!

service acctfixedpin tftp://10.1.1.1/acctfixedpin.tcl



dial-peer voice 51 pots

service test

destination-pattern 98.........$

port 0/1/1

prefix 8

no sip-register


Thanks

paolo bevilacqua Mon, 06/01/2009 - 07:10
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

This can happen if the script has errors.

It is not very easy to write and debug tcl/ivr scripts.

wdiclo Mon, 06/01/2009 - 07:08
User Badges:

OK, I got that part working but still having problem with the tcl script.


I configured it on the dial-peer but everytime I call the number, the router gives an error that the applicaion

could not be located.


I placed the script on the flash.


this is how I have it configured


application

service test flash:test.tcl

!

service acctfixedpin tftp://10.1.1.1/acctfixedpin.tcl



dial-peer voice 51 pots

service test

destination-pattern 98.........$

port 0/1/1

prefix 8

no sip-register


Actions

This Discussion