[Freeswitch-users] Gateway

Nandy Dagondon nandy1925 at gmail.com
Wed May 30 23:33:01 UTC 2018


If you're using an FXO gateway, use its T.38 feature.  In your dialplan,
you're using spandsp (e.g. rxfax). They work only with FTDM analog cards
e.g. Sangoma, Digium, etc. - I guess.




On Tue, May 29, 2018 at 10:10 AM, Hossein Gholizadeh <hggh96.hg at gmail.com>
wrote:

> hi ... i have my gateway on 192.168.30.32 and a phone which connected to
> gateway 984432250161.
> I configured them like this :
> 1.created a xml file in \conf\sip_profiles\external with
> name cheap_tel.xml and the content is this :
> <include>
>    <gateway name="provider">
>      <param name="proxy" value="192.168.30.32"/>
>      <param name="register" value="false"/>
>      <param name="caller-id-in-from" value="true"/> <!--Most gateways seem
> to want this-->
>      <param name="username" value="not-used"/>
>      <param name="password" value="not-used"/>
>    </gateway>
> </include>
>
> 2.and in acl.conf added this node :
>       <node type="allow" cidr="192.168.30.32/32"/>
>
> is my gateway config right ? because when i want to send a fax file by
> loopback with this command i have no error but fax is not saved in
> directory :
> Command ----> originate sofia/gateway/provider/984432250161
> &txfax(C:/test.tiff)
>
> And also my dialplan configs for fax is this :
>  <extension name="fax_detect">
>       <condition field="destination_number" expression="^984432250161$">
>         <action application="answer" />
>         <action application="set" data="transfer_ringback=${us-ring}" />
> <action application="spandsp_start_fax_detect" data="transfer '9978
>                               XML default' 10 ced"/>
>         <action application="bridge" data="user/$1@${domain_name}" />
>       </condition>
>     </extension>
>
>     <extension name="fax_receive">
>   <condition field="destination_number" expression="^9978$">
> <action application="answer" />
> <action application="playback" data="silence_stream://2000"/>
> <action application="rxfax" data="$${base_dir}/faxes/${uuid}.tif"/>
> <action application="hangup"/>
>   </condition>
>     </extension>
>
> Can any one help me?
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180530/20b2f2e9/attachment.html>


More information about the FreeSWITCH-users mailing list