<div dir="ltr">this is what my gateway look like:<div><br></div><div><div> <gateways></div><div> <gateway name="whatever"></div><div> <param name="username" value="1001"/></div><div> <param name="realm" value="THE REALM AGAINST UPON WHICH THE HASH WILL BE BUILT"/></div><div> <param name="password" value="password"/></div><div> <param name="extension" value="auto_to_user"/></div><div> <param name="context" value="public"/></div><div> <param name="proxy" value="IP ADDRESS OR DOMAIN"/></div><div> <param name="register" value="true"/></div><div> <param name="register-transport" value="tcp (or udp)"/></div><div> <param name="retry-seconds" value="15"/></div><div> </gateway></div><div> </gateways></div></div><div><br></div><div>This should work... If you get Not Found, try looking at your server's log.</div><div><br></div><div>you also should create an outgoing gateway, even if you're not registering, like:</div><div><br></div><div>assuming the outgoing gateway will not auth-challenge you:</div><div><br></div><div><div> <gateway name="outgoing_gw"></div><div> <param name="username" value="none"/></div><div> <param name="realm" value="whatever"/></div><div> <param name="password" value="none"/></div><div> <param name="context" value="public"/></div><div> <param name="proxy" value="IP ADDRESS OR DOMAIN"/></div><div> <param name="register" value="false"/></div><div> <param name="register-transport" value="tcp (or udp)"/></div><div> <param name="retry-seconds" value="15"/></div><div> </gateway></div></div><div><br></div><div>Adding it to the external is a good idea, so the final config will be:</div><div><br></div><div><br></div><div><div><div> <gateways></div><div><br></div><div> <gateway name="whatever"></div><div> <param name="username" value="1001"/></div><div> <param name="realm" value="THE REALM AGAINST UPON WHICH THE HASH WILL BE BUILT"/></div><div> <param name="password" value="password"/></div><div> <param name="extension" value="auto_to_user"/></div><div> <param name="context" value="public"/></div><div> <param name="proxy" value="IP ADDRESS OR DOMAIN"/></div><div> <param name="register" value="true"/></div><div> <param name="register-transport" value="tcp (or udp)"/></div><div> <param name="retry-seconds" value="15"/></div><div> </gateway></div><div><br></div><div><div> <gateway name="outgoing_gw"></div><div> <param name="username" value="does_not_matter_will_not_be used_but_must_be_set"/></div><div> <param name="realm" value="SAME AS PROXY"/></div><div> <param name="password" value="does_not_matter_will_not_be used_but_must_be_set"/></div><div> <param name="context" value="public"/></div><div> <param name="proxy" value="IP ADDRESS OR DOMAIN"/></div><div> <param name="register" value="false"/></div><div> <param name="register-transport" value="tcp (or udp)"/></div><div> <param name="retry-seconds" value="15"/></div><div> </gateway></div></div><div><br></div><div> </gateways></div></div></div><div><br></div><div><br></div><div>Once this is working and you see it REGED, calls will be coming in (as per "context") on the public dialplan... the you just need to bridge it like:</div><div><br></div><div><div> <span class="gmail-Apple-tab-span" style="white-space:pre">                </span><extension name="forward call"></div><div> <span class="gmail-Apple-tab-span" style="white-space:pre">                        </span><condition field="destination_number" expression="^(whatever your regexp is)$"></div><div> <span class="gmail-Apple-tab-span" style="white-space:pre">                                </span><action application="info"/></div><div> <span class="gmail-Apple-tab-span" style="white-space:pre">                                </span><span style="white-space:pre">        </span><action application="bridge" data="sofia/gateway/outgoing_gw/$1"/></div><div> <span class="gmail-Apple-tab-span" style="white-space:pre">                                </span><action application="hangup"/><br></div><div> <span class="gmail-Apple-tab-span" style="white-space:pre">                        </span></condition></div><div> <span class="gmail-Apple-tab-span" style="white-space:pre">                </span></extension></div></div><div><br></div><div>I hope I was able to help..</div><div><br></div><div>Enjoy freeSWITCH, it's fantastic!</div><div><br></div><div>David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 29, 2016 at 9:40 AM, Scholz, Dieter <span dir="ltr"><<a href="mailto:rd-disc@gmx.net" target="_blank">rd-disc@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
thanks for your comment. The URL you mentioned will be helpful, when I<br>
reach the dialplan stage.<br>
<br>
But at the moment I have problems connecting to the HIPATH maschine. I<br>
gave some more details in another post.<br>
<span class="HOEnZb"><font color="#888888"><br>
Dieter<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
Am 28.09.2016 um 17:25 schrieb Stanislav Sinyagin:<br>
> you need to create one more gateway that will communicate to your SIP<br>
> provider. This gateway can be configured with username and password if<br>
> the ITSP requires authentication.<br>
><br>
> Then, you will need to create the dialplan that accepts calls from<br>
> each of these gateways and routes them to the other gateway.<br>
><br>
> It's quite trivial once you figure out how SIP profiles and dialplan<br>
> contexts work together.<br>
><br>
> Hopefully this will provide you some hints:<br>
> <a href="https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+PBX+Example" rel="noreferrer" target="_blank">https://freeswitch.org/<wbr>confluence/display/FREESWITCH/<wbr>FreeSWITCH+PBX+Example</a><br>
><br>
><br>
><br>
><br>
> On Wed, Sep 28, 2016 at 2:22 PM, Scholz, Dieter <<a href="mailto:rd-disc@gmx.net">rd-disc@gmx.net</a>> wrote:<br>
>> Hello,<br>
>><br>
>> this is my problem:<br>
>><br>
>> I would like to use Freeswitch as a gateway between our Hipath PBX and<br>
>> an external SIP provider.<br>
>><br>
>> For that I created a Hipath SIP account that is working (tested with<br>
>> X-lite). Now I would like to let Freeswitch act as a client using this<br>
>> SIP account. Whenever there is an incoming call Freeswitch should act on<br>
>> it and forward this call to an external SIP provider.<br>
>><br>
>> Is this possible? Does that make sense? Are there alternatives?<br>
>><br>
>> At the moment I'm stuck to configure Freeswitch as a client. I added the<br>
>> Hipath SIP account as a gateway. When I compare the SIP traffic of<br>
>> X-lite and Freeswitch using Wireshark I found out that Freeswitch dows<br>
>> not offer the 'Subscribe' option. Is this the reason why it fails?<br>
>><br>
>> Can you help me?<br>
>><br>
>> Thanks in advance.<br>
>><br>
>> Dieter<br>
>><br>
>> ______________________________<wbr>______________________________<wbr>_____________<br>
>> Professional FreeSWITCH Consulting Services:<br>
>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
>><br>
>> Official FreeSWITCH Sites<br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>><br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> ______________________________<wbr>______________________________<wbr>_____________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
<br>
______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>