Skip to content
jonasvp edited this page Jan 25, 2013 · 2 revisions

Prerouting

Every time a number is dialed on a phone registered to Gemeinschaft 5 it is matched against the prerouting table which is defined in /opt/GS5/misc/freeswitch/scripts/ini/routes.ini

It is the right place to define star codes and to convert the phone number into the desired format.

A prerouting line consist of two strings separated by a comma: pattern , replacement

Examples:

The star code *98# resolves to the dialplan function "f-vmcheck" which in turn will connect the caller to the voice mail service:

[prerouting]
^%*98#$ , f-vmcheck

901149306098873 will be converted into E.164 formatted +49306098873

^9(1%d+), +%1
^9011(%d+), +%1
Clone this wiki locally