[Spce-user] inbound PSTN peer routing to local sip uri

John Murray john.murray at skyracktelecom.com
Thu Mar 7 17:00:44 EST 2013


Andreas hi,

That worked great. I actually did:
	if ($si == "1.2.1.2"){
		$rd = $td;
        }

Which is perfect. Thanks very much for that answer.

Regards

John



-----Original Message-----
From: spce-user-bounces at lists.sipwise.com
[mailto:spce-user-bounces at lists.sipwise.com] On Behalf Of Andreas Granig
Sent: 01 March 2013 11:11
To: spce-user at lists.sipwise.com
Subject: Re: [Spce-user] inbound PSTN peer routing to local sip uri

Hi,
On 03/01/2013 10:52 AM, John Murray wrote:
> SIP URI: a001002 at skyrack.net

Well, the problem here is that the call comes in as
sip:a001002 at 100.100.100.182, but the subscriber is sip:a001002 at skyrack.net.

There is currently no way to also change the domain part via rewrite rules,
so you'd have to do that hardcoded in the kamailio-lb config, like this:

# after the whole loose-route block:
if($rd == "100.100.100.182") {
   $rd = "skyrack.net";
}

You can use it more elegantly of course by using the template values of
network.yml, but that's basically the idea for now.

Andreas

_______________________________________________
Spce-user mailing list
Spce-user at lists.sipwise.com
http://lists.sipwise.com/listinfo/spce-user





More information about the Spce-user mailing list