User directory = Inbound registration<br>Gateway = Outbound registration<br><br>-Steve<br><br><br><div class="gmail_quote">On 27 May 2011 07:30, Иван Чистяков <span dir="ltr">&lt;<a href="mailto:zetruger@gmail.com">zetruger@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Use directory for SIP clients (hardphone, softphone) instead gateways.<br>
Use gateway just for SIP providers (SIP trunks).<br>
<br>
Simple test (run from FS console):<br>
originate sofia/internal/outboundtest@x.x.x.x:p<br>
&amp;bridge(sofia/internal/inboundtest@x.x.x.x:p)<br>
<br>
2011/5/27 Cyril Zlachevsky &lt;<a href="mailto:cyril.zlachevsky@gmail.com">cyril.zlachevsky@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hello,<br>
&gt; I have success with compiling and installing latest (1.0.7) FreeSWITCH on my server.<br>
&gt; But all my today attempts to configure FreeSWITCH as softswitch failed and I really need help.<br>
&gt;<br>
&gt; FreeSWITCH server (IP 88.198.XXX.XXX) have to receive SIP calls from the one IP address (X-Lite<br>
&gt; softphone with dynamic IP from subnet <a href="http://92.112.0.0/16" target="_blank">92.112.0.0/16</a>) and forward this calls to the hardware SIP<br>
&gt; phone (Asotel, IP 195.225.XXX.XXX). SIP mode on hardware softphone (Asotel) is peer-to-peer.<br>
&gt;<br>
&gt; Direct calls from X-Lite to Asotel complete with success - I always hear incoming ring when dial<br>
&gt; 7777. But through FreeSWITCH calls always fail.<br>
&gt;<br>
&gt; I created four configuration files - all other configs I left unchanged:<br>
&gt; 1) conf/sip-profiles/internal/X-Lite.xml:<br>
&gt; &lt;include&gt;<br>
&gt;   &lt;gateway name=&quot;X-Lite&quot;&gt;<br>
&gt;     &lt;param name=&quot;username&quot; value=&quot;inboundtest&quot;/&gt;<br>
&gt;     &lt;param name=&quot;password&quot; value=&quot;test&quot;/&gt;<br>
&gt;     &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;<br>
&gt;   &lt;/gateway&gt;<br>
&gt; &lt;/include&gt;<br>
&gt;<br>
&gt; 2) conf/sip-profiles/external/Asotel.xml:<br>
&gt; &lt;include&gt;<br>
&gt;   &lt;gateway name=&quot;Asotel&quot;&gt;<br>
&gt;     &lt;param name=&quot;realm&quot; value=&quot;195.225.XXX.XXX&quot;/&gt;<br>
&gt;     &lt;param name=&quot;username&quot; value=&quot;outboundtest&quot;/&gt;<br>
&gt;     &lt;param name=&quot;password&quot; value=&quot;test&quot;/&gt;<br>
&gt;     &lt;param name=&quot;register&quot; value=&quot;true&quot;/&gt;<br>
&gt;   &lt;/gateway&gt;<br>
&gt; &lt;/include&gt;<br>
&gt;<br>
&gt; 3) conf/dialplan/public/test.xml:<br>
&gt; &lt;include&gt;<br>
&gt;   &lt;extension name=&quot;test&quot;&gt;<br>
&gt;       &lt;condition field=&quot;destination_number&quot; expression=&quot;^7777$&quot;&gt;<br>
&gt;         &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/Asotel/$1&quot;/&gt;<br>
&gt;       &lt;/condition&gt;<br>
&gt;     &lt;/extension&gt;<br>
&gt; &lt;/include&gt;<br>
&gt;<br>
&gt; 4) conf/directory/default/inboundtest.xml:<br>
&gt; &lt;include&gt;<br>
&gt;   &lt;user id=&quot;inboundtest&quot; cidr=&quot;<a href="http://92.112.0.0/16" target="_blank">92.112.0.0/16</a>&quot;&gt;<br>
&gt;     &lt;params&gt;<br>
&gt;       &lt;param name=&quot;from-domain&quot; value=&quot;88.198.XXX.XXX&quot;/&gt;<br>
&gt;       &lt;param name=&quot;password&quot; value=&quot;test&quot;/&gt;<br>
&gt;     &lt;/params&gt;<br>
&gt;   &lt;/user&gt;<br>
&gt; &lt;/include&gt;<br>
&gt;<br>
&gt;<br>
&gt; This debug from Asotel ip-phone:<br>
&gt; ---begin---<br>
&gt; Incoming CallLeg at callleg created 0x57d334 Incoming CallLeg at MsgReceived 0x57d334  *** $1 was<br>
&gt; being Invited ***<br>
&gt;  &gt;&gt;&gt; All call occupied. &lt;&lt;&lt;<br>
&gt; No slot availabe for this call...<br>
&gt; FindIPCall...All Slot is Busy<br>
&gt; RvSipCallLegReject(486), hCallLeg: 57d334<br>
&gt; --&gt; Message Sent (Message type: 1) (call-leg 57d334)<br>
&gt; SIP/2.0 486 Busy Here<br>
&gt; From: &quot;inboundtest&quot;&lt;sip:outboundtest@195.225.XXX.XXX;transport=udp&gt;;tag=vgpp5vSBgcX6p<br>
&gt; To: &lt;sip:$1@195.225.XXX.XXX&gt;;tag=c3e19fb6-13c4-4ddecb5a-1f577-5f2a<br>
&gt; Call-ID: 232b19fe-0285-122f-b5b5-1b5bdf4f9807<br>
&gt; CSeq: 12887277 INVITE<br>
&gt; Via: SIP/2.0/UDP 88.198.XXX.XXX:5080;rport=5080;branch=z9hG4bKv0XUcNtvK3c2K<br>
&gt; Supported: replaces<br>
&gt; User-Agent: FXS_GW (1asipfxs.109)<br>
&gt; Content-Length: 0<br>
&gt; ---end---<br>
&gt;<br>
&gt; In freeswitch log I can see this:<br>
&gt; ---begin---<br>
&gt; [NOTICE] switch_channel.c:816 New Channel sofia/internal inboundtest@88.198.XXX.XXX<br>
&gt; [bf8e8081-eaf1-453e-a643-ee03df36ba0f]<br>
&gt; [INFO] mod_dialplan_xml.c:336 Processing inboundtest &lt;inboundtest&gt;-&gt;7777 in context public<br>
&gt; [NOTICE] switch_channel.c:816 New Channel sofia/external/$1 [4beaba1f-c9c6-4ed7-94c5-efec453e895a]<br>
&gt; [NOTICE] sofia.c:5416 Hangup sofia/external/$1 [CS_CONSUME_MEDIA] [USER_BUSY]<br>
&gt; [INFO] mod_dptools.c:2685 Originate Failed.  Cause: USER_BUSY<br>
&gt; [NOTICE] mod_dptools.c:2799 Hangup sofia/internal/inboundtest@88.198.XXX.XXX [CS_EXECUTE] [USER_BUSY]<br>
&gt; [NOTICE] switch_core_session.c:1304 Session 1 (sofia/internal/inboundtest@88.198.XXX.XXX) Ended<br>
&gt; [NOTICE] switch_core_session.c:1306 Close Channel sofia/internal/inboundtest@88.198.XXX.XXX [CS_DESTROY]<br>
&gt; [NOTICE] switch_core_session.c:1304 Session 2 (sofia/external/$1) Ended<br>
&gt; [NOTICE] switch_core_session.c:1306 Close Channel sofia/external/$1 [CS_DESTROY]<br>
&gt; ---end---<br>
&gt;<br>
&gt; In my last tests I called to the voip-provider test number and got UNALLOCATED_NUMBER disconnect cause:<br>
&gt; ---begin---<br>
&gt; [NOTICE] switch_channel.c:816 New Channel sofia/internal/inboundtest@88.198.XXX.XXX<br>
&gt; [ee9e4e33-0676-4c9c-9952-ff97c4d8db18]<br>
&gt; [INFO] mod_dialplan_xml.c:336 Processing inboundtest &lt;inboundtest&gt;-&gt;555 in context public<br>
&gt; [NOTICE] switch_channel.c:816 New Channel sofia/external/$1 [b8278ac0-8e90-4d48-bdbf-8d0f608ec35a]<br>
&gt; [NOTICE] sofia.c:5416 Hangup sofia/external/$1 [CS_CONSUME_MEDIA] [UNALLOCATED_NUMBER]<br>
&gt; [INFO] mod_dptools.c:2685 Originate Failed.  Cause: UNALLOCATED_NUMBER<br>
&gt; [NOTICE] mod_dptools.c:2799 Hangup sofia/internal/inboundtest@88.198.XXX.XXX [CS_EXECUTE]<br>
&gt; [UNALLOCATED_NUMBER]<br>
&gt; [NOTICE] switch_core_session.c:1304 Session 1 (sofia/internal/inboundtest@88.198.XXX.XXX) Ended<br>
&gt; [NOTICE] switch_core_session.c:1306 Close Channel sofia/internal/inboundtest@88.198.XXX.XXX [CS_DESTROY]<br>
&gt; [NOTICE] switch_core_session.c:1304 Session 2 (sofia/external/$1) Ended<br>
&gt; [NOTICE] switch_core_session.c:1306 Close Channel sofia/external/$1 [CS_DESTROY]<br>
&gt; ---end---<br>
&gt;<br>
&gt;<br>
&gt; What am I missing here?<br>
&gt;<br>
&gt; Thanks for your help.<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>
&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>
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 style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>