I'm not sure if I'm answering your question right, but in general it's a good idea to normalize the destination numbers. ie: if your users don't normally dial in e.164 format, normalize it for the cdr to that. For example, if they dial a local number with the national bit discarded, then add the national bit. the pseudo logic looks like:<div>
<br></div><div>if $customer = 23 then</div><div> set to_did = 01144$rU</div><div>end if</div><div><br></div><div>You don't have to dial on that of course, but it helps to account it that way. I'd be interested in hearing how other people are doing this as well.</div>
<div><br><br><div class="gmail_quote">On Thu, Jun 11, 2009 at 8:56 AM, Joan <span dir="ltr"><<a href="mailto:aseques@gmail.com">aseques@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm using the opensips+cdrtool+mediaproxy+freeradius solution for an<br>
opensips setup.<br>
My users are dialing directly the number in case of national calls,<br>
i.e. 912123123.<br>
In the SIP Destination table, it gets writen as <a href="mailto:912123123@example.com">912123123@example.com</a>.<br>
<br>
And the problem is that I cannot get a price for the calls because, it<br>
depends on the definition of E164_Europe in the cdr_generic.php<br>
Since it doesn't fit on any of the categories, the call is just free.<br>
<br>
My question is, what is the better solution for this?<br>
<br>
1.- Users have to mandatory use either 912123123 or<br>
00international_code912123123 for the call<br>
2.- I correct the E164_Europe to suit my needs<br>
3.- Somehow change the values before normalizing the table?<br>
4.- Something else?<br>
<br>
Thanks for your answers<br>
<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>
</blockquote></div><br></div>