Is FS book 1.0.7 available ?<br><br>Regds<br><br><br><div class="gmail_quote">On Thu, Feb 3, 2011 at 4:37 PM, Sam <span dir="ltr">&lt;<a href="mailto:u2nsam@gmail.com">u2nsam@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Wow,<br><br>super explanation of the call flow, if such explanations are there in the FS book , I will take it.<br><br>Thanks again.<br><br>Regds<br><font color="#888888">Sam</font><div><div></div><div class="h5"><br><br>
<div class="gmail_quote">On Thu, Feb 3, 2011 at 12:15 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I think I&#39;m going to write an article on this topic for the new folks since it seems to be a common point of confusion. Don&#39;t worry, you&#39;re not alone - this is a common challenge for new FS admins. <div>

<br></div>
<div>#1 - The first line of your pastebin is the key. You are letting the call in via an ACL. This is &quot;okay&quot; if it is what you want, but I doubt that it is. I recommend that you remove this phone&#39;s IP address from the &quot;domains&quot; section of acl.conf.xml. When using the default FS configs, if you let a phone call through using the &quot;domains&quot; ACL then it automatically goes to the public context. Why? Because the call is not explicitly associated with a local user on the system. It&#39;s like getting a free pass into Disneyland but you don&#39;t have a little badge that says, &quot;Hi, my name is...&quot; </div>


<div><br></div><div>Some get confused by the &quot;Falling back to digest auth&quot; message. It looks like an error but it&#39;s really just information. If the caller&#39;s SIP client properly authenticates (which is different than registration - see below) then FS knows exactly who is making the call and that it is a local user so it goes into the &quot;default&quot; context. </div>


<div><br></div><div>#2 - Make sure that you learn the difference between SIP *registration* and SIP *authentication*.  Registration is where the SIP client tells FS: &quot;Here&#39;s how you can reach me if you get a call for me.&quot; It is for calls TO the phone, not calls from the phone. On the other hand, call authentication is for calls FROM the phone to FS. When the phone calls FS, FS first checks to see if the phone&#39;s IP is in the &quot;domains&quot; ACL. If it is, then it just let&#39;s the call in to be handled by the public context. If not, then FS sends an &quot;auth challenge&quot; - basically saying, &quot;What&#39;s the password?&quot; If the SIP client properly responds then the call is &quot;authenticated&quot; - meaning that FS knows it is from a specific user and thus it goes to the default context.<br>


<div><br></div><div>I recommend that you get the FS book and look at chapter 4. We talk a lot about the user directory and it will help you understand how it all works. Hopefully this explanation will whet your appetite for more. :)</div>


<div><br></div><div>Keep hacking away at it - you&#39;ll get it soon enough!</div><div><br></div><font color="#888888"><div>-MC</div></font><div><div></div><div><div><br><div class="gmail_quote">On Wed, Feb 2, 2011 at 7:02 PM, Sam <span dir="ltr">&lt;<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">So you say that the extensions are not registered with FS and they are getting allowed by the acl, just like DIDs.<br>


How can i rectify this,any thing that needs to be checked ?<br><br><a href="http://pastebin.freeswitch.org/15217" target="_blank">http://pastebin.freeswitch.org/15217</a><br>
<br>Regards<br><font color="#888888">Sam</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Feb 2, 2011 at 11:23 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Turn on console debug level output (default in fs_cli) and make the test call. Pastebin the output. Most likely the call is not being authorized because you are letting it in via an ACL or something like that.<div><br></div>




<div>-MC<br><br><div class="gmail_quote"><div><div></div><div>On Wed, Feb 2, 2011 at 1:55 AM, Sam <span dir="ltr">&lt;<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div>
I have defined a user as :<br><br>&lt;user id=&quot;2099&quot;&gt;<br>      &lt;params&gt;<br>        &lt;param name=&quot;password&quot; value=&quot;1234&quot;/&gt;<br>        &lt;param name=&quot;dial-string&quot; value=&quot;{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}&quot;/&gt;<br>





        &lt;param name=&quot;mwi-account&quot; value=&quot;2099@voicemail&quot;/&gt;<br>        &lt;param name=&quot;vm-password&quot; value=&quot;1234&quot;/&gt;<br>        &lt;param name=&quot;vm-email-all-messages&quot; value=&quot;true&quot;/&gt;<br>





        &lt;!--param name=&quot;vm-attach-file&quot; value=&quot;true&quot;/--&gt;<br>        &lt;!--param name=&quot;vm-mailto&quot;  value=&quot;&quot;/--&gt;<br>      &lt;/params&gt;<br>      &lt;variables&gt;<br>        &lt;variable name=&quot;user_context&quot; value=&quot;inter&quot;/&gt;<br>





        &lt;variable name=&quot;force_transfer_context&quot; value=&quot;inter&quot;/&gt;<br>        &lt;variable name=&quot;accountcode&quot; value=&quot;2099&quot;/&gt;<br>        &lt;variable name=&quot;internal_caller_id_name&quot; value=&quot;2099&quot;/&gt;<br>





        &lt;variable name=&quot;internal_caller_id_number&quot; value=&quot;2099&quot;/&gt;<br>        &lt;variable name=&quot;callgroup&quot; value=&quot;1&quot;/&gt;<br>        &lt;variable name=&quot;sip-force-contact&quot; value=&quot;NDLB-connectile-dysfunction&quot;/&gt;<br>





      &lt;/variables&gt;<br><br><br>and in the dialplan i have <br><br>&lt;context name=&quot;inter&quot;&gt;<br><br>&lt;extension name=&quot;2099&quot;&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^(2099)&quot;&gt;<br>





      &lt;action application=&quot;set&quot; data=&quot;call_timeout=30&quot;/&gt;<br>      &lt;action application=&quot;set&quot; data=&quot;dialed_extension=$1&quot;/&gt;<br>            &lt;action application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/&gt;<br>





            &lt;action application=&quot;set&quot; data=&quot;transfer_ringback=$${hold_music}&quot;/&gt;<br>            &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>            &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br>





            &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}&quot;/&gt;<br>            &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}&quot;/&gt;<br>





            &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}&quot;/&gt;<br>            &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial_ext/global/${uuid}&quot;/&gt;<br>





            &lt;action application=&quot;set&quot; data=&quot;called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}&quot;/&gt;<br>            &lt;action application=&quot;hash&quot; data=&quot;insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}&quot;/&gt;<br>





            &lt;action application=&quot;bridge&quot; data=&quot;{sip_invite_domain=$${domain}}user/${dialed_extension}@${domain_name}&quot;/&gt;<br>    &lt;/condition&gt;<br>  &lt;/extension&gt;<br><br>&lt;/context&gt;<br>





<br><br>Now extension 2075 is also made on above lines in the same context for user and dialplan, here the call when initiated from 2075 to 2099 searches for context public instead of context inter<br><br>mod_dialplan_xml.c:331 Processing 2075 &lt;2075&gt;-&gt;2099 in context public<br>





<br>any reason why ?<br><br>Regards<br><font color="#888888">Sam<br>
</font><br></div></div>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></blockquote></div><br>
</div></div></blockquote></div><br>