<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can you please provide a simple example to use different codec in both leg using dialplan<br>
<br>Regards,<br><br>Bharat Lalcheta<br><br><div class="gmail_quote"><div><div class="h5">On Fri, Jan 6, 2012 at 9:10 PM,  <span dir="ltr">&lt;<a href="mailto:freeswitch-users-request@lists.freeswitch.org" target="_blank">freeswitch-users-request@lists.freeswitch.org</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Send FreeSWITCH-users mailing list submissions to<br>
        <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:freeswitch-users-request@lists.freeswitch.org" target="_blank">freeswitch-users-request@lists.freeswitch.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:freeswitch-users-owner@lists.freeswitch.org" target="_blank">freeswitch-users-owner@lists.freeswitch.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of FreeSWITCH-users digest...&quot;<br>
<br></div></div>Today&#39;s Topics:<br>
<br>
   1. Re: Codec Preferance (Kristian Kielhofner)<br>
   2. Re: Codec Preferance (curriegrad2004)<br>
   3. Re: FreeSWITCH-users Digest, Vol 67, Issue 51 (Bharat Lalcheta)<br>
<br><br>---------- Forwarded message ----------<br>From: Kristian Kielhofner &lt;<a href="mailto:kris@kriskinc.com" target="_blank">kris@kriskinc.com</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>

Cc: <br>Date: Fri, 6 Jan 2012 10:24:01 -0500<br>Subject: Re: [Freeswitch-users] Codec Preferance<br>inbound_codec_prefs<br>
outbound_codec_prefs<br>
<br>
These are Sofia profile configuration options.  They are NOT valid<br>
options for the directory UNLESS you&#39;re setting them as variable to<br>
use in your dialplan later.<br>
<br>
If you want to control codes on a per-user basis you have to set late<br>
negotiation and use the dialplan.<br>
<br>
On Fri, Jan 6, 2012 at 8:18 AM, Bharat Lalcheta<br>
&lt;<a href="mailto:bharatlalcheta@gmail.com" target="_blank">bharatlalcheta@gmail.com</a>&gt; wrote:<br>
&gt; Hiii,<br>
&gt;<br>
&gt; I am new to freeswitch. Prior to freeswitch i was using asterisk.<br>
&gt;<br>
&gt; I have 200 extensions working in my office and want to move all to<br>
&gt; freeswitch from asterisk.<br>
&gt;<br>
&gt; In asterisk, i can give codec selection and preferance in sip.conf to all<br>
&gt; extensions. In the same way i created 200 extensions under internal profile<br>
&gt; in freeswitch.<br>
&gt;<br>
&gt; Follwing is one example....<br>
&gt; -----------------------------------------------------------------<br>
&gt; &lt;include&gt;<br>
&gt;   &lt;user id=&quot;590&quot;&gt;<br>
&gt;     &lt;params&gt;<br>
&gt;       &lt;param name=&quot;password&quot; value=&quot;590&quot;/&gt;<br>
&gt;       &lt;param name=&quot;vm-password&quot; value=&quot;&quot;/&gt;<br>
&gt;       &lt;param name=&quot;vm-enabled&quot; value=&quot;true&quot;/&gt;<br>
&gt;       &lt;param name=&quot;inbound_codec_prefs&quot; value=&quot;PCMA,H264&quot;/&gt;<br>
&gt;       &lt;param name=&quot;outbound_codec_prefs&quot; value=&quot;PCMA,H264&quot;/&gt;<br>
&gt;     &lt;/params&gt;<br>
&gt;     &lt;variables&gt;<br>
&gt;       &lt;variable name=&quot;accountcode&quot; value=&quot;&quot;/&gt;<br>
&gt;       &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>
&gt;       &lt;variable name=&quot;max-calls&quot; value=&quot;2&quot;/&gt;<br>
&gt;       &lt;variable name=&quot;bypass_media_after_bridge&quot; value=&quot;no&quot;/&gt;<br>
&gt;     &lt;/variables&gt;<br>
&gt;   &lt;/user&gt;<br>
&gt; &lt;/include&gt;<br>
&gt; ----------------------------------------------------------<br>
&gt;<br>
&gt; Now when ever i called to 590 freeswitch sends all codecs to 590 sip phone<br>
&gt; other than defined in 590.xml. It is seding codes which is mentioned in my<br>
&gt; conf/sip_profiles/internal.xml and codec negotiation done on whatever codec<br>
&gt; my sip phone having.<br>
&gt;<br>
&gt; I want to use different codecs for different extensions.<br>
&gt;<br>
&gt; Is it common behaviour of Freeswitch ? Should i override codec prerfrance in<br>
&gt; my extension list from my internal profile or not ?<br>
&gt;<br>
&gt; If no, then is it that i have to create 200 profiles in freeswitch to solve<br>
&gt; this problem ?<br>
&gt;<br>
&gt; Please guide me and provide solution for the same<br>
&gt;<br>
&gt;<br>
&gt; Thanks in advance<br>
&gt;<br>
&gt; Bharat Lalcheta<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br>
--<br>
Kristian Kielhofner<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: curriegrad2004 &lt;<a href="mailto:curriegrad2004@gmail.com" target="_blank">curriegrad2004@gmail.com</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>

