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