Clarification:gateways
From FreeSWITCH Wiki
This is very confusing for me and I am hoping someone will clarify why there is more than one way to do this, and the advantages and disadvantages of both.
SIP gateways can be defined like so:
<?xml version="1.0"?>
<document type="freeswitch/xml">
<section name="configuration" description="Various Configuration">
<profiles>
<profile name="outbound">
<gateways>
<gateway name="asterlink.com" />
</gateways>
</profile
</profiles>
</section>
</document>
[edit]
or
<document type="freeswitch/xml">
<section name="directory" description="User Directory">
<domain name="$${domain}">
<user id="%ALUSERNAME%">
<gateways>
<gateway name="asterlink.com"/>
</gateway>
</user>
</domain>
</section>
</document>
so should gateways go in configuration or in directory ?
#
<branchcut> me too ... <rpm> my gateway is defined in sofia.conf.xml not in
#
directory.xml
#
<branchcut> I'm kinda confused by the fact it can be defined in both places ..
#
whats the difference?
#
<anthm> enterprise vs shuttlecraft
#
<[intra]lanman> lol
#
<branchcut> heh
#
<anthm> if you put them in a user tag in your directory you can then tell
#
sofia to manage the whole domain and it will iterate all the users
#
in that domain and reg the gateways
#
<anthm> if you don't need that you can just put them in the sofia conf
What I gather from this is that if you only want certain extensions to be registered with your voip provider when a specific user registers with freeswitch you should define gateways in the directory section rather than in the sofia configuration. Conversely, if you always want an extension registered with a provider you would define the gateway as part of the sip profile.
