<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>Thank you, looks interesting i will check it out and try.</div><div><br><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><br></div></div><br class="Apple-interchange-newline">
</div>
<br><div><div>Op 16 okt. 2013, om 12:27 heeft "John Murray" <<a href="mailto:john.murray@skyracktelecom.com">john.murray@skyracktelecom.com</a>> het volgende geschreven:</div><br class="Apple-interchange-newline"><blockquote type="cite">Rogier hi,<br><br>This is what we use. It is not elegant and requires a proxy restart when<br>adding new peers but it works! As Andrew says, this is a dirty hack.<br><br>In /etc/ngcp-config/templates/etc/kamailio/proxy.cfg.customtt.tt2 find this<br>part and add the Mods section at the bottom with your peers required domain<br>name.<br>Then add a call to that ROUTE in the section below.<br><br>Let me know how you get on.<br><br>Regards<br><br>John<br><br><br>        if($var(out_from_display) == 0)<br>        {<br>                xlog("L_INFO", "Setting From to '<$var(caller_uri)>' - [%<br>logreq -%]\n");<br>                route(ROUTE_SKYRACK_PEER_MODS);<br>                uac_replace_from("", "$var(caller_uri)");<br>        }<br>        else<br>        {<br>                xlog("L_INFO", "Setting From to '$var(out_from_display)<br><$var(caller_uri)>' - [% logreq -%]\n");<br>                route(ROUTE_SKYRACK_PEER_MODS);<br>                uac_replace_from("$var(out_from_display)",<br>"$var(caller_uri)");<br><br><br>########################################################################<br># Skyrack Mods<br>########################################################################<br>route[ROUTE_SKYRACK_PEER_MODS]<br>{<br>        if ($rd == "1.1.1.1" || $rd == "1.1.1.2" ){<br>                xlog("L_INFO", "SKYRACK MOD - Peer1 Route");<br>                $var(caller_uri) = "sip:" + $var(ccli_user) +<br>"@<a href="http://peer1-required-domain.com">peer1-required-domain.com</a>" ;<br>        }<br>        if ($rd == "2.2.2.2" ){<br>                xlog("L_INFO", "SKYRACK MOD - Peer2 Route");<br>                $var(caller_uri) = "sip:" + $var(ccli_user) +<br>"@<a href="http://peer2-required-domain.com">peer2-required-domain.com</a>" ;<br>        }<br>}<br><br><br><br><br>-----Original Message-----<br>From: <a href="mailto:spce-user-bounces@lists.sipwise.com">spce-user-bounces@lists.sipwise.com</a><br>[mailto:spce-<a href="mailto:user-bounces@lists.sipwise.com">user-bounces@lists.sipwise.com</a>] On Behalf Of Andrew Pogrebennyk<br>Sent: 11 October 2013 14:56<br>To: Spce-user<br>Subject: Re: [Spce-user] P-Preferred-identity<br><br>Hi,<br>I would say this is possible, but we'd need to invent some kind of dirty<br>hack to make this change just for one peer (like hardcoding the peer id in<br>the script) :) Maybe I'll check during this weekend if there's an easier way<br>to achieve this.<br><br>On 10/07/2013 01:52 PM, Rogier Banis wrote:<br><blockquote type="cite">Andrew,<br><br>To follow up on this i have 1 more question hoping you can answer this <br>as well; another trunk provider needs the From header in the INVITE to <br>have the callerid of the caller @trunk_domain. I know from the manual <br>that when there is a peer that needs authentication the From in the <br>Invite contains the auth username @ domain. Is it with an adjustment <br>in the script also possible the change this?<br><br><br>Thanks again.<br><br></blockquote><br><br>_______________________________________________<br>Spce-user mailing list<br><a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>http://lists.sipwise.com/listinfo/spce-user<br><br></blockquote></div><br></div></body></html>