Wiki is your friend to that type of info! Contribute to it, please!<div><br></div><div>JM<br>
<br><br><div class="gmail_quote">On Sun, Mar 14, 2010 at 11:20 PM, Spencer Thomason <span dir="ltr">&lt;<a href="mailto:spencer@5ninesolutions.com">spencer@5ninesolutions.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">So just in case anyone else ever needs to do this.. here&#39;s what I ended up with:<div><div><br></div><div>&lt;include&gt;</div><div>  &lt;extension name=&quot;NNNNNNNNNNN-did&quot;&gt;</div>
<div>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(NNNNNNNNNNN)$&quot;&gt;</div><div>      &lt;action application=&quot;set&quot; data=&quot;domain_name=$${domain}&quot;/&gt;</div><div>      &lt;action application=&quot;set&quot; data=&quot;accountcode=&lt;ACCTNUM&gt;&quot;/&gt;</div>
<div>      &lt;action application=&quot;bridge&quot; data=&quot;sofia/default/$1${regex(${sofia_contact(${accountcode}@$${domain})}|^[^\@]+(.*)|%1)}&quot; /&gt;</div><div>    &lt;/condition&gt;</div><div>  &lt;/extension&gt;</div>
<div>&lt;/include&gt;</div><div><br></div></div><div>Basically the extension UAs register to is created as the same as the account code.  We then use their ip at registration to dial a did on their end.</div><div><br></div>
<font color="#888888"><div>Spencer</div></font><div><div></div><div class="h5"><div><br></div><div><br><div><div>On Mar 14, 2010, at 5:25 PM, Spencer Thomason wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word">
Duh.. :-)  Thanks!<div><br><div><div>On Mar 14, 2010, at 4:17 PM, Joćo Mesquita wrote:</div><br><blockquote type="cite">Yes, sofia_contact with regex to extract the IP portion? You had the answer yourself.<div><br clear="all">
Joćo Mesquita<br><br> <br><br><div class="gmail_quote">On Sun, Mar 14, 2010 at 8:00 PM, Spencer Thomason <span dir="ltr">&lt;<a href="mailto:spencer@5ninesolutions.com" target="_blank">spencer@5ninesolutions.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> I guess my question is, is there some function which will return the<br> IP address of a registered user?  Similar to sofia_contact but only<br>
 the IP address?<br> <font color="#888888"><br> Spencer<br> </font><div><div></div><div><br> On Mar 14, 2010, at 3:18 PM, Brian West wrote:<br> <br> &gt; You sure can still have it call a registration.. You&#39;re mixing the<br>
 &gt; dialplan and user directly as if they are a single entity.  They<br> &gt; aren&#39;t.<br> &gt;<br> &gt; /b<br> &gt;<br> &gt; On Mar 14, 2010, at 5:02 PM, Spencer Thomason wrote:<br> &gt;<br> &gt;&gt; That looks promising, thanks.  I was hoping to have FS do it<br>
 &gt;&gt; automatically.  I.e. inbound dids are assigned to specific asterisk<br> &gt;&gt; boxes, ITSP dials inbound did of freeswitch, freeswitch dials<br> &gt;&gt; inbound did @ whereever the registration came from instead of<br>
 &gt;&gt; having the IP address hard coded into a route.<br> &gt;<br> &gt;<br> &gt; _______________________________________________<br> &gt; FreeSWITCH-users mailing list<br> &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
 &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
 &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> &gt;<br> <br> <br> _______________________________________________<br> FreeSWITCH-users mailing list<br> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
 <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
 <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br> </div></div></blockquote></div><br></div> _______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div></div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>