Because the "REGEXTEN" would be the "phone number" And the Device's userid would be the macaddress, settting regexten should create that association. There used to be an example on the voip-info wiki but its not there anymore.
<br><br>Would someone care to explain what regexten, in its current state, can do that the dialplan can't already do?<br><br><div><span class="gmail_quote">On 11/30/06, <b class="gmail_sendername">Watkins, Bradley</b> &lt;
<a href="mailto:Bradley.Watkins@compuware.com">Bradley.Watkins@compuware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div><span class="q">
<div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"></font>&nbsp;</div><br>
<blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
  <div dir="ltr" align="left" lang="en-us">
  <hr>
  <font face="Tahoma" size="2"><b>From:</b> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asterisk-users-bounces@lists.digium.com</a> 
  [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>Andrew 
  Joakimsen<br><b>Sent:</b> Thursday, November 30, 2006 11:56 AM<br><b>To:</b> 
  Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> Re: 
  [asterisk-users] Trouble with regexten<br></font><br></div>
  <div></div>
  <div>When using autoreg, is there any way to extract the userid somehow? 
  IE:<br><br>SIP.com<br>regcontext=registrations<br>[123]<br>regexten=2125551212<br><br>extensions.conf<br><br>[phones]<br>include 
  =&gt; registrations<br>exten =&gt; _212NXXXXXX,2,Dial(SIP/${VARIABLE})) 
  <br>exten =&gt; _212NXXXXXX,3,VoiceMail(u${EXTEN})<br><br>Honestly I dont see 
  the point of autoreg unless this can be done...<br><br><span><font color="#0000ff" face="Arial" size="2">&nbsp;</font></span></div></blockquote></span>
<div><span><font color="#0000ff" face="Arial" size="2">The 
answer is no, but I'm not sure what you're expecting.&nbsp; This is no different 
than if you</font></span><span>&nbsp;<font color="#0000ff" face="Arial" size="2">weren't using regexten.&nbsp; You would still need a way to 
map the&nbsp;DID to the proper device.</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font color="#0000ff" face="Arial" size="2">Regards,</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2">- 
Brad</font></span></div><span class="q">
<div><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div><span></span>&nbsp;</div>The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. 
</span></div>

<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br><br></blockquote></div><br>