Hello Brian, It seems i didn't explain myself correctly, all sofia.xml is in xml files, except the <gateways> part. That's the only section i want loaded dynamically. os it is basically like this: FIles: sofia.conf.xml <configuration name="sofia.conf" description="sofia Endpoint"> <global_settings> <param name="log-level" value="0"/> <!-- <param name="auto-restart" value="false"/> --> <param name="debug-presence" value="0"/> </global_settings> <!-- The rabbit hole goes deep. This includes all the profiles in the sip_profiles directory that is up one level from this directory. --> <profiles> <X-PRE-PROCESS cmd="include" data="../sip_profiles/*.xml"/> </profiles> </configuration> -------------------------------------------------------------------------------- and the in sip_profiles i only have external.conf.xml: -------------------------------------------------------------------------------- <profile name="external"> <!-- http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files --> <!-- This profile is only for outbound registrations to providers --> <aliases> <!-- <alias name="outbound"/> <alias name="nat"/> --> </aliases> <domains> <domain name="all" alias="false" parse="true"/> </domains> <settings> <param name="debug" value="0"/> <!-- If you want FreeSWITCH to shutdown if this profile fails to load, uncomment the next line. --> <!-- <param name="shutdown-on-fail" value="true"/> --> <param name="sip-trace" value="no"/> <param name="rfc2833-pt" value="101"/> <param name="sip-port" value="$${external_sip_port}"/> <!-- <param name="sip-port" value="5061"/> --> <param name="dialplan" value="XML"/> <param name="context" value="public"/> <param name="dtmf-duration" value="2000"/> <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/> <param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/> <param name="hold-music" value="$${hold_music}"/> <param name="rtp-timer-name" value="soft"/> <!--<param name="enable-100rel" value="true"/>--> <!-- This could be set to "passive" --> <param name="local-network-acl" value="localnet.auto"/> <param name="manage-presence" value="false"/> <!-- used to share presence info across sofia profiles manage-presence needs to be set to passive on this profile if you want it to behave as if it were the internal profile for presence. --> <!-- Name of the db to use for this profile --> <!--<param name="dbname" value="share_presence"/>--> <!--<param name="presence-hosts" value="$${domain}"/>--> <!--<param name="force-register-domain" value="$${domain}"/>--> <!--all inbound reg will stored in the db using this domain --> <!--<param name="force-register-db-domain" value="$${domain}"/>--> <!-- ************************************************* --> <!--<param name="aggressive-nat-detection" value="true"/>--> <param name="inbound-codec-negotiation" value="generous"/> <param name="nonce-ttl" value="60"/> <param name="auth-calls" value="false"/> <!-- DO NOT USE HOSTNAMES, ONLY IP ADDRESSES IN THESE SETTINGS! --> <param name="rtp-ip" value="my_ip"/> <param name="sip-ip" value="my_ip"/> <param name="ext-rtp-ip" value="auto-nat"/> <param name="ext-sip-ip" value="auto-nat"/> <param name="rtp-timeout-sec" value="300"/> <param name="rtp-hold-timeout-sec" value="1800"/> <!--<param name="enable-3pcc" value="true"/>--> <!-- TLS: disabled by default, set to "true" to enable --> <param name="tls" value="$${external_ssl_enable}"/> <!-- additional bind parameters for TLS --> <param name="tls-bind-params" value="transport=tls"/> <!-- Port to listen on for TLS requests. (5081 will be used if unspecified) --> <param name="tls-sip-port" value="$${external_tls_port}"/> <!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) --> <param name="tls-cert-dir" value="$${external_ssl_dir}"/> <!-- TLS version ("sslv23" (default), "tlsv1"). NOTE: Phones may not work with TLSv1 --> <param name="tls-version" value="$${sip_tls_version}"/> </settings> </profile> -------------------------------------------------------------------------------- And then the gateways.php should be loaded (if i'm correct) from the xml_curl. At lease i see the requests and responses from the curl-gateway. Thanks David On Mon, Feb 21, 2011 at 4:43 PM, Brian West <brian@freeswitch.org> wrote:
I'm currently not aware of any magical xml fairy that can fill out the rest of the required config for you... so if you would see the default external profile and provide the proper settings for things like rtp-ip and sip-ip... ;) Cuz you're missing a lot of options here so I'm guessing that its not even starting the profile due to that.
/b
On Feb 21, 2011, at 8:56 AM, David Villasmil wrote:
<document type="freeswitch/xml"> <configuration name="sofia.conf" description="Gateways configuration">
<profile name="external">
<gateways>
<gateway name="asterisk_1"> <param name="realm" value="1.2.3.4:5060"/> <param name="username" value="foo"/> <param name="password" value="1234"/> <param name="register" value="false"/> <param name="retry-seconds" value="30"/> </gateway>
<gateway name="opensips_1"> <param name="realm" value="5.6.7.8:5060"/> <param name="username" value="foo"/> <param name="password" value="pass"/> <param name="register" value="false"/> <param name="retry-seconds" value="30"/> </gateway>
</gateways>
</profile>
</configuration> </document>
_______________________________________________ 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