forked from Mirrors/freeswitch
5a209a9680
As an example of using mod_sofia's gateway parameter `contact-params` we'd used the value `tport=tcp`. Looking around, it's clear this has misled people into believing you can specify `tport=tcp` to make the gateway use TCP or `tport=tls` to make the gateway use TLS. This does not work. The actual contact parameter is named `transport` rather than `tport`, and you shouldn't use `transport` in `contact-params` because we automatically add a `transport` to the Contact: based on the value of `register-transport` (even if the gateway is set to not register). It's clear why this would be confusing, so we'll just remove this as an example.
35 lines
1.8 KiB
XML
35 lines
1.8 KiB
XML
<include>
|
|
<!--<gateway name="asterlink.com">-->
|
|
<!--/// account username *required* ///-->
|
|
<!--<param name="username" value="cluecon"/>-->
|
|
<!--/// auth realm: *optional* same as gateway name, if blank ///-->
|
|
<!--<param name="realm" value="asterlink.com"/>-->
|
|
<!--/// username to use in from: *optional* same as username, if blank ///-->
|
|
<!--<param name="from-user" value="cluecon"/>-->
|
|
<!--/// domain to use in from: *optional* same as realm, if blank ///-->
|
|
<!--<param name="from-domain" value="asterlink.com"/>-->
|
|
<!--/// account password *required* ///-->
|
|
<!--<param name="password" value="2007"/>-->
|
|
<!--/// extension for inbound calls: *optional* same as username, if blank ///-->
|
|
<!--<param name="extension" value="cluecon"/>-->
|
|
<!--/// proxy host: *optional* same as realm, if blank ///-->
|
|
<!--<param name="proxy" value="asterlink.com"/>-->
|
|
<!--/// send register to this proxy: *optional* same as proxy, if blank ///-->
|
|
<!--<param name="register-proxy" value="mysbc.com"/>-->
|
|
<!--/// expire in seconds: *optional* 3600, if blank ///-->
|
|
<!--<param name="expire-seconds" value="60"/>-->
|
|
<!--/// do not register ///-->
|
|
<!--<param name="register" value="false"/>-->
|
|
<!-- which transport to use for register -->
|
|
<!--<param name="register-transport" value="udp"/>-->
|
|
<!--How many seconds before a retry when a failure or timeout occurs -->
|
|
<!--<param name="retry-seconds" value="30"/>-->
|
|
<!--Use the callerid of an inbound call in the from field on outbound calls via this gateway -->
|
|
<!--<param name="caller-id-in-from" value="false"/>-->
|
|
<!--extra sip params to send in the contact-->
|
|
<!--<param name="contact-params" value=""/>-->
|
|
<!--send an options ping every x seconds, failure will unregister and/or mark it down-->
|
|
<!--<param name="ping" value="25"/>-->
|
|
<!--</gateway>-->
|
|
</include>
|