I highly recommend that you set aside this endeavor for the time being and use the default configuration. Once you get familiar with the default config then you&#39;ll realize how to make changes to registered users and to the dialplan. Don&#39;t let the size of the default configuration scare you off. It is very well designed, and much of it is compartmentalized, which means you can changes in a single file without affecting the rest of the configuration.<br>
<br>Now for the usual questions:<br>What platform are you on? Linux? <br>Did you use SVN? (We highly recommend using SVN)<br>Have you seen the wiki pages on installing FS?<br>If you&#39;re running on Linux then I recommend a clean install using the method documented here:<br>
<a href="http://wiki.freeswitch.org/wiki/Quick_and_Dirty_Install">http://wiki.freeswitch.org/wiki/Quick_and_Dirty_Install</a><br><br>Let us know how it goes.<br>-MC<br><br><div class="gmail_quote">On Mon, Apr 13, 2009 at 9:56 AM, Martin Fiala <span dir="ltr">&lt;<a href="mailto:fialkam@gmail.com">fialkam@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello.<br>
<br>
I&#39;m trying to use freeswitch, was able to compile it without problems,<br>
which is very nice. Then studying the configurations etc., I managed<br>
to set up SIP accounts those register properly. But now, if I want to<br>
call one registered account from the other one, I get error 404 - not<br>
found. I tried to set up a minimalistic dialplan using xml syntax as<br>
well as asterisk syntax but neither worked for me. I changed just a<br>
few thing, I&#39;ll list them later. I&#39;m trying to make calls using ip<br>
addresses and ports instead of domain names..<br>
<br>
This is the error freeswitch outputs:<br>
2009-04-13 18:35:48 [NOTICE] switch_channel.c:567<br>
switch_channel_set_name() New Channel sofia/internal/<a href="mailto:02@192.168.2.100">02@192.168.2.100</a><br>
[19bad83a-ec9a-4b59-8457-cd76f1eaef65]<br>
2009-04-13 18:35:48 [INFO] mod_dialplan_xml.c:233 dialplan_hunt()<br>
Processing 02-&gt;01 in context default<br>
2009-04-13 18:35:48 [NOTICE] switch_ivr.c:1343<br>
switch_ivr_session_transfer() Transfer sofia/internal/<a href="mailto:02@192.168.2.100">02@192.168.2.100</a><br>
to enum[01@default]<br>
2009-04-13 18:35:50 [INFO] switch_core_state_machine.c:122<br>
switch_core_standard_on_routing() No Route, Aborting<br>
2009-04-13 18:35:50 [NOTICE] switch_core_state_machine.c:123<br>
switch_core_standard_on_routing() Hangup<br>
sofia/internal/<a href="mailto:02@192.168.2.100">02@192.168.2.100</a> [CS_ROUTING] [NO_ROUTE_DESTINATION]<br>
2009-04-13 18:35:50 [NOTICE] switch_core_session.c:970<br>
switch_core_session_thread() Session 1<br>
(sofia/internal/<a href="mailto:02@192.168.2.100">02@192.168.2.100</a>) Ended<br>
2009-04-13 18:35:50 [NOTICE] switch_core_session.c:972<br>
switch_core_session_thread() Close Channel<br>
sofia/internal/<a href="mailto:02@192.168.2.100">02@192.168.2.100</a> [CS_HANGUP]<br>
<br>
My users are added in file users.xml in directory/ :<br>
&lt;include&gt;<br>
  &lt;user id=&quot;01&quot; mailbox=&quot;01&quot;&gt;<br>
    &lt;params&gt;<br>
      &lt;param name=&quot;password&quot; value=&quot;01&quot;/&gt;<br>
      &lt;param name=&quot;vm-password&quot; value=&quot;01&quot;/&gt;<br>
    &lt;/params&gt;<br>
    &lt;variables&gt;<br>
      &lt;variable name=&quot;accountcode&quot; value=&quot;01&quot;/&gt;<br>
      &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>
      &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;01&quot;/&gt;<br>
      &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;01&quot;/&gt;<br>
    &lt;/variables&gt;<br>
  &lt;/user&gt;<br>
  &lt;user id=&quot;02&quot; mailbox=&quot;02&quot;&gt;<br>
    &lt;params&gt;<br>
      &lt;param name=&quot;password&quot; value=&quot;02&quot;/&gt;<br>
      &lt;param name=&quot;vm-password&quot; value=&quot;02&quot;/&gt;<br>
    &lt;/params&gt;<br>
    &lt;variables&gt;<br>
      &lt;variable name=&quot;accountcode&quot; value=&quot;02&quot;/&gt;<br>
      &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>
      &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;02&quot;/&gt;<br>
      &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;02&quot;/&gt;<br>
    &lt;/variables&gt;<br>
  &lt;/user&gt;<br>
