[Spce-user] Can't appy outbound rewrite rules for callee

Jon Bonilla (Manwe) jbonilla at sipwise.com
Mon Jul 9 07:40:29 EDT 2012


El Fri, 6 Jul 2012 19:26:58 +0100
"John Murray" <john.murray at skyracktelecom.com> escribió:

> Hello,
> 
>  
> 
> When placing a call to a user I need to use E.164 format (eg. +44791234567)
> for From: and To:
> 
>  
> 
> I apply the same rule  ^([1-9][0-9]+)$ with \+\1 to both the outbound caller
> and callee rule for the user
> 
> But it seems only the From: field gets modified.
> 
>  

The TO won't be changed by rewrite rules. Only the ruri. And AFAIKS in your
INVITE it gets changed. 

Why would you need to change "To"?


> 
> Also where can I increase the 'Max-Forwards:' number for Invites to local
> users ?
> 

You'll need to create a custom template for kamailio-lb. 

In /etc/ngcp-config/templates/etc/kamailio/lb/kamailio.cfg.customtt.tt2

change this line

if (!mf_process_maxfwd_header("10"))

and put the value you want. 



Cheers,

Jon




More information about the Spce-user mailing list