Cc: <br>Date: Fri, 6 Jan 2012 07:37:06 -0800<br>Subject: Re: [Freeswitch-users] Codec Preferance<br><p>In theory he could use those variable names but it would involve some extra work ;)</p>
<div class="gmail_quote">On 2012-01-06 7:24 AM, &quot;Kristian Kielhofner&quot; &lt;<a href="mailto:kris@kriskinc.com" target="_blank">kris@kriskinc.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


inbound_codec_prefs<br>
outbound_codec_prefs<br>
<br>
These are Sofia profile configuration options.  They are NOT valid<br>
options for the directory UNLESS you&#39;re setting them as variable to<br>
use in your dialplan later.<br>
<br>
If you want to control codes on a per-user basis you have to set late<br>
negotiation and use the dialplan.<br>
<br>
On Fri, Jan 6, 2012 at 8:18 AM, Bharat Lalcheta<br>
&lt;<a href="mailto:bharatlalcheta@gmail.com" target="_blank">bharatlalcheta@gmail.com</a>&gt; wrote:<br>
&gt; Hiii,<br>
&gt;<br>
&gt; I am new to freeswitch. Prior to freeswitch i was using asterisk.<br>
&gt;<br>
&gt; I have 200 extensions working in my office and want to move all to<br>
&gt; freeswitch from asterisk.<br>
&gt;<br>
&gt; In asterisk, i can give codec selection and preferance in sip.conf to all<br>
&gt; extensions. In the same way i created 200 extensions under internal profile<br>
&gt; in freeswitch.<br>
&gt;<br>
&gt; Follwing is one example....<br>
&gt; -----------------------------------------------------------------<br>
&gt; &lt;include&gt;<br>
&gt;   &lt;user id=&quot;590&quot;&gt;<br>
&gt;     &lt;params&gt;<br>
&gt;       &lt;param name=&quot;password&quot; value=&quot;590&quot;/&gt;<br>
&gt;       &lt;param name=&quot;vm-password&quot; value=&quot;&quot;/&gt;<br>
&gt;       &lt;param name=&quot;vm-enabled&quot; value=&quot;true&quot;/&gt;<br>
&gt;       &lt;param name=&quot;inbound_codec_prefs&quot; value=&quot;PCMA,H264&quot;/&gt;<br>
&gt;       &lt;param name=&quot;outbound_codec_prefs&quot; value=&quot;PCMA,H264&quot;/&gt;<br>
&gt;     &lt;/params&gt;<br>
&gt;     &lt;variables&gt;<br>
&gt;       &lt;variable name=&quot;accountcode&quot; value=&quot;&quot;/&gt;<br>
&gt;       &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>
&gt;       &lt;variable name=&quot;max-calls&quot; value=&quot;2&quot;/&gt;<br>
&gt;       &lt;variable name=&quot;bypass_media_after_bridge&quot; value=&quot;no&quot;/&gt;<br>
&gt;     &lt;/variables&gt;<br>
&gt;   &lt;/user&gt;<br>
&gt; &lt;/include&gt;<br>
&gt; ----------------------------------------------------------<br>
&gt;<br>
&gt; Now when ever i called to 590 freeswitch sends all codecs to 590 sip phone<br>
&gt; other than defined in 590.xml. It is seding codes which is mentioned in my<br>
&gt; conf/sip_profiles/internal.xml and codec negotiation done on whatever codec<br>
&gt; my sip phone having.<br>
&gt;<br>
&gt; I want to use different codecs for different extensions.<br>
&gt;<br>
&gt; Is it common behaviour of Freeswitch ? Should i override codec prerfrance in<br>
&gt; my extension list from my internal profile or not ?<br>
&gt;<br>
&gt; If no, then is it that i have to create 200 profiles in freeswitch to solve<br>
&gt; this problem ?<br>
&gt;<br>
&gt; Please guide me and provide solution for the same<br>
&gt;<br>
&gt;<br>
&gt; Thanks in advance<br>
&gt;<br>
&gt; Bharat Lalcheta<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br>
--<br>
Kristian Kielhofner<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
</blockquote></div>
<br><br>---------- Forwarded message ----------<br>From: Bharat Lalcheta &lt;<a href="mailto:bharatlalcheta@gmail.com" target="_blank">bharatlalcheta@gmail.com</a>&gt;<br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>

Cc: <br>Date: Fri, 6 Jan 2012 21:10:01 +0530<br>Subject: Re: [Freeswitch-users] FreeSWITCH-users Digest, Vol 67, Issue 51<br>can you please explain in details what you want to tell ?<br><div class="gmail_quote"><div><br>
<br>
 </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
