[Spce-user] Rewrite rules for PSTN destinations

Carsten Bock carsten at ng-voice.com
Mon Aug 1 06:02:08 EDT 2011


i just noticed, that the rewrite rules for a peer doesn't work.
I have in my setup now the following setup:
- 1st choice either BT or Telefonica
- 2nd choice sipgate (as fallback)

In order to make my call through Sipgate, i need to rewrite the RURI
in order to make the calls work (dial 0049179 instead of 49179...).
I've set up the according rules for that peer. I don't need any rules
for BT or Telefonica.
I've noticed, that the rules were not applied, when Sipgate is used as
second choice.

I could fix this by adding the following two lines to the
(in file: /etc/ngcp-config/templates/etc/kamailio/proxy/proxy.cfg.tt2)

        # Apply rewrite rules for this destination (destination needs
to be marked ed as PSTN)
        $var(to_pstn) = 1;

Afteer changing Sipgate to Prio 1 (for testing), i've noticed that in
this case the rules were not applied as well. I had to add those two
lines for the "ROUTE_PSTN" as well, in order to make it work
(terminating to Sipgate used to work previously??).
I am not sure, what or where this went wrong during the last updates?
Is anyone else experiencing those issues? Or might it have to do with
my local, minor changes to proxy.cfg.tt2?


Carsten Bock
mailto:carsten at ng-voice.com

Schomburgstr. 80
22767 Hamburg

Mobile +49 179 2021244
Office +49 40 34927219
Fax +49 40 34927220

Upcoming Events: "10 years of SER" in Berlin on September 2nd, 2011 (@
Fraunhofer Institute, Berlin):

More information about the Spce-user mailing list