<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">$$ is expanded at config parse/load and $ is expanded every time its encountered. &nbsp;In the example of sofia the domain usually won't change every call where the extension will.<div><br></div><div>/b</div><div><br><div><html>On Apr 17, 2008, at 10:16 AM, Pete Kay wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite">Hi Brian,<br><br>What is the difference between $$ and $ in FS?<br><br>Thanks,<br>Pete<br><br><div class="gmail_quote">On Thu, Apr 17, 2008 at 11:11 PM, Brian West &lt;<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You could also use user/${dialed_ext}@$${domain}<br> <br> in addition you could do sofia/$${domain}/${dialed_ext}<br> <br> /b<br> <div><div></div><div class="Wj3C7c"><br> <br> <br> On Apr 17, 2008, at 9:45 AM, UV wrote:<br> > I'm not sure which build you're using, but I had that problem on sub<br> > version 7946 (RC1).<br> ><br> > There's a "bug" in the conf/dialplan/default.xml example where under<br> > the "Local_Extension" section is says:<br> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;anti-action application="bridge" data="sofia/default/$<br> > {dialed_ext}@$${domain}"/><br> > Where it should actually be:<br> > &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;anti-action application="bridge" data="sofia/default/$<br> > {dialed_ext}%$${domain}"/><br> ><br> > Check <a href="http://wiki.freeswitch.org/wiki/Sofia#Call_a_locally_registered_endpoint" target="_blank">http://wiki.freeswitch.org/wiki/Sofia#Call_a_locally_registered_endpoint</a><br> ><br> > Cheers,<br> > UV<br> > From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br> > ] On Behalf Of Pete Kay<br> > Sent: Thursday, April 17, 2008 6:16 PM<br> > To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br> > Subject: [Freeswitch-users] newbie dialplan question<br> ><br> > Hi,<br> ><br> > I am working on some test on seeing how I can port my exist Asterisk<br> > stuff to Freeswitch. &nbsp;I am just getting started and I am hoping<br> > someone can give me some help to get started.<br> ><br> > I installed with all the default config and xml setting. &nbsp; Then, I<br> > bring up two SiP clients - one in the same machine as freeswitch<br> > (<a href="http://192.168.1.104" target="_blank">192.168.1.104</a>) &nbsp;and the other one on another machine<br> > ( <a href="http://192.168.1.102" target="_blank">192.168.1.102</a>).<br> ><br> > When I dial an extension ( 1001, or 1002... etc ) from my SIP client<br> > on <a href="http://192.168.1.102" target="_blank">192.168.1.102</a>, I can make the call to the other client no problem.<br> > 2008-04-18 00:09:12 [NOTICE] switch_channel.c:531<br> > switch_channel_set_name() New Channel sofia/default/<br> > <a href="http://1002@192.168.1.104:5060" target="_blank">1002@192.168.1.104:5060</a> [9e6d6146-0c98-11dd-bb92-f1e303d528b1]<br> > 2008-04-18 00:09:12 [INFO] mod_dialplan_xml.c:223 dialplan_hunt()<br> > Processing 1002->81001@default<br> > 2008-04-18 00:09:12 [NOTICE] switch_channel.c:531<br> > switch_channel_set_name() New Channel sofia/default/<br> > <a href="http://1001@192.168.1.104:5061" target="_blank">1001@192.168.1.104:5061</a> [9e93e564-0c98-11dd-bb92-f1e303d528b1]<br> > 2008-04-18 00:09:12 [NOTICE] sofia.c:1603 sofia_handle_sip_i_state()<br> > Ring-Ready sofia/default/<a href="http://1001@192.168.1.104:5061" target="_blank">1001@192.168.1.104:5061</a>!<br> ><br> > However, when I dial extension from the other SIP client, the one on<br> > <a href="http://192.168.1.104" target="_blank">192.168.1.104</a>, the call can't be routed.<br> ><br> > 2008-04-18 00:10:34 [NOTICE] switch_channel.c:531<br> > switch_channel_set_name() New Channel sofia/default/<br> > <a href="http://1001@192.168.1.104:5061" target="_blank">1001@192.168.1.104:5061</a> [cf710b58-0c98-11dd-bb92-f1e303d528b1]<br> > 2008-04-18 00:10:34 [INFO] mod_dialplan_xml.c:223 dialplan_hunt()<br> > Processing 1001->1002@public<br> > 2008-04-18 00:10:34 [NOTICE] switch_core_state_machine.c:198<br> > switch_core_standard_on_execute() Hangup sofia/default/<a href="mailto:1001@192.168.1.104">1001@192.168.1.104</a><br> > :5061[CS_EXECUTE] [NORMAL_CLEARING]<br> > 2008-04-18 00:10:34 [NOTICE] switch_core_session.c:748<br> > switch_core_session_thread() Session 20 (sofia/default/<a href="mailto:1001@192.168.1.104">1001@192.168.1.104</a><br> > :5061) Ended<br> ><br> > It seems like the the call is being routed to the wrong context.<br> > How come this happens? &nbsp;I am using the standard default config xml<br> > files. &nbsp;Can anyone please help me?<br> ><br> > With freeswitch, is there anyway to debug/trace the processing of<br> > the call so I can see which condition it is in, and where it is<br> > routed to? &nbsp;That way, I can debug the config easier?<br> ><br> > Thanks alot for all your inputs and help.<br> ><br> > Regards,<br> > Pete<br> > No virus found in this incoming message.<br> > Checked by AVG.<br> > Version: 7.5.519 / Virus Database: 269.23.0/1382 - Release Date: 16-<br> > Apr-08 5:34 PM<br> ><br> ><br> > No virus found in this outgoing message.<br> > Checked by AVG.<br> > Version: 7.5.519 / Virus Database: 269.23.0/1382 - Release Date: 16-<br> > Apr-08 5:34 PM<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> 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> _______________________________________________<br>Freeswitch-users mailing list<br><a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></blockquote></div><br></div></body></html>