FYI, <br>I added this as example 16 on the dialplan xml page on the wiki.<br>-MC<br><br><br><div class="gmail_quote">2010/3/14 Joćo Mesquita <span dir="ltr"><<a href="mailto:jmesquita@freeswitch.org">jmesquita@freeswitch.org</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Wiki is your friend to that type of info! Contribute to it, please!<div><br></div><div><font color="#888888">JM</font><div>
<div></div><div class="h5"><br>
<br><br><div class="gmail_quote">On Sun, Mar 14, 2010 at 11:20 PM, Spencer Thomason <span dir="ltr"><<a href="mailto:spencer@5ninesolutions.com" target="_blank">spencer@5ninesolutions.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div style="word-wrap: break-word;">So just in case anyone else ever needs to do this.. here's what I ended up with:<div><div><br></div><div><include></div><div> <extension name="NNNNNNNNNNN-did"></div>
<div> <condition field="destination_number" expression="^(NNNNNNNNNNN)$"></div><div> <action application="set" data="domain_name=$${domain}"/></div><div> <action application="set" data="accountcode=<ACCTNUM>"/></div>
<div> <action application="bridge" data="sofia/default/$1${regex(${sofia_contact(${accountcode}@$${domain})}|^[^\@]+(.*)|%1)}" /></div><div> </condition></div><div> </extension></div>
<div></include></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><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"><<a href="mailto:spencer@5ninesolutions.com" target="_blank">spencer@5ninesolutions.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); 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> > You sure can still have it call a registration.. You're mixing the<br>
> dialplan and user directly as if they are a single entity. They<br> > aren't.<br> ><br> > /b<br> ><br> > On Mar 14, 2010, at 5:02 PM, Spencer Thomason wrote:<br> ><br> >> That looks promising, thanks. I was hoping to have FS do it<br>
>> automatically. I.e. inbound dids are assigned to specific asterisk<br> >> boxes, ITSP dials inbound did of freeswitch, freeswitch dials<br> >> inbound did @ whereever the registration came from instead of<br>
>> having the IP address hard coded into a route.<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> ><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" 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>
<br></blockquote></div><br></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>