Author Topic: Logic to play Customer entered Phone number using Cordinals - Composer.  (Read 2447 times)

Offline kamalnba

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
Hey There,


I am building Call Flow in composer and able to capture Customer 10 digit number using input block and dtmf source. I have stored the input into a vairiable, now i want to use the captured number and play back to customer to get the confirmation input. I am thinking to play the captured number using it using vox files in Cordinals. Any idea how this can be achieved.

TYA


Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Logic to play Customer entered Phone number using Cordinals - Composer.
« Reply #1 on: October 24, 2019, 11:04:24 PM »
Just do it in Javascript, split it into an array and play each array element with a For

Offline kamalnba

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
Re: Logic to play Customer entered Phone number using Cordinals - Composer.
« Reply #2 on: October 25, 2019, 02:59:13 PM »
[quote author=cavagnaro link=topic=11469.msg52248#msg52248 date=1571958264]
Just do it in Javascript, split it into an array and play each array element with a For
[/quote]

Thank you for the reply, I am not really good at JS. Is there any script or example available which I can refer to create one?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Logic to play Customer entered Phone number using Cordinals - Composer.
« Reply #3 on: October 25, 2019, 03:01:34 PM »
Google is your friend... And how on earth you ended up as Composer developer at all? [emoji22][emoji22]

Enviado de meu SM-G9650 usando o Tapatalk


Offline kamalnba

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
Re: Logic to play Customer entered Phone number using Cordinals - Composer.
« Reply #4 on: October 25, 2019, 03:18:04 PM »
[quote author=cavagnaro link=topic=11469.msg52253#msg52253 date=1572015694]
Google is your friend... And how on earth you ended up as Composer developer at all? [emoji22][emoji22]

Enviado de meu SM-G9650 usando o Tapatalk
[/quote]

;D ;D Will post the results of it soon..

Offline kamalnba

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
Re: Logic to play Customer entered Phone number using Cordinals - Composer.
« Reply #5 on: November 08, 2019, 04:35:09 PM »
[quote author=cavagnaro link=topic=11469.msg52253#msg52253 date=1572015694]
Google is your friend... And how on earth you ended up as Composer developer at all? [emoji22][emoji22]

Enviado de meu SM-G9650 usando o Tapatalk
[/quote]

I am able to play the cardinals without Java Script and by using Variables and different logic. ;)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Logic to play Customer entered Phone number using Cordinals - Composer.
« Reply #6 on: November 08, 2019, 04:37:52 PM »
8)  Nice you made it work. There are many ways, yet JS is the easier tho ;) But using Composer loops will work too