I have a proxy in front of freeswitch. I want freeswitch to use the proxy for everything including the termination to my provider.
If I configured the gateway like this:
<include>
<gateway name="myprovider">
<param name="username" value="username" />
<param name="auth-username" value="username"/>
<param name="password" value="password" />
<param name="register" value="true"/>
<param name="caller-id-in-from" value="true"/>
</gateway>
</include>
The registration works properly, the REGISTER goes to the proxy like
and the proxy forwards it fine, and registration works great.
But when i try to call via this gateway, the call goes STRAIGHT to the provider!
If, on the other hand, i configure my gateway as:
<include>
<gateway name="myprovider">
<param name="username" value="username" />
<param name="auth-username" value="username"/>
<param name="password" value="password" />
<param name="register" value="true"/>
<param name="caller-id-in-from" value="true"/>
</gateway>
</include>
Registration does NOT work, because the uri is:
Because there it no registration on that proxy!
Please help me with this!