HEllo,<div><br></div><div>Thanks for the reply. Tried that but doesn't work. </div><div><br></div><div>I register asterisk on FS.</div><div><br></div><div>FS sends an "s@whatever" in the invite, with the actual number on the "Contact" header.</div>
<div>but I set this on asterisk dialplan and now it works:</div><div><br></div><div><div>exten => s,1,Goto(CONTEXT,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1)</div><div><br></div><div>thanks!</div><br><div class="gmail_quote">
On Thu, Mar 15, 2012 at 3:22 AM, Gabriel Gunderson <span dir="ltr"><<a href="mailto:gabe@gundy.org">gabe@gundy.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Mar 14, 2012 at 6:32 PM, David Villasmil<br>
<<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> wrote:<br>
> I register an asterisk with with, say with username 1001. I receive a call<br>
> from user 2 and want to terminate what 1002 sends with the gateway (not a<br>
> gateway per se, but a registered user).<br>
<br>
</div>I think you may have it backwards. If you want your Asterisk server to<br>
act as the GW to FreeSWITCH (you send calls from FS to Asterisk and it<br>
hit's its own dialplan), then you would setup a gateway in FreeSWITCH<br>
(see the sofia profie). You don't *need* FreeSWITCH to register to its<br>
GWs, but you can if you like.<br>
<br>
Then from FS's perspective, you would dial it like so:<br>
sofia/gateway/NAME_OF_GW/NUMBER_TO_DIAL<br>
<br>
I'm sorry if I misunderstood what you're doing, but I hope this helps.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Best,<br>
Gabe<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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.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>
</div></div></blockquote></div><br></div>