[Spce-user] Peering Rules für Peering Server
Andrew Pogrebennyk
apogrebennyk at sipwise.com
Wed Dec 23 07:03:04 EST 2015
Hi,
we have been using the inbound rewrite rule for calling number, since if
you add the prefix to the called number that breaks subscriber lookup
for on-net calls. The prefix can be provisioned in the caller preference
e.g. emergency_suffix, which is available in rewrite rules as
${caller_emergency_suffix}.
Alternatively, Matthias you can change the proxy.cfg:
> $var(lcr_match_content) = "sip:" + $avp(s:first_caller_cli_userprov) + "@" + $avp(s:caller_domain_netprov);
> xlog("L_NOTICE", "Load gws matching calling part '$var(lcr_match_content)' and called user '$rU' and called part '$ru' - [% logreq -%]\n");
Trying replacing $avp(s:first_caller_cli_userprov) with
$avp(s:acc_caller_user) for example in the lcr_match_content.
Hope this helps.
Andrew
On 12/22/2015 11:13 PM, John Murray wrote:
> Matthias hi,
>
> One option is:
> in the subscribers rewrite ruleset add a prefix to the dialled number,
> eg. xyz.
> Then have a routing rule for xyz... to that peer and the peers rewrite
> typeset removes it before sending.
> You can then add the same subscriber ruleset to any subscriber you want
> to route that way.
>
> Regards
> John
More information about the Spce-user
mailing list