&lt;/include&gt;<br>
<br>
<br>
<br>
I&#39;ve added the file dialplan/default/000_default.xml with contents:<br>
&lt;extension name=&quot;internal&quot;&gt;<br>
  &lt;condition field=&quot;source&quot; expression=&quot;mod_sofia&quot; /&gt;<br>
  &lt;condition field=&quot;destination_number&quot; expression=&quot;^(4\d+)&quot;&gt;<br>
    &lt;action application=&quot;bridge&quot; data=&quot;sofia/internal/$<a href="http://0@192.168.2.100:5060" target="_blank">0@192.168.2.100:5060</a>&quot; /&gt;<br>
  &lt;/condition&gt;<br>
&lt;/extension&gt;<br>
That&#39;s from sample configs, I wonder, if the IP address can be used<br>
like that. I understand it that way, the ip address specified is of<br>
registrar server. I&#39;ve added the port as I&#39;m testing it on local loop<br>
and thus am running different sip services on the same ip (freeswitch<br>
and calling softfones). Is that ok?<br>
<br>
<br>
<br>
extensions.conf I&#39;ve tried to use:<br>
[default]<br>
<br>
; Things you&#39;re used to....<br>
;exten =&gt; music,n,Dial(SIP/<a href="mailto:1234@conference.freeswitch.org">1234@conference.freeswitch.org</a>|120)<br>
<br>
;exten =&gt; _1XXXXX,n,set(cool=${EXTEN})<br>
;exten =&gt; _1XXXXX,n,set(myvar=true)<br>
;exten =&gt; _1XXXXX,n,Goto(default|music)<br>
;exten =&gt; 2137991400/1000,n,Goto(default|music)<br>
<br>
<br>
; Some new magic you can do....<br>
;exten =&gt; ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,enum($1)<br>
;exten =&gt; ~^(18(0{2}|8{2}|7{2}|6{2})\d{7})$,n,bridge(${enum_auto_route})<br>
<br>
; instead of exten, put anything about the call you would rather match on.<br>
; either the names of a field in caller_profile or a string of<br>
variables to expand.<br>
;caller_id_number =&gt; 2137991400,n,Goto(default|music)<br>
;${sip_from_user} =&gt; bill,n,Goto(default|music)<br>
<br>
[pbx]<br>
exten =&gt; 01,1,Dial(SIP/01,20)<br>
exten =&gt; 02,1,Dial(SIP/02,20)<br>
<br>
<br>
<br>
<br>
When using extensions.conf I&#39;ve changed this line in<br>
sip_profiles/internal.xml from:<br>
&lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br>
to<br>
&lt;param name=&quot;dialplan&quot; value=&quot;asterisk,XML&quot;/&gt;<br>
I didn&#39;t make any other changes in that file.<br>
<br>
<br>
I didn&#39;t change anything else.<br>
<br>
I&#39;m trying to use two sip phones - one using port 6001 (user &quot;01&quot;)<br>
and the other one 5000 (user &quot;02&quot;). After registration succeeds,<br>
calling this sip uri : <a href="http://sip:01@192.168.2.100:5060" target="_blank">sip:01@192.168.2.100:5060</a>, where<br>
<a href="http://192.168.2.100:5060" target="_blank">192.168.2.100:5060</a> is IP:PORT of freeswitch (the IP is same for<br>
softphones.. the same machine).<br>
<br>
Thanks for any help.<br>
Fiala<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>