---------- Forwarded message ----------<br>From: curriegrad2004 &lt;<a href="mailto:curriegrad2004@gmail.com" target="_blank">curriegrad2004@gmail.com</a>&gt;<br>
To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Cc: <br>Date: Fri, 6 Jan 2012 07:11:52 -0800<br>Subject: Re: [Freeswitch-users] Codec Preferance<br>



<p>I highly would recommend that you change the name of those codecs to something else because you might be making matters worse later down the road </p>
<div class="gmail_quote">On 2012-01-06 5:21 AM, &quot;Bharat Lalcheta&quot; &lt;<a href="mailto:bharatlalcheta@gmail.com" target="_blank">bharatlalcheta@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>Hiii,</div><div> </div><div>I am new to freeswitch. Prior to freeswitch i was using asterisk.</div><div> </div><div>I have 200 extensions working in my office and want to move all to freeswitch from asterisk. </div>



<div>

 </div><div>In asterisk, i can give codec selection and preferance in sip.conf to all extensions. In the same way i created 200 extensions under internal profile in freeswitch.</div><div> </div><div>Follwing is one example....</div>





<div>-----------------------------------------------------------------</div><div>&lt;include&gt;<br>  &lt;user id=&quot;590&quot;&gt;<br>    &lt;params&gt;<br>      &lt;param name=&quot;password&quot; value=&quot;590&quot;/&gt;<br>





      &lt;param name=&quot;vm-password&quot; value=&quot;&quot;/&gt;<br>      &lt;param name=&quot;vm-enabled&quot; value=&quot;true&quot;/&gt;</div><div>      &lt;param name=&quot;inbound_codec_prefs&quot; value=&quot;PCMA,H264&quot;/&gt;<br>





      &lt;param name=&quot;outbound_codec_prefs&quot; value=&quot;PCMA,H264&quot;/&gt;<br></div><div>    &lt;/params&gt;<br>    &lt;variables&gt;<br>      &lt;variable name=&quot;accountcode&quot; value=&quot;&quot;/&gt;<br>





      &lt;variable name=&quot;user_context&quot; value=&quot;default&quot;/&gt;<br>      &lt;variable name=&quot;max-calls&quot; value=&quot;2&quot;/&gt;<br>      &lt;variable name=&quot;bypass_media_after_bridge&quot; value=&quot;no&quot;/&gt;<br>





    &lt;/variables&gt;<br>  &lt;/user&gt;<br>&lt;/include&gt;<br>----------------------------------------------------------</div><div> </div><div>Now when ever i called to 590 freeswitch sends all codecs to 590 sip phone other than defined in 590.xml. It is seding codes which is mentioned in my conf/sip_profiles/internal.xml and codec negotiation done on whatever codec my sip phone having. </div>





<div> </div><div>I want to use different codecs for different extensions.</div><div> </div><div>Is it common behaviour of Freeswitch ? Should i override codec prerfrance in my extension list from my internal profile or not ?</div>





<div> </div><div>If no, then is it that i have to create 200 profiles in freeswitch to solve this problem ?</div><div> </div><div>Please guide me and provide solution for the same</div><div> </div><div> </div><div>Thanks in advance</div>





<div> </div><div>Bharat Lalcheta<br>
</div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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><br>---------- Forwarded message ----------<br>From: Peter Olsson &lt;<a href="mailto:peter.olsson@visionutveckling.se" target="_blank">peter.olsson@visionutveckling.se</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;<br>



Cc: <br>Date: Fri, 6 Jan 2012 15:21:00 +0000<br>Subject: Re: [Freeswitch-users] CISCO 2811 Freeswitch IVR<br>Are you still using ignore_early_media=true - this must be set for this to work correctly.<br>
<br>
You will see a EXECUTE log line when FS executes the application, with ignore_early_media enabled it shouldn&#39;t execute until the call has been answered. I just tried it myself, and it works as expected.<br>
<br>
Example &quot;originate {ignore_early_media=true}sofia/internal/number@host &amp;park()&quot;<br>
<br>
Park application is only executed after the call was answered.<br>
<br>
/Peter<br>
<br>
________________________________________<br>
Från: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] f&amp;#246;r Oliver Schenk [<a href="mailto:olimonkey@gmail.com" target="_blank">olimonkey@gmail.com</a>]<br>




Skickat: den 6 januari 2012 12:04<br>
Till: FreeSWITCH Users Help<br>
Ämne: Re: [Freeswitch-users] CISCO 2811 Freeswitch IVR<br>
<br>
Because I&#39;m using an FXO card with voice, I added something to my<br>
CISCO conf. Many others had the same thing:<br>
<br>
<br>
voice-port 0/3/0<br>
   ...<br>
   supervisory disconnect dualtone mid-call<br>
   supervisory answer dualtone    &lt;---- ADDED THIS ONE<br>
   ...<br>
