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

Andreas Granig agranig at sipwise.com
Fri Mar 1 06:11:14 EST 2013


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




More information about the Spce-user mailing list