Author Topic: Digit manipulation in Yate  (Read 3269 times)

DanielVieceli

  • Newbie
  • *
  • Posts: 2
    • View Profile
Digit manipulation in Yate
« on: November 08, 2019, 03:57:14 PM »
Hello!

I new in Yate!

I setup a Lab with Yate and Asterisk i'm traning SS7 ISUP.
I need to send to Yate for exemple a tech-prefix and remove it when send to SS7 Trunk, i read the documentantion, but dont undertend how to do it in regexroute.conf

For exemple, i send via SIP to YATE 10904001 + Number, basicaly i need to remove the 10904001 put a 0 and sent it to trunk.

Anynody cam help me?

Thaks

Monica Tepelus

  • Administrator
  • Full Member
  • *****
  • Posts: 198
    • View Profile
Re: Digit manipulation in Yate
« Reply #1 on: January 20, 2020, 04:18:30 AM »
Hi,

Digit manipulation can be done from any module handing call.route, not just regexroute. You can even make a custom script in javascript / php and do this.
https://docs.yate.ro/wiki/How_to_do_routing_using_javascript
You also have various example in yate's sources in share/scripts/ directory.