hi Filip,<br><br><br>for calling a user... please read this first: <a href="http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML#Dialing_A_Registered_User">http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML#Dialing_A_Registered_User</a><br>
for making a GW register into e.g. asterisk please use this:<br><br><br>&lt;include&gt;<br>  &lt;gateway name=&quot;gw01&quot;&gt;<br>  &lt;param name=&quot;username&quot; value=&quot;USERNAME_ON_ASTERISK&quot;/&gt;<br>  &lt;param name=&quot;realm&quot; value=&quot;ASTERISK_IP_ADDRESS&quot;/&gt;<br>
  &lt;param name=&quot;password&quot; value=&quot;PASSWORD_ON_ASTERISK&quot;/&gt;<br>  &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;<br>  &lt;param name=&quot;caller-id-in-from&quot; value=&quot;true&quot;/&gt;<br>
  &lt;/gateway&gt;<br>&lt;/include&gt;<br><br>this should be enough to register the GW... after that please read this:  <a href="http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML#Dialing_through_gateways">http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML#Dialing_through_gateways</a><br>
<br><br>in your case it will be something like this:<br><br>&lt;extension name=&quot;dialGW&quot;&gt;<br>  &lt;condition field=&quot;destination_number&quot; expression=&quot;^(NUMBER_TO_SEND_TO_ASTERISK)$&quot;&gt;<br>    &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/gw01/$1&quot;/&gt;<br>
  &lt;/condition&gt;<br>&lt;/extension&gt;<br><br><br><br><br><br><br><br><br><br><div class="gmail_quote">On Fri, Sep 18, 2009 at 4:22 PM, Filip Lyncker <span dir="ltr">&lt;<a href="mailto:lyncker@lyth.de">lyncker@lyth.de</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;">Hi List,<br>
<br>
for the first experiments with freeswitch I downloaded the Windows<br>
installation.<br>
Now Im trying to get my 2 Sipphones get connected to. Later I want<br>
connect the freeswitch to my asterisk gateway.<br>
<br>
I find the examples pretty complex therfore Im trying to build up a<br>
simple solution to understand the functions from the scratch ..<br>
<br>
my current problem is , that I cant route my local sips to each other (<br>
registration seems to work now).<br>
the next is , that freeshwitch is not able to connect to asterisk. but I<br>
will describe this later.<br>
<br>
I installed in the Directory a xml file ( called 22.xml) with the<br>
following content :<br>
<br>
&lt;include&gt;<br>
&lt;domain name=&quot;$${domain}&quot;&gt;<br>
  &lt;user id=&quot;22&quot; mailbox=&quot;22&quot;&gt;<br>
    &lt;params&gt;<br>
      &lt;param name=&quot;password&quot; value=&quot;Xk21%&quot;&gt;&lt;/param&gt;<br>
      &lt;param name=&quot;vm-password&quot; value=&quot;22&quot;&gt;&lt;/param&gt;<br>
      &lt;param name=&quot;sip-port&quot; value=&quot;5060&quot;&gt;&lt;/param&gt;<br>
<br>
    &lt;/params&gt;<br>
    &lt;variables&gt;<br>
      &lt;variable name=&quot;accountcode&quot; value=&quot;22&quot;&gt;&lt;/variable&gt;<br>
      &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;&gt;&lt;/variable&gt;<br>
      &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;Extension<br>
22&quot;&gt;&lt;/variable&gt;<br>
      &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;22&quot;&gt;&lt;/variable&gt;<br>
    &lt;/variables&gt;<br>
  &lt;/user&gt;<br>
  &lt;user id=&quot;24&quot; mailbox=&quot;24&quot;&gt;<br>
    &lt;params&gt;<br>
      &lt;param name=&quot;password&quot; value=&quot;dudeldum&quot;&gt;&lt;/param&gt;<br>
      &lt;param name=&quot;vm-password&quot; value=&quot;24&quot;&gt;&lt;/param&gt;<br>
      &lt;param name=&quot;sip-port&quot; value=&quot;5060&quot;&gt;&lt;/param&gt;<br>
<br>
    &lt;/params&gt;<br>
    &lt;variables&gt;<br>
      &lt;variable name=&quot;accountcode&quot; value=&quot;24&quot;&gt;&lt;/variable&gt;<br>
      &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;&gt;&lt;/variable&gt;<br>
      &lt;variable name=&quot;effective_caller_id_name&quot; value=&quot;Extension<br>
