<div><div class="gmail_quote">On Tue, Apr 5, 2011 at 6:28 AM, Andrew Pogrebennyk <span dir="ltr">&lt;<a href="mailto:andrew.pogrebennyk@portaone.com">andrew.pogrebennyk@portaone.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
for some accounts identified by ANI I need to add a prefix e.g. 001234 before the dialed number. Initially I&#39;ve been using the dialplan module with ANI being used as a key for lookup by dpid in dialplan table. But dpid is declared int so I cannot accommodate account numbers greater than 2147483647. And it doesn&#39;t look like I can ALTER dpid to bigint or something like that, without having to hack with the source code.<br>


Still I&#39;d like to use the dialplan module for that. Any hints?<br><font class="Apple-style-span" color="#888888"><br></font></blockquote><div><br></div><meta charset="utf-8">You could have another table that maps account_ids to dpids. If performance of this is an issue, store the mapping in memcache, when cache expires, perform an avp_db_query and re-cache.<div>

<br></div><div>-Brett</div><div><br></div><div> </div></div></div>