Registration is not necessary in most situations but there are a few situation where a customer is not on a static ip so registration would be necessary.
Thanks,
Matt Putnam
matt.putnam@lightspar.com
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins
Sent: Thursday, September 06, 2012 10:43 AM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Registering SIP Trunks to Freeswitch
Matt,
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:
<action application="bridge" data="sofia/internal/5551212@lightspar1"/>
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.
-MC
On Thu, Sep 6, 2012 at 7:42 AM, Matt Putnam <matt.putnam@lightspar.com> wrote:
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?
Thanks,
Matt Putnam
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael Collins
Sent: Wednesday, September 05, 2012 6:49 PM
To: FreeSWITCH Users Help
Subject: Re: [Freeswitch-users] Registering SIP Trunks to Freeswitch
Hi Matt,
Welcome to FreeSWITCH!
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 irc.freenode.net.
-MC (IRC:mercutioviz)
On Wed, Sep 5, 2012 at 3:21 PM, Matt Putnam <matt.putnam@lightspar.com> wrote:
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?
Thanks,
Matt Putnam
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2197 / Virus Database: 2437/5251 - Release Date: 09/05/12
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2197 / Virus Database: 2437/5252 - Release Date: 09/06/12