[Freeswitch-users] Send calls through registered gateway

David Villasmil david.villasmil.work at gmail.com
Sat Mar 17 03:38:06 MSK 2012


HEllo,

Thanks for the reply. Tried that but doesn't work.

I register asterisk on FS.

FS sends an "s at whatever" in the invite, with the actual number on the
"Contact" header.
but I set this on asterisk dialplan and now it works:

exten => s,1,Goto(CONTEXT,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1)

thanks!

On Thu, Mar 15, 2012 at 3:22 AM, Gabriel Gunderson <gabe at gundy.org> wrote:

> On Wed, Mar 14, 2012 at 6:32 PM, David Villasmil
> <david.villasmil.work at gmail.com> wrote:
> > I register an asterisk with with, say with username 1001. I receive a
> call
> > from user 2 and want to terminate what 1002 sends with the gateway (not a
> > gateway  per se, but a registered user).
>
> I think you may have it backwards. If you want your Asterisk server to
> act as the GW to FreeSWITCH (you send calls from FS to Asterisk and it
> hit's its own dialplan), then you would setup a gateway in FreeSWITCH
> (see the sofia profie). You don't *need* FreeSWITCH to register to its
> GWs, but you can if you like.
>
> Then from FS's perspective, you would dial it like so:
> sofia/gateway/NAME_OF_GW/NUMBER_TO_DIAL
>
> I'm sorry if I misunderstood what you're doing, but I hope this helps.
>
>
> Best,
> Gabe
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120317/31378883/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list