hello,
I can receive and send a fax in php already.
Now, I want to set a specific fxo port, not the whole gateway, to send a fax.
What configuration should I set?
The environment is described as follow:
a freeswitch server based on winxp.
server ip: 192.168.1.1
a
WellGate 2644 gateway which has 4 fxo and 4 fxs. each fxs/fxo port can register an sip account to freeswitch
gateway ip: 192.168.1.2
i config my gateway as below in freeswitch:
<gateways>
<gateway name="faxgw">
<param name="username" value="0000"/>
<param name="password" value="0000"/>
<param name="realm" value="192.168.1.2"/>
<param name="register" value="false"/>
</gateway>
</gateways>
the gateway register 2 user as below
<user id="pstn_fxo1">
<params>
<param name="password" value="1234" />
</params>
<variables>
<variable name="user_context" value="default"/>
<variable name="toll_allow" value="domestic,international,local" />
<variable name="effective_caller_id_name" value="pstn_fxo1" />
</variables>
</user>
<user id="pstn_fxo2">
<params>
<param name="password" value="1234" />
</params>
<variables>
<variable name="user_context" value="default"/>
<variable name="toll_allow" value="domestic,international,local" />
<variable name="effective_caller_id_name" value="pstn_fxo2" />
</variables>
</user>
"api originate sofia/gateway/faxgw/". $dest_phone_number. " &txfax(tmp.tif)"
my problem is
1. How to send fax via fxo2 pstn line
Should i bridge to user "pstn_fxo2" first and then dial number?
I try to use
"api originate sofia/internal/pstn_fxo2 ".$dest_phone_number. " &txfax(tmp.tif)"
but it didnt work
2. In <gateway> config
The "username" and "password" seem no effect. I just set the "realm" to my gateway ip and it works.
And the "register" i dont know it too.
The document didnt describe it clearly, can u explain it for me
Thank you sincerely.
Joy