<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">hello,<div><br></div><div>I can receive and send a fax in php already.</div><div><br></div><div>Now, I want to set a specific fxo port, not the whole gateway, to send a fax. </div>
<div><br></div><div>What configuration should I set? </div><div><div><br></div><div>The environment is described as follow:</div><div><br></div><div>a freeswitch server based on winxp. </div><div>server ip: 192.168.1.1</div>
<div><br></div><div><div><div>a <a href="http://www.welltech.com/product_e_0r.htm" target="_blank" style="color: rgb(42, 93, 176); ">WellGate 2644</a> gateway which has 4 fxo and 4 fxs. each fxs/fxo port can register an sip account to freeswitch</div>
</div></div><div>gateway ip: 192.168.1.2</div><div><br></div><div>i config my gateway as below in freeswitch:</div><div><div> <gateways></div><div> <gateway name="faxgw"></div><div><span style="white-space: pre-wrap; ">        </span><param name="username" value="0000"/></div>
<div><span style="white-space: pre-wrap; ">        </span><param name="password" value="0000"/></div><div><span style="white-space: pre-wrap; ">        </span><param name="realm" value="192.168.1.2"/></div>
<div> <param name="register" value="false"/></div><div> </gateway></div><div> </gateways></div><div> </div></div><div><br></div></div><div>the gateway register 2 user as below</div>
<div><div><div><div><div><div><div><div> <user id="pstn_fxo1"></div><div> <params></div><div> <param name="password" value="1234" /></div><div> </params></div>
<div> <variables></div><div> <variable name="user_context" value="default"/></div><div> <variable name="toll_allow" value="domestic,international,local" /></div>
<div> <variable name="effective_caller_id_name" value="pstn_fxo1" /></div><div> </variables></div><div> </user></div></div><div><br></div><div><div><div><div><div> <user id="pstn_fxo2"></div>
<div> <params></div><div> <param name="password" value="1234" /></div><div> </params></div><div> <variables></div><div> <variable name="user_context" value="default"/></div>
<div> <variable name="toll_allow" value="domestic,international,local" /></div><div> <variable name="effective_caller_id_name" value="pstn_fxo2" /></div><div> </variables></div>
<div> </user></div></div><div><br></div></div></div></div></div></div></div></div></div></div><div><br></div><div>in my php file, i can send the fax via fxo1 pstn line (use <a href="http://wiki.freeswitch.org/wiki/PHP_Event_Socket" target="_blank" style="color: rgb(42, 93, 176); ">event_socket_request</a>) and the command is </div>
<div>"api originate sofia/gateway/faxgw/". $dest_phone_number. " &txfax(tmp.tif)"</div><div><br></div><div>my problem is</div><div>1. How to send fax via fxo2 pstn line</div><div> Should i bridge to user "pstn_fxo2" first and then dial number?</div>
<div> I try to use</div><div> "api originate sofia/internal/pstn_fxo2 ".$dest_phone_number. " &txfax(tmp.tif)"</div><div> but it didnt work</div><div><br></div><div>2. In <gateway> config</div>
<div> The "username" and "password" seem no effect. I just set the "realm" to my gateway ip and it works.</div><div> And the "register" i dont know it too.</div><div> The document didnt describe it clearly, can u explain it for me</div>
<div><br></div><div>Thank you sincerely.</div><div><br></div><div>Joy</div></span>