[Spce-user] P-Preferred-identity

Rogier Banis rogier at ningaloo.nl
Wed Oct 16 06:39:16 EDT 2013


Hi,

Thank you, looks interesting i will check it out and try.




Op 16 okt. 2013, om 12:27 heeft "John Murray" <john.murray at skyracktelecom.com> het volgende geschreven:

> Rogier hi,
> 
> This is what we use. It is not elegant and requires a proxy restart when
> adding new peers but it works! As Andrew says, this is a dirty hack.
> 
> In /etc/ngcp-config/templates/etc/kamailio/proxy.cfg.customtt.tt2 find this
> part and add the Mods section at the bottom with your peers required domain
> name.
> Then add a call to that ROUTE in the section below.
> 
> Let me know how you get on.
> 
> Regards
> 
> John
> 
> 
>        if($var(out_from_display) == 0)
>        {
>                xlog("L_INFO", "Setting From to '<$var(caller_uri)>' - [%
> logreq -%]\n");
>                route(ROUTE_SKYRACK_PEER_MODS);
>                uac_replace_from("", "$var(caller_uri)");
>        }
>        else
>        {
>                xlog("L_INFO", "Setting From to '$var(out_from_display)
> <$var(caller_uri)>' - [% logreq -%]\n");
>                route(ROUTE_SKYRACK_PEER_MODS);
>                uac_replace_from("$var(out_from_display)",
> "$var(caller_uri)");
> 
> 
> ########################################################################
> # Skyrack Mods
> ########################################################################
> route[ROUTE_SKYRACK_PEER_MODS]
> {
>        if ($rd == "1.1.1.1" || $rd == "1.1.1.2" ){
>                xlog("L_INFO", "SKYRACK MOD - Peer1 Route");
>                $var(caller_uri) = "sip:" + $var(ccli_user) +
> "@peer1-required-domain.com" ;
>        }
>        if ($rd == "2.2.2.2" ){
>                xlog("L_INFO", "SKYRACK MOD - Peer2 Route");
>                $var(caller_uri) = "sip:" + $var(ccli_user) +
> "@peer2-required-domain.com" ;
>        }
> }
> 
> 
> 
> 
> -----Original Message-----
> From: spce-user-bounces at lists.sipwise.com
> [mailto:spce-user-bounces at lists.sipwise.com] On Behalf Of Andrew Pogrebennyk
> Sent: 11 October 2013 14:56
> To: Spce-user
> Subject: Re: [Spce-user] P-Preferred-identity
> 
> Hi,
> I would say this is possible, but we'd need to invent some kind of dirty
> hack to make this change just for one peer (like hardcoding the peer id in
> the script) :) Maybe I'll check during this weekend if there's an easier way
> to achieve this.
> 
> On 10/07/2013 01:52 PM, Rogier Banis wrote:
>> Andrew,
>> 
>> To follow up on this i have 1 more question hoping you can answer this 
>> as well; another trunk provider needs the From header in the INVITE to 
>> have the callerid of the caller @trunk_domain. I know from the manual 
>> that when there is a peer that needs authentication the From in the 
>> Invite contains the auth username @ domain. Is it with an adjustment 
>> in the script also possible the change this?
>> 
>> 
>> Thanks again.
>> 
> 
> 
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20131016/05bc7eac/attachment-0001.html>


More information about the Spce-user mailing list