<br>
<br>
<br>
Once I added this, the FS output now just showed the following while<br>
the phone was ringing:<br>
<br>
<a href="tel:2012-01-05%2016" value="+12012010516" target="_blank">2012-01-05 16</a>:19:31.644440 [NOTICE] switch_channel.c:816 New Channel<br>
sofia/internal/109212xxxx@192.168.x.x<br>
[69e3f13d-1e2a-409e-97a4-b5526ea6e4ec]<br>
<a href="tel:2012-01-05%2016" value="+12012010516" target="_blank">2012-01-05 16</a>:19:35.124882 [INFO] sofia.c:740<br>
sofia/internal/109212xxxx@192.168.x.x Update Callee ID to &quot;Outbound<br>
Call&quot; &lt;109212xxxx&gt;<br>
<a href="tel:2012-01-05%2016" value="+12012010516" target="_blank">2012-01-05 16</a>:19:35.126883 [NOTICE] sofia_glue.c:3793 Pre-Answer<br>
sofia/internal/109212xxxx@192.168.x.x!<br>
<br>
<br>
Where as previous it would show the above and also show the following:<br>
<br>
<a href="tel:2012-01-05%2016" value="+12012010516" target="_blank">2012-01-05 16</a>:19:35.127883 [INFO] switch_channel.c:2456<br>
sofia/internal/109212xxxx@192.168.x.x Flipping CID from &quot;&quot;<br>
&lt;0000000000&gt; to &quot;Outbound Call&quot; &lt;109212xxxx&gt;<br>
<a href="tel:2012-01-05%2016" value="+12012010516" target="_blank">2012-01-05 16</a>:19:35.137384 [INFO] sofia.c:740<br>
sofia/internal/109212xxxx@192.168.x.x Update Callee ID to &quot;109212xxxx&quot;<br>
&lt;1092122856&gt;<br>
<a href="tel:2012-01-05%2016" value="+12012010516" target="_blank">2012-01-05 16</a>:19:35.138384 [NOTICE] sofia.c:5296 Channel<br>
[sofia/internal/109212xxxx@192.168.x.x] has been answered<br>
<br>
<br>
<br>
BUT, the IVR still started playing even before I pick up the phone.<br>
Hmmmm.....so why is FS still starting the managed application when the<br>
call has not been answered yet. Are we all sure that the managed<br>
application should not be executed until the call &quot;has been answered&quot;<br>
shows up in the log file?<br>
<br>
<br>
Will have to keep testing on monday as I don&#39;t have access to the<br>
CISCO from where i am now. I&#39;ll have to see whether the CISCO changes<br>
had any impact on the times at which the SIP messages are sent back<br>
and forth. Especially the 200 OK message.<br>
<br>
<br>
Thanks again for help, maybe getting somewhere now......<br>
<br>
Oliver<br>
<br>
<br>
<br>
<br>
On Fri, Jan 6, 2012 at 4:20 PM, Peter Olsson<br>
&lt;<a href="mailto:peter.olsson@visionutveckling.se" target="_blank">peter.olsson@visionutveckling.se</a>&gt; wrote:<br>
&gt; If it sends 200 OK right after 183, this IS the problem.<br>
&gt;<br>
&gt; 200 OK means that the call was answered, it should not be sent until the call was actually picked up in the remote end. When 200 OK arrives to FS it will execute your app, and you will start playing the files.<br>
&gt;<br>
&gt; Seems to me there is something broken in the Cisco.<br>
&gt;<br>
&gt; /Peter<br>
&gt;<br>
&gt; ________________________________________<br>
&gt; Från: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] f&amp;#246;r Oliver Schenk [<a href="mailto:olimonkey@gmail.com" target="_blank">olimonkey@gmail.com</a>]<br>




