<html><head><title></title></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">So just in case anyone else ever needs to do this.. here's what I ended up with:<div><div><br></div><div>&lt;include&gt;</div><div>&nbsp;&nbsp;&lt;extension name="NNNNNNNNNNN-did"&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;condition field="destination_number" expression="^(NNNNNNNNNNN)$"&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;action application="set" data="domain_name=$${domain}"/&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;action application="set" data="accountcode=&lt;ACCTNUM&gt;"/&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;action application="bridge" data="sofia/default/$1${regex(${sofia_contact(${accountcode}@$${domain})}|^[^\@]+(.*)|%1)}" /&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;/condition&gt;</div><div>&nbsp;&nbsp;&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. &nbsp;We then use their ip at registration to dial a did on their end.</div><div><br></div><div>Spencer</div><div><br></div><div><br><div><div>On Mar 14, 2010, at 5:25 PM, Spencer Thomason wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Duh.. :-) &nbsp;Thanks!<div><br><div><div>On Mar 14, 2010, at 4:17 PM, Joćo Mesquita wrote:</div><br class="Apple-interchange-newline"><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">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? &nbsp;Similar to sofia_contact but only<br> the IP address?<br> <font color="#888888"><br> Spencer<br> </font><div><div></div><div class="h5"><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're mixing the<br> &gt; dialplan and user directly as if they are a single entity. &nbsp;They<br> &gt; aren'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. &nbsp;I was hoping to have FS do it<br> &gt;&gt; automatically. &nbsp;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">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">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">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>