<div>Thanks for the reply Tijmen. I was working on this last night and I think I made some leadway. My issue was that OpenSIPS wasn't sending CDRTool the correct info depending on the call. So my global.inc still has</div>
<div> </div>
<div>"E164_class" => "E164_US",</div>
<div>"intAccessCode" => "011",<br>"natAccessCode" => "1", <br></div>
<div> </div>
<div>The issue I was seeing was that if I fixed the Call Flows it would break the rate calculations because it didn't know the Country Codes. And if I fixed the rating for Country Codes it would break the flow. This is what I had to do from a USA Provider standpoint in order to get Call Flow and Call Rating working</div>
<div> </div>
<div>If the call is from a local customer to another local customer OpenSIPS needs to pass the can_uri without a "1" prefixed to the callee. This will show up as "on-net"</div>
<div> </div>
<div>If the call is from a local customer to a caller on the PSTN network anywhere in the nation OpenSIPS needs to pass the can_uri with a "1" prefixed to the callee. This will show up as "on-net-diverted-off-net".</div>
<div> </div>
<div>If the call is from a local customer to an International number OpenSIPS needs to pass the can_uri with a "011" prefixed to the callee. This will show up as "outgoing".</div>
<div> </div>
<div>If someone from the PSTN calls a local customer then OpenSIPS needs to pass the can_uri without a "1" prefixed to the callee. This will show up as "diverted-on-net".</div>
<div> </div>
<div> </div>
<div>So I think my problem was that I was trying to keep the same format for all types of calls. Obviously each version of call needs a different format and I understand that now. It really took a lot of test calls to figure that out.</div>
<div> </div>
<div><br> </div>
<div class="gmail_quote">On Tue, Jun 7, 2011 at 8:37 AM, Tijmen de Mes <span dir="ltr"><<a href="mailto:tijmen@ag-projects.com">tijmen@ag-projects.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div text="#000000" bgcolor="#ffffff">Hi,<br><br>The flow is determined by the aNumber and BillingParty. The logic is the following:<br><br>If the caller is local and aNumber is the same as the BillingPartyID the flow will be <br>
on-net or outgoing depending on the callee<br><br>If the caller is local and aNumber is not the same as the BillingPartyID the flow will be <br>on-net-diverted-on-net or on-net-diverted-off-net depending on the callee<br>
<br>If the caller is not local and the BillingParty is local the flow will be <br>diverted-on-net or diverted-off-net depending on the callee<br><br>If the caller is not local and the callee is local the flow will be <br>
incoming<br><br>If the caller is not local and the callee is not local is local the flow will be <br>transit<br><br>After the call is done ( not in progress any more) it will be normalized by the normalization process. This will rewrite the numbers based on the config settings.<br>
<br>Hope this clarifies things a bit.<br> <br>Best regards,<br><br>--<br>Tijmen de Mes<br>AG Projects<br><br>Op 6/2/11 10:23 PM, Duane Larson schreef:
<blockquote type="cite">
<div>
<div></div>
<div class="h5">
<div>I think I don't have something configured correctly. When I do a search on the CDRs page my Flow info is not always correct. So I am not sure what all I am doing wrong.</div>
<div> </div>
<div>On my cdrtool global.inc config I have the following configured</div>
<div> "intAccessCode" => "011", </div>
<div> "natAccessCode" => "1",</div>
<div> </div>
<div> </div>
<div>When an internal customer to internal customer call is "in progress" the call shows up as On-Net, yet when the call is over it shows up as "outgoing". For the following fields I am sending this from OpenSIPS</div>
<div> </div>
<div>To (dialed URI): <a href="mailto:19**33*9**8@irock.com" target="_blank">19**33*9**8@irock.com</a></div>
<div>Canonical URI: <a href="mailto:19**33*9**8@irock.com" target="_blank">19**33*9**8@irock.com</a></div>
<div>Billing Party: <font color="#a52a2a"><a href="mailto:19**27*2**4@coolbeans.com" target="_blank">19**27*2**4@coolbeans.com</a></font></div>
<div>From:
<table>
<tbody>
<tr>
<td><br></td>
<td><a href="mailto:19**27*2**4@coolbeans.com" target="_blank">19**27*2**4@coolbeans.com</a></td></tr></tbody></table></div>
<div> </div>
<div>You can see that I am prefixing the "1" to the US numbers.</div>
<div> </div>
<div>After the call is not "in progress" I see that the following changed</div>
<div> </div>
<div>
<table>
<tbody>
<tr></tr>
<tr>
<td>To (dialed URI):</td>
<td><a href="mailto:01119**33*9**8@irock.com" target="_blank">01119**33*9**8@irock.com</a></td></tr></tbody></table></div>
<div>
<table>
<tbody>
<tr>
<td><br></td>
<td>Canonical URI: </td>
<td><a href="mailto:01119**33*9**8@irock.com" target="_blank">01119**33*9**8@irock.com</a></td></tr></tbody></table></div>
<div> </div>
<div> </div>
<div> </div>
<div>I also get a flow of "diverted-off-net" when a call comes from the PSTN to an internal customer and once again my "To (dialed URI)" and "Canonical URI" numbers change from having a "1" prefix to a "0111" when the call is over.</div>
<div> </div>
<div>I'm sure this is something simple.</div></div></div><pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre></blockquote><br></div><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>