<div dir="ltr">this is what my gateway look like:<div><br></div><div><div>  &lt;gateways&gt;</div><div>        &lt;gateway name=&quot;whatever&quot;&gt;</div><div>                &lt;param name=&quot;username&quot; value=&quot;1001&quot;/&gt;</div><div>                &lt;param name=&quot;realm&quot; value=&quot;THE REALM AGAINST UPON WHICH THE HASH WILL BE BUILT&quot;/&gt;</div><div>                &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;</div><div>                &lt;param name=&quot;extension&quot; value=&quot;auto_to_user&quot;/&gt;</div><div>                &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</div><div>                &lt;param name=&quot;proxy&quot; value=&quot;IP ADDRESS OR DOMAIN&quot;/&gt;</div><div>                &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;</div><div>                &lt;param name=&quot;register-transport&quot; value=&quot;tcp (or udp)&quot;/&gt;</div><div>                &lt;param name=&quot;retry-seconds&quot; value=&quot;15&quot;/&gt;</div><div>        &lt;/gateway&gt;</div><div>  &lt;/gateways&gt;</div></div><div><br></div><div>This should work... If you get Not Found, try looking at your server&#39;s log.</div><div><br></div><div>you also should create an outgoing gateway, even if you&#39;re not registering, like:</div><div><br></div><div>assuming the outgoing gateway will not auth-challenge you:</div><div><br></div><div><div>        &lt;gateway name=&quot;outgoing_gw&quot;&gt;</div><div>                &lt;param name=&quot;username&quot; value=&quot;none&quot;/&gt;</div><div>                &lt;param name=&quot;realm&quot; value=&quot;whatever&quot;/&gt;</div><div>                &lt;param name=&quot;password&quot; value=&quot;none&quot;/&gt;</div><div>                &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</div><div>                &lt;param name=&quot;proxy&quot; value=&quot;IP ADDRESS OR DOMAIN&quot;/&gt;</div><div>                &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;</div><div>                &lt;param name=&quot;register-transport&quot; value=&quot;tcp (or udp)&quot;/&gt;</div><div>                &lt;param name=&quot;retry-seconds&quot; value=&quot;15&quot;/&gt;</div><div>        &lt;/gateway&gt;</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>  &lt;gateways&gt;</div><div><br></div><div>        &lt;gateway name=&quot;whatever&quot;&gt;</div><div>                &lt;param name=&quot;username&quot; value=&quot;1001&quot;/&gt;</div><div>                &lt;param name=&quot;realm&quot; value=&quot;THE REALM AGAINST UPON WHICH THE HASH WILL BE BUILT&quot;/&gt;</div><div>                &lt;param name=&quot;password&quot; value=&quot;password&quot;/&gt;</div><div>                &lt;param name=&quot;extension&quot; value=&quot;auto_to_user&quot;/&gt;</div><div>                &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</div><div>                &lt;param name=&quot;proxy&quot; value=&quot;IP ADDRESS OR DOMAIN&quot;/&gt;</div><div>                &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;</div><div>                &lt;param name=&quot;register-transport&quot; value=&quot;tcp (or udp)&quot;/&gt;</div><div>                &lt;param name=&quot;retry-seconds&quot; value=&quot;15&quot;/&gt;</div><div>        &lt;/gateway&gt;</div><div><br></div><div><div>        &lt;gateway name=&quot;outgoing_gw&quot;&gt;</div><div>                &lt;param name=&quot;username&quot; value=&quot;does_not_matter_will_not_be used_but_must_be_set&quot;/&gt;</div><div>                &lt;param name=&quot;realm&quot; value=&quot;SAME AS PROXY&quot;/&gt;</div><div>                &lt;param name=&quot;password&quot; value=&quot;does_not_matter_will_not_be used_but_must_be_set&quot;/&gt;</div><div>                &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</div><div>                &lt;param name=&quot;proxy&quot; value=&quot;IP ADDRESS OR DOMAIN&quot;/&gt;</div><div>                &lt;param name=&quot;register&quot; value=&quot;false&quot;/&gt;</div><div>                &lt;param name=&quot;register-transport&quot; value=&quot;tcp (or udp)&quot;/&gt;</div><div>                &lt;param name=&quot;retry-seconds&quot; value=&quot;15&quot;/&gt;</div><div>        &lt;/gateway&gt;</div></div><div><br></div><div>  &lt;/gateways&gt;</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 &quot;context&quot;) 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>&lt;extension name=&quot;forward call&quot;&gt;</div><div>       <span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>&lt;condition field=&quot;destination_number&quot; expression=&quot;^(whatever your regexp is)$&quot;&gt;</div><div>       <span class="gmail-Apple-tab-span" style="white-space:pre">                                </span>&lt;action application=&quot;info&quot;/&gt;</div><div>       <span class="gmail-Apple-tab-span" style="white-space:pre">                                </span><span style="white-space:pre">        </span>&lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/outgoing_gw/$1&quot;/&gt;</div><div>       <span class="gmail-Apple-tab-span" style="white-space:pre">                                </span>&lt;action application=&quot;hangup&quot;/&gt;<br></div><div>       <span class="gmail-Apple-tab-span" style="white-space:pre">                        </span>&lt;/condition&gt;</div><div>       <span class="gmail-Apple-tab-span" style="white-space:pre">                </span>&lt;/extension&gt;</div></div><div><br></div><div>I hope I was able to help..</div><div><br></div><div>Enjoy freeSWITCH, it&#39;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">&lt;<a href="mailto:rd-disc@gmx.net" target="_blank">rd-disc@gmx.net</a>&gt;</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>
&gt; you need to create one more gateway that will communicate to your SIP<br>
&gt; provider. This gateway can be configured with username and password if<br>
&gt; the ITSP requires authentication.<br>
&gt;<br>
&gt; Then, you will need to create the dialplan that accepts calls from<br>
&gt; each of these gateways and routes them to the other gateway.<br>
&gt;<br>
&gt; It&#39;s quite trivial once you figure out how SIP profiles and dialplan<br>
&gt; contexts work together.<br>
&gt;<br>
&gt; Hopefully this will provide you some hints:<br>
&gt; <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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Sep 28, 2016 at 2:22 PM, Scholz, Dieter &lt;<a href="mailto:rd-disc@gmx.net">rd-disc@gmx.net</a>&gt; wrote:<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; this is my problem:<br>
&gt;&gt;<br>
&gt;&gt; I would like to use Freeswitch as a gateway between our Hipath PBX and<br>
&gt;&gt; an external SIP provider.<br>
&gt;&gt;<br>
&gt;&gt; For that I created a Hipath SIP account that is working (tested with<br>
&gt;&gt; X-lite). Now I would like to let Freeswitch act as a client using this<br>
&gt;&gt; SIP account. Whenever there is an incoming call Freeswitch should act on<br>
&gt;&gt; it and forward this call to an external SIP provider.<br>
&gt;&gt;<br>
&gt;&gt; Is this possible? Does that make sense? Are there alternatives?<br>
&gt;&gt;<br>
&gt;&gt; At the moment I&#39;m stuck to configure Freeswitch as a client. I added the<br>
&gt;&gt; Hipath SIP account as a gateway. When I compare the SIP traffic of<br>
&gt;&gt; X-lite and Freeswitch using Wireshark I found out that Freeswitch dows<br>
&gt;&gt; not offer the &#39;Subscribe&#39; option. Is this the reason why it fails?<br>
&gt;&gt;<br>
&gt;&gt; Can you help me?<br>
&gt;&gt;<br>
&gt;&gt; Thanks in advance.<br>
&gt;&gt;<br>
&gt;&gt; Dieter<br>
&gt;&gt;<br>
&gt;&gt; ______________________________<wbr>______________________________<wbr>_____________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
&gt;&gt; <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>
&gt;&gt; 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>
&gt;&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; ______________________________<wbr>______________________________<wbr>_____________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
&gt; <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
&gt; <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>
&gt; 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>
&gt; <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>