24&quot;&gt;&lt;/variable&gt;<br>
      &lt;variable name=&quot;effective_caller_id_number&quot; value=&quot;24&quot;&gt;&lt;/variable&gt;<br>
    &lt;/variables&gt;<br>
  &lt;/user&gt;<br>
  &lt;/domain&gt;<br>
&lt;/include&gt;<br>
<br>
This seems to be ok now. Now I want to dial from 22 to 24 , wherefore I<br>
configured this dialplan :<br>
<br>
&lt;include&gt;<br>
  &lt;context name=&quot;any&quot;&gt;<br>
   &lt;condition field=&quot;destination_number&quot; expression=&quot;^(2[0-9])$&quot;&gt;<br>
<br>
      &lt;action application=&quot;bridge&quot; data=&quot;user/${dialed_extension}&quot;/&gt;<br>
<br>
   &lt;/condition&gt;<br>
&lt;/include&gt;<br>
<br>
wich doesnt work , mybe b/c the user/${dialed_extension} I dont know...<br>
Freeswitch says:<br>
[INFO] switch_core_state_machine.c:136 No Route, Aborting<br>
[NOTICE] switch_core_state_machine.c:137 Hangup<br>
sofia/internal/<a href="mailto:24@192.168.1.34">24@192.168.1.34</a> [CS_ROUTING] [NO_ROUTE_DESTINATION]<br>
[NOTICE] switch_core_session.c:1086 Session 17<br>
(sofia/internal/<a href="mailto:24@192.168.1.34">24@192.168.1.34</a>) Ended<br>
[NOTICE] switch_core_session.c:1088 Close Channel<br>
sofia/internal/<a href="mailto:24@192.168.1.34">24@192.168.1.34</a> [CS_DESTROY]<br>
<br>
Im sure , for you guys this cant be a big deal;)<br>
<br>
<br>
Next Point is my Asterisk registration , mybe you can help me out here<br>
to .. :<br>
<br>
In the sip-profiles/external I installed the my_asterisk.xml with that<br>
content :<br>
<br>
&lt;include&gt;<br>
  &lt;gateway name=&quot;asterisk&quot;&gt;<br>
    &lt;param name=&quot;username&quot; value=&quot;28&quot;&gt;&lt;/param&gt;<br>
    &lt;param name=&quot;password&quot; value=&quot;test&quot;&gt;&lt;/param&gt;<br>
    &lt;param name=&quot;realm&quot; value=&quot;28&quot;&gt;&lt;/param&gt;<br>
    &lt;param name=&quot;proxy&quot; value=&quot;192.168.1.119&quot;&gt;&lt;/param&gt;<br>
    &lt;param name=&quot;register&quot; value=&quot;true&quot;&gt;&lt;/param&gt;<br>
  &lt;/gateway&gt;<br>
&lt;/include&gt;<br>
<br>
Freeswitch allways complains a timeout error :<br>
 [ERR] sofia_reg.c:1460 asterisk Registration Failed with status Request<br>
Timeout [408]. failure #17<br>
 [WARNING] sofia_reg.c:364 asterisk Failed Registration, setting retry<br>
to 540 seconds.<br>
<br>
it seems that It cant connect ( I also tried out to explicit set the<br>
port to 5060 b/c I read something about 5080 .. : &lt;param name=&quot;sip-port&quot;<br>
value=&quot;5060&quot;&gt;&lt;/param&gt; but this didnt help)<br>
In my Asterisk I set in the sip.conf the entry 28 with the pw test ....<br>
<br>
<br>
If someone could help me with my first steps I would be verrry thankful ;))<br>
<br>
cheers<br>
<br>
<br>
Filip<br>
<br>
--<br>
_________________________________<br>
Filip Lyncker, Dipl.-Inform. (FH)<br>
<br>
<br>
Lyncker &amp; Theis GmbH<br>
Wilhelmstr. 16<br>
65185 Wiesbaden<br>
Germany<br>
<br>
Fon +49 611/9006951<br>
Fax +49 611/9406125<br>
<br>
<br>
Handelsregister: HRB 23156 Amtsgericht Wiesbaden<br>
Steuernummer: 4023897051<br>
USt-IdNr.: DE255806399<br>
<br>
Geschäftsführer:<br>
Filip Lyncker,<br>
Armin Theis<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>