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

John Murray john.murray at skyracktelecom.com
Mon Jul 9 12:36:05 EDT 2012


Jon,

Many thanks for this. The setting for Max Forwards worked great.

John

-----Original Message-----
From: spce-user-bounces at lists.sipwise.com [mailto:spce-user-bounces at lists.sipwise.com] On Behalf Of Jon Bonilla (Manwe)
Sent: 09 July 2012 12:40
To: spce-user at lists.sipwise.com
Subject: Re: [Spce-user] Can't appy outbound rewrite rules for callee

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

_______________________________________________
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