&gt; Skickat: den 6 januari 2012 06:55<br>
&gt; Till: FreeSWITCH Users Help<br>
&gt; Ämne: Re: [Freeswitch-users] CISCO 2811 Freeswitch IVR<br>
&gt;<br>
&gt; I&#39;ve tried looking at disable-early-media configuration command, but<br>
&gt; that didn&#39;t work and I doubt that has anything to do with the CISCO<br>
&gt; sending a 200 OK right after a 183 SESSION PROGRESS.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Jan 6, 2012 at 9:20 AM, Brian West &lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt; wrote:<br>
&gt;&gt; Thats what the 183 is.. 180 vs 183 are kinda sketchy in some devices.. 180<br>
&gt;&gt; is usually RINGING (generate ringback locally) while a 183 has media... aka<br>
&gt;&gt; early media and usually provides ringback inband.<br>
&gt;&gt;<br>
&gt;&gt; /b<br>
&gt;&gt;<br>
&gt;&gt; On Jan 5, 2012, at 7:13 PM, Oliver Schenk wrote:<br>
&gt;&gt;<br>
&gt;&gt; Shouldn&#39;t there be a  180 RINGING  somewhere in there?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Jan 6, 2012 at 8:25 AM, Oliver Schenk &lt;<a href="mailto:olimonkey@gmail.com" target="_blank">olimonkey@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I just noticed something else, if I don&#39;t pick up the phone at all.<br>
&gt;&gt;<br>
&gt;&gt; The IVR just keeps playing until the menu timeout kicks in.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; So here is a CISCO SIP log:<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://pastebin.com/Y9sYkuxi" target="_blank">http://pastebin.com/Y9sYkuxi</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; The FS server is 192.168.x.50 and the CISCO is 192.168.x.1.<br>
&gt;&gt;<br>
&gt;&gt; I hope the CISCO log is readable, it&#39;s a bit long because I just did<br>
&gt;&gt;<br>
&gt;&gt; &quot;debug ccsip all&quot;.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; In this test I didn&#39;t bother picking up the phone at all, but I can<br>
&gt;&gt;<br>
&gt;&gt; see that FS answered anyway and the IVR kept playing until it timed<br>
&gt;&gt;<br>
&gt;&gt; out.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m not an expert, but here is what I picked out of it:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; At 00:08:10 we get a<br>
&gt;&gt;<br>
&gt;&gt; Received: &quot;INVITE sip:109212xxxx@192.168.x.1 SIP/2.0&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; the further down at the same timestamp we get<br>
&gt;&gt;<br>
&gt;&gt; Sent: &quot;SIP/2.0 100 Trying&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; At 00:08:13 we get a<br>
&gt;&gt;<br>
&gt;&gt; Sent: &quot;SIP/2.0 183 Session Progress&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; At 00:18:13 we get a<br>
&gt;&gt;<br>
&gt;&gt; Sent: &quot;SIP/2.0 200 OK&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Then at the same timestamp we get:<br>
&gt;&gt;<br>
&gt;&gt; Received: &quot;ACK sip:109212xxxx@192.168.x.1:5060 SIP/2.0&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Once the IVR times out at 00:09:16 we get<br>
&gt;&gt;<br>
&gt;&gt; Received: &quot;BYE sip:109212xxxx@192.168.x.1:5060 SIP/2.0&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; And then the reply right after<br>
&gt;&gt;<br>
&gt;&gt; Sent: &quot;SIP/2.0 200 OK&quot;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; So I think you were right, the CISCO is sending back an &quot;OK&quot; 3 seconds<br>
&gt;&gt;<br>
&gt;&gt; after the &quot;INVITE&quot; is received.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; The part that is beyond my field of expertise so far is WHY?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Oliver<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Jan 6, 2012 at 8:04 AM, Oliver Schenk &lt;<a href="mailto:olimonkey@gmail.com" target="_blank">olimonkey@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; By the way:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I tried {ignore_early_media=true} as well, but as I think we<br>
&gt;&gt;<br>
&gt;&gt; determined, my problem is probably with the CISCO telling FS that the<br>
&gt;&gt;<br>
&gt;&gt; call has been answered when really it hasn&#39;t yet.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Jan 6, 2012 at 8:01 AM, Oliver Schenk &lt;<a href="mailto:olimonkey@gmail.com" target="_blank">olimonkey@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Thanks for the help so far.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Here is a pastebin of FreeSWITCH output:<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://pastebin.com/i6Qgc7ws" target="_blank">http://pastebin.com/i6Qgc7ws</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Notice how the &quot;has been answered&quot; log message comes immediately<br>
&gt;&gt;<br>
&gt;&gt; (within a few milliseconds) after the call was originated. I think<br>
&gt;&gt;<br>
&gt;&gt; this would suggest that the CISCO is immediately sending a 200 OK, as<br>
&gt;&gt;<br>
&gt;&gt; you suggested. I also turned on CISCO debugging, but I&#39;m just trying<br>
&gt;&gt;<br>
&gt;&gt; to figure out how to get the information regarding SIP messages back<br>
&gt;&gt;<br>
&gt;&gt; to Freeswitch. I&#39;ll run the test again and see if I can get some<br>
&gt;&gt;<br>
&gt;&gt; useful CISCO debug.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Which &quot;debug ccsip&quot; commands are relevant to what I want for the CISCO<br>
&gt;&gt;<br>
&gt;&gt; SIP debugging?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Thanks!<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2012/1/6 Gustavo Mársico &lt;<a href="mailto:gustavomarsico@gmail.com" target="_blank">gustavomarsico@gmail.com</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; I think I&#39;ve a similar problem related to callcenter app. When I made an<br>
&gt;&gt; originate like this:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; originate loopback/2500/default/XML &amp;bridge(user/2001)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2500 is an extension that leads to a callcenter application. In this case,<br>
&gt;&gt; we dial first to the queue and when an agent answered we call to the<br>
&gt;&gt; customer. As far as I know<br>
&gt;&gt;<br>
&gt;&gt; When the A-leg reaches to the queue, without selecting an agent, the call is<br>
&gt;&gt; automatically sent to the B-leg. As far as I see, there is a pre-answer<br>
&gt;&gt; method that fs needs to send the media to A-leg.<br>
&gt;&gt;<br>
&gt;&gt; In order to try to avoid this, I tried using ignore_early_media=true as part<br>
&gt;&gt; of the originate in A-leg and/or B-leg, with no luck.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; originate {ignore_early_media=true}loopback/2500/default/XML<br>
&gt;&gt; &amp;bridge({ignore_early_media=true}user/2001)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Dialplan: loopback/2500-b Regex (PASS) [CallCenter_Click2Call]<br>
&gt;&gt; destination_number(2500) =~ /^(2500)$/ break=on-false<br>
&gt;&gt;<br>
&gt;&gt; Dialplan: loopback/2500-b Action set(ignore_early_media=true)<br>
&gt;&gt;<br>
&gt;&gt; Dialplan: loopback/2500-b Action callcenter(click2call)<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_core_state_machine.c:154<br>
&gt;&gt; (loopback/2500-b) State Change CS_ROUTING -&gt; CS_EXECUTE<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_core_session.c:1180 Send signal<br>
&gt;&gt; loopback/2500-b [BREAK]<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] mod_loopback.c:475 loopback/2500-b<br>
&gt;&gt; CHANNEL KILL<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_core_state_machine.c:410<br>
&gt;&gt; (loopback/2500-b) State ROUTING going to sleep<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_core_state_machine.c:362<br>
&gt;&gt; (loopback/2500-b) Running State Change CS_EXECUTE<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_core_state_machine.c:417<br>
&gt;&gt; (loopback/2500-b) State EXECUTE<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] mod_loopback.c:375 loopback/2500-b<br>
&gt;&gt; CHANNEL EXECUTE<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_core_state_machine.c:192<br>
&gt;&gt; loopback/2500-b Standard EXECUTE<br>
&gt;&gt;<br>
&gt;&gt; EXECUTE loopback/2500-b set(open=true)<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] mod_dptools.c:1286 loopback/2500-b SET<br>
&gt;&gt; [open]=[true]<br>
&gt;&gt;<br>
&gt;&gt; EXECUTE loopback/2500-b<br>
&gt;&gt; hash(insert/10.8.0.70-spymap/0000000000/fef7d864-b3c7-407c-a6e1-94386642bfbb)<br>
&gt;&gt;<br>
&gt;&gt; EXECUTE loopback/2500-b hash(insert/10.8.0.70-last_dial/0000000000/2500)<br>
&gt;&gt;<br>
&gt;&gt; EXECUTE loopback/2500-b<br>
&gt;&gt; hash(insert/10.8.0.70-last_dial/global/fef7d864-b3c7-407c-a6e1-94386642bfbb)<br>
&gt;&gt;<br>
&gt;&gt; EXECUTE loopback/2500-b set(RFC2822_DATE=Thu, 05 Jan 2012 13:36:08 -0300)<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] mod_dptools.c:1286 loopback/2500-b SET<br>
&gt;&gt; [RFC2822_DATE]=[Thu, 05 Jan 2012 13:36:08 -0300]<br>
&gt;&gt;<br>
&gt;&gt; EXECUTE loopback/2500-b set(ignore_early_media=true)<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] mod_dptools.c:1286 loopback/2500-b SET<br>
&gt;&gt; [ignore_early_media]=[true]<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_core_session.c:2133 Application<br>
&gt;&gt; callcenter Requires media! pre_answering channel loopback/2500-b<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [NOTICE] mod_loopback.c:760 Pre-Answer<br>
&gt;&gt; loopback/2500-a!<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_channel.c:2930 (loopback/2500-a)<br>
&gt;&gt; Callstate Change RINGING -&gt; EARLY<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_core_session.c:729 Send signal<br>
&gt;&gt; loopback/2500-b [BREAK]<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] mod_loopback.c:475 loopback/2500-b<br>
&gt;&gt; CHANNEL KILL<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [NOTICE] switch_core_session.c:2135 Pre-Answer<br>
&gt;&gt; loopback/2500-b!<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_channel.c:2930 (loopback/2500-b)<br>
&gt;&gt; Callstate Change RINGING -&gt; EARLY<br>
&gt;&gt;<br>
&gt;&gt; EXECUTE loopback/2500-b callcenter(click2call)<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_channel.c:3188 (loopback/2500-a)<br>
&gt;&gt; Callstate Change EARLY -&gt; ACTIVE<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [NOTICE] mod_loopback.c:755 Channel<br>
&gt;&gt; [loopback/2500-a] has been answered<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_core_session.c:729 Send signal<br>
&gt;&gt; loopback/2500-b [BREAK]<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] mod_loopback.c:475 loopback/2500-b<br>
&gt;&gt; CHANNEL KILL<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_ivr_originate.c:3266 Originate<br>
&gt;&gt; Resulted in Success: [loopback/2500-a]<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [DEBUG] switch_channel.c:3188 (loopback/2500-b)<br>
&gt;&gt; Callstate Change EARLY -&gt; ACTIVE<br>
&gt;&gt;<br>
&gt;&gt; <a href="tel:2012-01-05%2013" value="+12012010513" target="_blank">2012-01-05 13</a>:36:08.541517 [INFO] switch_channel.c:2708 loopback/2500-a<br>
&gt;&gt; Flipping CID from &quot;&quot; &lt;0000000000&gt; to &quot;Outbound Call&quot; &lt;XML&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Jan 5, 2012, at 4:17 AM, Oliver Schenk wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Also, maybe I should be doing something like this:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; sofia/gateway/mygatewayname/1091234567 &#39;&amp;managed(ivrAppName)&#39;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; instead of:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; sofia/internal/1091234567@192.168.x.x &#39;&amp;managed(ivrAppName)&#39;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; but, I don&#39;t really have the CISCO configured as a gateway, nor do I<br>
&gt;&gt;<br>
&gt;&gt; know how really...probably not on the right track there.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Jan 5, 2012 at 3:06 PM, Oliver Schenk &lt;<a href="mailto:olimonkey@gmail.com" target="_blank">olimonkey@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; *bump*<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; So I think maybe the way I&#39;m doing the originate is the problem? In my<br>
&gt;&gt;<br>
&gt;&gt; call string I&#39;m creating a connection directly from the CISCO<br>
&gt;&gt;<br>
&gt;&gt; (192.168.x.x) to the managed application, which may be why it starts<br>
&gt;&gt;<br>
&gt;&gt; playing straight away?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Maybe I should be originating a call first and then only once I know<br>
&gt;&gt;<br>
&gt;&gt; the other side has picked up will I bridge the call to the IVR managed<br>
&gt;&gt;<br>
&gt;&gt; application.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Problem is I dunno how to tell whether the other person has picked up<br>
&gt;&gt;<br>
&gt;&gt; (or even if the cisco is going to tell me) and I don&#39;t know how to do<br>
&gt;&gt;<br>
&gt;&gt; things to a call once it has been established.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m currently reading the Dialplan wiki page, hoping to get something<br>
&gt;&gt;<br>
&gt;&gt; out of it there.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Cheers<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Oliver<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Jan 3, 2012 at 11:46 AM, Oliver Schenk &lt;<a href="mailto:olimonkey@gmail.com" target="_blank">olimonkey@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve been battling while creating an IVR using FreeSWITCH mod_managed<br>
&gt;&gt;<br>
&gt;&gt; and connecting through a CISCO 2811. Most things now work quite well,<br>
&gt;&gt;<br>
&gt;&gt; but I am having a few issues with the way the system answers calls (or<br>
&gt;&gt;<br>
&gt;&gt; doesn&#39;t answer calls...).<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I have FreeSWITCH running as a windows service on Windows Server 2008,<br>
&gt;&gt;<br>
&gt;&gt; which is connected via LAN to a CISCO 2811 with a 4 port FXO card,<br>
&gt;&gt;<br>
&gt;&gt; which is then connected to a POTS phone line.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Take the following scenario:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 1. Managed .NET application creates a call string and uses ESL to talk<br>
&gt;&gt;<br>
&gt;&gt; to freeswitch and originate a call:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; string callstring =<br>
&gt;&gt;<br>
&gt;&gt; &quot;{bridge_answer_timeout=20,ignore_early_media=true,call_timeout=20}sofia/internal/1091234567@192.168.x.x<br>
&gt;&gt;<br>
&gt;&gt; &#39;&amp;managed(ivrAppName)&#39;&quot;;<br>
&gt;&gt;<br>
&gt;&gt; eslConnection.API(&quot;originate&quot;, callstring);<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; where 192.168.x.x is the CISCO IP.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 2. The CISCO sees that the phone number (1091234567) starts with a 1<br>
&gt;&gt;<br>
&gt;&gt; so it uses FXO port 1 and strips the 1 and uses the remaining phone<br>
&gt;&gt;<br>
&gt;&gt; number (091234567) to make the call.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; 3. My phone rings, I pick up and I can hear my IVR playing.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; These are my current problems:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; - IVR starts playing before I even pick up the phone. This means that<br>
&gt;&gt;<br>
&gt;&gt; if the system calls a mobile phone and the person doesn&#39;t pick up, the<br>
&gt;&gt;<br>
&gt;&gt; IVR will start playing and eventually the mobile phone will divert to<br>
&gt;&gt;<br>
&gt;&gt; voice mail. Obviously I then get a missed call and an sms saying I<br>
&gt;&gt;<br>
&gt;&gt; have a new voice mail, which is annoying. Instead I would like it to<br>
&gt;&gt;<br>
&gt;&gt; KNOW that no one has picked up, but I don&#39;t know how to do this.<br>
&gt;&gt;<br>
&gt;&gt; Somehow the CISCO needs to be able to tell FreeSWITCH that the call<br>
&gt;&gt;<br>
&gt;&gt; has not yet been answered. For some reason however as soon as the<br>
&gt;&gt;<br>
&gt;&gt; CISCO starts calling FreeSWITCH thinks the call is already connected.<br>
&gt;&gt;<br>
&gt;&gt; It doesn&#39;t know that the CISCO is actually still ringing. Maybe I&#39;m<br>
&gt;&gt;<br>
&gt;&gt; doing originate the wrong way or something ...<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; - The phone only rings for about 10 seconds before hanging up. I&#39;ve<br>
&gt;&gt;<br>
&gt;&gt; tried &quot;call_timeout&quot;, &quot;bridge_answer_timeout&quot;. I&#39;ve also tried setting<br>
&gt;&gt;<br>
&gt;&gt; CISCO &quot;ring number&quot;. Nothing works, my phone still only rings for<br>
&gt;&gt;<br>
&gt;&gt; about 10 seconds. I don&#39;t know if this is a FreeSWITCH issue or a<br>
&gt;&gt;<br>
&gt;&gt; CISCO issue. I&#39;m leaning towards CISCO, because FreeSWITCH IVR just<br>
&gt;&gt;<br>
&gt;&gt; starts playing even if no one answers the phone.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; CISCO Config for relevant FXO port:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; voice service voip<br>
&gt;&gt;<br>
&gt;&gt;  allow-connections h323 to h323<br>
&gt;&gt;<br>
&gt;&gt;  allow-connections h323 to sip<br>
&gt;&gt;<br>
&gt;&gt;  allow-connections sip to h323<br>
&gt;&gt;<br>
&gt;&gt;  allow-connections sip to sip<br>
&gt;&gt;<br>
&gt;&gt;  no supplementary-service h450.2<br>
&gt;&gt;<br>
&gt;&gt;  no supplementary-service h450.3<br>
&gt;&gt;<br>
&gt;&gt;  supplementary-service h450.12<br>
&gt;&gt;<br>
&gt;&gt;  no supplementary-service sip moved-temporarily<br>
&gt;&gt;<br>
&gt;&gt;  no supplementary-service sip refer<br>
&gt;&gt;<br>
&gt;&gt;  fax protocol cisco<br>
&gt;&gt;<br>
&gt;&gt;  sip<br>
&gt;&gt;<br>
&gt;&gt;  registrar server expires max 3600 min 3600<br>
&gt;&gt;<br>
&gt;&gt;  no update-callerid<br>
&gt;&gt;<br>
&gt;&gt;  no call service stop<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; voice-port 0/3/2<br>
&gt;&gt;<br>
&gt;&gt;  output attenuation -3<br>
&gt;&gt;<br>
&gt;&gt;  no comfort-noise<br>
&gt;&gt;<br>
&gt;&gt;  cptone AU<br>
&gt;&gt;<br>
&gt;&gt;  impedance complex1<br>
&gt;&gt;<br>
&gt;&gt;  caller-id enable<br>
&gt;&gt;<br>
&gt;&gt; !<br>
&gt;&gt;<br>
&gt;&gt; dial-peer voice 100 pots<br>
&gt;&gt;<br>
&gt;&gt;  preference 1<br>
&gt;&gt;<br>
&gt;&gt;  destination-pattern 1T<br>
&gt;&gt;<br>
&gt;&gt;  port 0/3/2<br>
&gt;&gt;<br>
&gt;&gt; !<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Many Thanks,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Oliver<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt;<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt;<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt;<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt;<br>
&gt;&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;&gt;<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt;<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt;<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt;<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt;<br>
&gt;&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;&gt;<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&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;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Brian West<br>
&gt;&gt; FreeSWITCH Solutions, LLC<br>
&gt;&gt; Phone: <a href="tel:%2B1%20%28918%29%20420-9266" value="+19184209266" target="_blank">+1 (918) 420-9266</a><br>
&gt;&gt; Fax:   <a href="tel:%2B1%20%28918%29%20420-9267" value="+19184209267" target="_blank">+1 (918) 420-9267</a><br>
&gt;&gt; <a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&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;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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>
!DSPAM:4f06d49b32762089563979!<br>
<br>
<br>
<br>
<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><br clear="all"><span class="HOEnZb"><font color="#888888"><br>-- <br>Bharat Lalcheta<br>
<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></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Bharat Lalcheta<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Bharat Lalcheta<br>