Just a note, the syntax for using a gateway is:<div><br></div><div>sofia/gateway/<gateway name>/<target></div><div><br></div><div>If you do this:</div><div><br></div><div>sofia/<gateway name>/<target></div>
<div><br></div><div>...then FS will look for a *SIP profile* named <gateway name>. Hope this helps. :)</div><div><br></div><div>-MC<br><br><div class="gmail_quote">On Sun, Dec 19, 2010 at 2:00 PM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">First of all, I would recommend you configure the gateway within the<br>
<gateways> section of the SIP profile. The dialstring will then be<br>
sofia/gwname/$1. That format has an advantage because FS will monitor<br>
the status of the gateway and automatically mark it as offline and<br>
stop sending traffic to it if it stops responding.<br>
<br>
When configuring a gateway you can specify a domain name instead of an<br>
IP. If you combine that with a service such as <a href="http://www.dyndns.org" target="_blank">www.dyndns.org</a> you can<br>
run the gateway on a dynamic IP.<br>
<br>
Also, have you tried:<br>
<action application="bridge" data="sofia/internal/$1@<domain>"/><br>
that might work, but I've never tried it with anything but an IP so<br>
can't say for sure without trying it.<br>
<br>
This does not do what you think it does:<br>
<div class="im"><action application="bridge" data="sofia/internal/userGateway%{domain}^$1"/><br>
</div>The % syntax is for dialing an extension on the *local* server, on the<br>
{domain} handled by the current server. That won't send a call out to<br>
a gateway.<br>
<br>
-Steve<br>
<div><div></div><div class="h5"><br>
<br>
On 19 December 2010 20:17, Octavio Duarte <<a href="mailto:xduvox@gmail.com">xduvox@gmail.com</a>> wrote:<br>
> Hello everyone<br>
><br>
> i need some help with a gateway, i can receive calls from it because i can<br>
> use it as a user so i can see it by sofia status profile internal<br>
> but when i try to make a call to the PSTN like this<br>
><br>
><br>
> <action application="bridge" data="sofia/internal/userGateway%{domain}^$1"/><br>
><br>
> the gateway doesn't dial the number on variable $1<br>
><br>
> so when to do like this<br>
><br>
> <action application="bridge" data="sofia/internal/$1@<gateway_IP>"/><br>
><br>
><br>
> the gateway connect the calls to the PSTN<br>
><br>
> my problem its that the gateway does not have an static IP and i want to<br>
> know<br>
> if it is possible to make calls through this gateway if<br>
> it has a variable IP, and how to do it if so;<br>
><br>
> the gateway uses SIP accounts to register to FS so i think it might be<br>
> possible to know the IP's gateway by using one of the registered extension<br>
> or tell fs to use the ip of one user for the gateway set up?<br>
><br>
><br>
> Anyone has ideas or knows how to do this?, help is greatly appreciated!<br>
><br>
</div></div>> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>