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