Matt,<br><br>Question: do you even need a registration? The reason I ask is that you can send calls to a server without having an actual registration. When you have a registration then you can employ the "sofia_contact user@domain" API to get a Sofia dialstring. However, if you know the user and domain/IP address then you can just send a call there directly:<br>
<br><action application="bridge" data="sofia/internal/5551212@lightspar1"/><br><br>I think your real challenge is handling the inbound call on the freeswitch1 box. That's all dialplan. Look in the example configs: conf/dialplan/public/00_inbound_did.xml has an example of routing a call to DID 5551212; the example extension will send the inbound call to extension 1000. You just need to copy that sample extension and set it to match your DID and then bridge the call to your trunk.<br>
<br>-MC<br><br><div class="gmail_quote">On Thu, Sep 6, 2012 at 7:42 AM, Matt Putnam <span dir="ltr"><<a href="mailto:matt.putnam@lightspar.com" target="_blank">matt.putnam@lightspar.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks for the Response Mike I am able to get the trunk registered the real issue I guess is passing calls to that trunk. As an example I have freeswitch1 for customers which has a trunk lightspar1 registered to my gateway freeswitch box. When a call is placed to a DID that is associated to freeswitch1 I can see the call in the logs but the destination number is lightspar1 not the original DID that was called. Is there a way to set the from field to use the DID called instead of the trunk name so instead of lightspar1@blah it would send the invite with NPANXXXXXX@blah?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Matt Putnam<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><a href="mailto:matt.putnam@lightspar.com" target="_blank">matt.putnam@lightspar.com</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Michael Collins<br>
<b>Sent:</b> Wednesday, September 05, 2012 6:49 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] Registering SIP Trunks to Freeswitch<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Matt,<br><br>Welcome to FreeSWITCH!<br><br>If you want something to register with FreeSWITCH then simply add an entry in the user directory. Whether it's a "user" or a "trunk" really doesn't matter - it's just a SIP registration. Look in conf/directory/default/1000.xml (if using the example "vanilla" configuration) for a taste of what you need. Let us know if you have any other questions or join us in #freeswitch on <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a>.<br>
<br>-MC (IRC:mercutioviz)<u></u><u></u></p><div><p class="MsoNormal">On Wed, Sep 5, 2012 at 3:21 PM, Matt Putnam <<a href="mailto:matt.putnam@lightspar.com" target="_blank">matt.putnam@lightspar.com</a>> wrote:<u></u><u></u></p>
<div><div><p class="MsoNormal">This may have been asked before but my research hasn’t turned up any results. I am currently testing freeswitch as a replacement to our current asterisk gateways. I think I have the basics of ip based trunks down but I am running into an issue with trunks registering to the freeswitch box. In asterisk it was a fairly simple process of giving the trunk a username and password and setting it to dynamic to get it to register. What would be the equivalent in freeswitch that would allow me to have customer trunks register to the system? <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">Matt Putnam<u></u><u></u></p><p class="MsoNormal"> <u></u><u></u></p></div>
</div><p class="MsoNormal" style="margin-bottom:12.0pt"><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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><span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p>
</div><span class="HOEnZb"><font color="#888888"><p class="MsoNormal" style="margin-bottom:12.0pt"><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br><a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><u></u><u></u></p><div class="MsoNormal" style="text-align:center" align="center">
<hr style="color:gray" align="center" noshade size="1" width="100%"></div><p class="MsoNormal">No virus found in this message.<br>Checked by AVG - <a href="http://www.avg.com" target="_blank">www.avg.com</a><br>Version: 2012.0.2197 / Virus Database: 2437/5251 - Release Date: 09/05/12<u></u><u></u></p>
</font></span></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>