Yate Community Forum

Yate server => Other Yate server issues => Topic started by: DanielVieceli on November 08, 2019, 03:57:14 PM

Title: Digit manipulation in Yate
Post by: DanielVieceli 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
Title: Re: Digit manipulation in Yate
Post by: Monica Tepelus 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.