<div dir="ltr">Hi Andreas<div><br>Thanks for that - so I have created the new billing profile and created the contract, so I have 2 contracts in the "SIP Peerings" menu.</div><div><br></div><div style>When I create the peering group, how does it know to do some kind of LCR?</div>
<div style><br></div><div style>For example I can send PSTN calls through 2 providers</div><div style><br></div><div style>- provider (sip peer) A</div><div style>- provider (sip peer) B</div><div style><br></div><div style>
Provider A charges me 10c/min for prefix 44, Provider B charges me 11c/min for prefix 44.</div><div style><br></div><div style>When one of my subscribers dials prefix 44 I would like the LCR to choose Provider A to terminate the call as they are cheaper for termination.</div>
<div style><br></div><div style>Also, am I right in thinking that in order to have a "sell price" for my subscribers, I just set them up with a Billing Profile which reflects sell pricing, and to have a "cost price" for my sip peers, I just set them up with a different billing profile which reflects my "cost price" ?</div>
<div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 8 May 2013 20:05, Andreas Granig <span dir="ltr"><<a href="mailto:agranig@sipwise.com" target="_blank">agranig@sipwise.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Pete,<div class="im"><br>
<br>
On 05/07/2013 01:25 PM, Pete Kelly wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I recently saw a  demo of the CE version of Sipwise at Kamailio a few<br>
weeks ago. One of the things  I seem to recall is the ability to do LCR<br>
for Sip Peers (when sending calls to the PSTN for example).<br>
<br>
We have set up the Debian CE version 3.6.3 but are struggling to find<br>
how to set up LCR, or even how to upload and pricing for the peer (PSTN)<br>
termination.<br>
</blockquote>
<br></div>
There are two things you need to do:<br>
<br>
1.) Set perform_peer_lcr to 'yes' in /etc/ngcp-config/config.yml and do "ngcpcfg apply"<br>
<br>
2.) Create a new billing profile via the admin panel (System Administration -> Billing) and either upload your fees via CSV (see Billing Configuration in the handbook for field spec) or create the fees manually, then in your SIP peering config (Administration -> SIP Peerings) create a contract with the new billing profile, and create peering groups with the contract id of the contract(s) you just created.<br>

<br>
Andreas<br>
<br>
______________________________<u></u>_________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br>
<a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/<u></u>listinfo/spce-user</a><br>
</blockquote></div><br></div>