[Freeswitch-users] FreeSWITCH-users Digest, Vol 49, Issue 28
Durmuş Ali Öztürk
ali.stgt at gmail.com
Wed Jul 7 09:38:07 PDT 2010
2010/7/7 <freeswitch-users-request at lists.freeswitch.org>:
Hello,
Supplying the dial string to the ManagedSession constructor has solved
our problem. We can originate the call and stream a media properly.
Thanks a lot for your help.
Ali Öztürk
> ---------- Weitergeleitete Nachricht ----------
> From: Brian West <brian at freeswitch.org>
> To: freeswitch-users at lists.freeswitch.org
> Date: Wed, 7 Jul 2010 08:36:55 -0500
> Subject: Re: [Freeswitch-users] Sound not OK (Choppy Sound) while using ManagedSession (.NET/C#)
> When a call is parked you can send commands to it to do anything you want.
>
>
> /b
>
> On Jul 7, 2010, at 8:30 AM, Phillip Jones wrote:
>
>> In example two you are parking the call. You are then playing media into a parked call. I am not sure this is valid. According to the wiki "Please note that to retrieve a call that has been "parked", you'll have to bridge to them or transfer the call to a valid location." - so you might need to transfer that parked call to a DialPlan App before you try and play media - or just not park it in the first place.
>>
>> I might be wrong - but that where I would start.
>
>
>
>
>
> ---------- Weitergeleitete Nachricht ----------
> From: Anthony Minessale <anthony.minessale at gmail.com>
> To: freeswitch-users at lists.freeswitch.org
> Date: Wed, 7 Jul 2010 08:41:03 -0500
> Subject: Re: [Freeswitch-users] Sound not OK (Choppy Sound) while using ManagedSession (.NET/C#)
> instead of originate to park then sending the uuid to the constructor
> try supplying the dial string to the constructor which will place the call
>
> On Wed, Jul 7, 2010 at 8:30 AM, Phillip Jones <pjintheusa at gmail.com> wrote:
>>
>> In example two you are parking the call. You are then playing media into a parked call. I am not sure this is valid. According to the wiki "Please note that to retrieve a call that has been "parked", you'll have to bridge to them or transfer the call to a valid location." - so you might need to transfer that parked call to a DialPlan App before you try and play media - or just not park it in the first place.
>>
>> I might be wrong - but that where I would start.
>>
>> On Wed, Jul 7, 2010 at 8:03 AM, Durmuş Ali Öztürk <ali.stgt at gmail.com> wrote:
>>>
>>> Hello,
>>>
>>> I have successfully entegrated a dll-module (written udner .Net / c#)
>>> in fs which is loadable by the mod_managed component.
>>>
>>> Now, if I try to stream a wav file to the callee then the sound is
>>> very poor and choppy (also the file is played slower).
>>>
>>> The fs is running under Windows XP and tested under Windows 2003 with
>>> the same result.
>>>
>>> Streaming by using FreeSWITCH.Native.Api() works without problems,
>>> sound is perfect.
>>>
>>> Samples which I have tried:
>>>
>>>
>>>
>>> 1 - This works fine but delegate mechanism is missing there:
>>>
>>> FreeSWITCH.Native.Api fsApi = new FreeSWITCH.Native.Api();
>>>
>>> string uuid = fsApi.ExecuteString("create_uuid");
>>> string apiResult = fsApi.Execute("originate",
>>> string.Format("{{ignore_early_media=false,absolute_codec_string='PCMU'}}[origination_uuid={0},origination_caller_id_number={1}]sofia/gateway/Test/{2}
>>> &&playback({3}", uuid, callerID, phoneNumber, wavFile));
>>>
>>>
>>>
>>>
>>> 2 - ManagedSession is integrated but we have sound problems:
>>>
>>> FreeSWITCH.Native.Api fsApi = new FreeSWITCH.Native.Api();
>>>
>>> string uuid = fsApi.ExecuteString("create_uuid");
>>>
>>> string apiResult = fsApi.Execute("originate",
>>> string.Format("{{ignore_early_media=false,absolute_codec_string='PCMU'}}[origination_uuid={0},origination_caller_id_number={1}]sofia/gateway/Test/{2}
>>> &park", uuid, callerID, phoneNumber));
>>>
>>> FreeSWITCH.Native.ManagedSession blegSession = new
>>> FreeSWITCH.Native.ManagedSession(uuid);
>>>
>>> if (blegSession.IsAvailable)
>>> {
>>> while (!blegSession.answered())
>>> {
>>> blegSession.sleep(500, 1);
>>> }
>>>
>>> if (blegSession.Ready() && blegSession.mediaReady())
>>> {
>>> //blegSession.Answer();
>>> //blegSession.Execute("playback",wavFile);
>>> blegSession.StreamFile(wavFile, 0);
>>> }
>>>
>>> blegSession.Hangup("Normal call clearing");
>>> }
>>>
>>>
>>>
>>>
>>> Is there a mistake in my code or do I have forgotten something? Can
>>> you support me with some examples?
>>>
>>>
>>> Another issue is, that I am not able to make a origination directly by
>>> ManagedSession or CoreSession without using the
>>> FreeSWITCH.Native.Api(). How can I create an instance of a CoreSession
>>> object?
>>>
>>>
>>> Many thanks for you help in advance.
>>>
>>> Ali
>>>
>>> _______________________________________________
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> googletalk:conf+888 at conference.freeswitch.org
> pstn:+19193869900
>
>
> ---------- Weitergeleitete Nachricht ----------
> From: Anthony Minessale <anthony.minessale at gmail.com>
> To: freeswitch-users at lists.freeswitch.org
> Date: Wed, 7 Jul 2010 08:46:08 -0500
> Subject: Re: [Freeswitch-users] Behaviour of group_confirm_cancel_timeout
> This is not at all the same.
> in your script you have to do one of the following:
> if they dialed the right digits answer the channel, if not hangup the channel.
> you are doing neither and originate is hanging up for you because you did not answer the channel.
> Can we be done with this thread now? it's trying my patience.
>
>
> On Wed, Jul 7, 2010 at 12:47 AM, Nagalenoj H. <nagalenoj at gmail.com> wrote:
>>
>> After git pull, the behavior remains the same.
>>
>> When I check the console log, the leg has got disconnected after leg_timeout seconds but the session for the leg has got closed after the script exists.
>>
>> 2010-07-07 05:27:39.156085 [INFO] mod_dialplan_xml.c:331 Processing 1005->212 in context default
>> 2010-07-07 05:27:39.194359 [NOTICE] mod_dptools.c:746 Channel [sofia/internal/1005 at 192.168.1.72] has been answered
>> 2010-07-07 05:27:42.708162 [NOTICE] sofia.c:4875 Channel [sofia/internal/sip:1000 at 192.168.6.114] has been answered
>> 2010-07-07 05:27:49.020053 [INFO] mod_dptools.c:2393 Originate Failed. Cause: NO_ANSWER
>> 2010-07-07 05:28:12.761902 [NOTICE] switch_core_session.c:1193 Session 6 (sofia/internal/sip:1000 at 192.168.6.114) Ended
>> 2010-07-07 05:28:12.761902 [NOTICE] switch_core_session.c:1195 Close Channel sofia/internal/sip:1000 at 192.168.6.114 [CS_DESTROY]
>>
>> Here is the console log,
>> http://pastebin.freeswitch.org/13395
>>
>> On Tue, Jul 6, 2010 at 8:56 PM, Anthony Minessale <anthony.minessale at gmail.com> wrote:
>>>
>>> try latest GIT, that was an edge case and it's fixed.
>>>
>>> On Tue, Jul 6, 2010 at 1:58 AM, Nagalenoj H. <nagalenoj at gmail.com> wrote:
>>>>
>>>> Got core dump when I execute the bridge as
>>>> execute-app-arg: {user_recurse_variables=false,group_confirm_cancel_timeout=true}[leg_timeout=10]user/1000
>>>>
>>>> Console log is here,
>>>> http://pastebin.freeswitch.org/13371
>>>>
>>>> core dump backtrace is here,
>>>> http://pastebin.freeswitch.org/13372
>>>>
>>>> Also, tried after git pull, but the result is same.
>>>>
>>>> On Mon, Jul 5, 2010 at 8:53 PM, Anthony Minessale <anthony.minessale at gmail.com> wrote:
>>>>>
>>>>> you also need user_recurse_variables=false
>>>>> {user_recurse_variables=false,group_confirm_cancel_timeout=true}
>>>>>
>>>>>
>>>>> On Sat, Jul 3, 2010 at 8:22 AM, Nagalenoj H. <nagalenoj at gmail.com> wrote:
>>>>>>
>>>>>> Here is the log got from the latest GIT source.
>>>>>>
>>>>>> http://pastebin.freeswitch.org/13347
>>>>>>
>>>>>> On Fri, Jul 2, 2010 at 10:15 PM, Anthony Minessale <anthony.minessale at gmail.com> wrote:
>>>>>>>
>>>>>>> update and reproduce that same log with latest GIT the version you are using has an issue.
>>>>>>>
>>>>>>> On Fri, Jul 2, 2010 at 12:25 AM, Nagalenoj H. <nagalenoj at gmail.com> wrote:
>>>>>>>>
>>>>>>>> I've pasted the console log here,
>>>>>>>>
>>>>>>>> http://pastebin.freeswitch.org/13333
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Jun 30, 2010 at 11:15 PM, Michael Collins <msc at freeswitch.org> wrote:
>>>>>>>>>
>>>>>>>>> Can you supply a console log of these calls?
>>>>>>>>> -MC
>>>>>>>>>
>>>>>>>>> On Wed, Jun 30, 2010 at 7:37 AM, Nagalenoj H. <nagalenoj at gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>> Dear Anthony,
>>>>>>>>>> I've tried using the group_confirm_cancel_timeout as per the discussion we had in IRC. You wanted to used it as part of dial string and not as a channel variable.
>>>>>>>>>> But, It doesn't work for me.
>>>>>>>>>>
>>>>>>>>>> Here is how I've given the commands and the script I've executed. Even when I give group_confirm_cancel_timeout, the callee's leg is getting disconnected after legtimeout.
>>>>>>>>>>
>>>>>>>>>> connect
>>>>>>>>>>
>>>>>>>>>> sendmsg
>>>>>>>>>> call-command: execute
>>>>>>>>>> execute-app-name:answer
>>>>>>>>>>
>>>>>>>>>> sendmsg
>>>>>>>>>> call-command: execute
>>>>>>>>>> execute-app-name: set
>>>>>>>>>> execute-app-arg: group_confirm_key=exec
>>>>>>>>>>
>>>>>>>>>> sendmsg
>>>>>>>>>> call-command: execute
>>>>>>>>>> execute-app-name: set
>>>>>>>>>> execute-app-arg: group_confirm_file=perl /root/bridge.pl
>>>>>>>>>>
>>>>>>>>>> sendmsg
>>>>>>>>>> call-command: execute
>>>>>>>>>> execute-app-name: bridge
>>>>>>>>>> execute-app-arg: {group_confirm_cancel_timeout=1}[leg_timeout=10]user/1005
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> bridge.pl:
>>>>>>>>>> #!/usr/bin/perl
>>>>>>>>>> use freeswitch;
>>>>>>>>>>
>>>>>>>>>> our $session;
>>>>>>>>>> freeswitch::consoleLog("info","Goint to get the digits");
>>>>>>>>>> # To simulate the scenario I used sleep here.
>>>>>>>>>> sleep(30);
>>>>>>>>>> 1;
>>>>>>>>>>
>>>>>>>>>> Kindly tell me whats wrong in the above.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> FreeSWITCH-users mailing list
>>>>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>>>>> http://www.freeswitch.org
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Regards,
>>>>>>>> Nagalenoj H.
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> FreeSWITCH-users mailing list
>>>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>>>> http://www.freeswitch.org
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Anthony Minessale II
>>>>>>>
>>>>>>> FreeSWITCH http://www.freeswitch.org/
>>>>>>> ClueCon http://www.cluecon.com/
>>>>>>> Twitter: http://twitter.com/FreeSWITCH_wire
>>>>>>>
>>>>>>> AIM: anthm
>>>>>>> MSN:anthony_minessale at hotmail.com
>>>>>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>>>>>> IRC: irc.freenode.net #freeswitch
>>>>>>>
>>>>>>> FreeSWITCH Developer Conference
>>>>>>> sip:888 at conference.freeswitch.org
>>>>>>> googletalk:conf+888 at conference.freeswitch.org
>>>>>>> pstn:+19193869900
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> FreeSWITCH-users mailing list
>>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>>> http://www.freeswitch.org
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Regards,
>>>>>> Nagalenoj H.
>>>>>>
>>>>>> _______________________________________________
>>>>>> FreeSWITCH-users mailing list
>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>> http://www.freeswitch.org
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Anthony Minessale II
>>>>>
>>>>> FreeSWITCH http://www.freeswitch.org/
>>>>> ClueCon http://www.cluecon.com/
>>>>> Twitter: http://twitter.com/FreeSWITCH_wire
>>>>>
>>>>> AIM: anthm
>>>>> MSN:anthony_minessale at hotmail.com
>>>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>>>> IRC: irc.freenode.net #freeswitch
>>>>>
>>>>> FreeSWITCH Developer Conference
>>>>> sip:888 at conference.freeswitch.org
>>>>> googletalk:conf+888 at conference.freeswitch.org
>>>>> pstn:+19193869900
>>>>>
>>>>> _______________________________________________
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>> http://www.freeswitch.org
>>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Nagalenoj H.
>>>>
>>>> _______________________________________________
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>>
>>>
>>>
>>>
>>> --
>>> Anthony Minessale II
>>>
>>> FreeSWITCH http://www.freeswitch.org/
>>> ClueCon http://www.cluecon.com/
>>> Twitter: http://twitter.com/FreeSWITCH_wire
>>>
>>> AIM: anthm
>>> MSN:anthony_minessale at hotmail.com
>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>> IRC: irc.freenode.net #freeswitch
>>>
>>> FreeSWITCH Developer Conference
>>> sip:888 at conference.freeswitch.org
>>> googletalk:conf+888 at conference.freeswitch.org
>>> pstn:+19193869900
>>>
>>> _______________________________________________
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>
>> --
>> Regards,
>> Nagalenoj H.
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> googletalk:conf+888 at conference.freeswitch.org
> pstn:+19193869900
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
More information about the FreeSWITCH-users
mailing list