[Freeswitch-dev] my problems on originating a new call and saying digits
Hi All, I have a problem about he API command <originate>, so I'm here for some help. Thanks in advance. In FreeSWITCH, I want to originate a call to a remote user, when the user answers the call, FreeSWITCH will say some digits to the user. My command is as following: ======================================= freeswitch@internal>originate sofia/internal/8613302033450@xx.xx.xx.xx:5060 '&say(en number iterated 12345678912345)' ======================================== After I execute this command, the destination cellphone rings, but when I answer the call, the digit string "12345678912345" has almost finished saying, so I can't hear the complete digit string. In other words, the 'say' application has been executed before the call is answered. This is not what I expect. Could any one give me some advice on what I should do ? Or some other commands to meet my requirement? Any advice would be appreciated. BTW, if I originate a call to local user (e.g. 1005, which is the preconfigured user account of FreeSWITCH), and say some digits, the behavior is what I expect. For example, if I execute the below command: ======================================= freeswitch@internal>originate sofia/internal/1005%10.20.1.158 '&say(en number iterated 12345678912345)' ======================================= The digits "12345678912345" begin to be said right after I answer the call (I use X-Lite as the soft phone). This is what I expect. But why the behavior when with a remote user is different? -- Best Regards Erjian
You need to use 'ignore_early_media=true' in the originate command. Like this originate {ignore_early_media=true} sofia .... On Feb 23, 2012 3:59 PM, "Erjian Li" <eli@netspectrum.com> wrote:
Hi All,
I have a problem about he API command <originate>, so I'm here for some help. Thanks in advance.
In FreeSWITCH, I want to originate a call to a remote user, when the user answers the call, FreeSWITCH will say some digits to the user. My command is as following: ======================================= freeswitch@internal>originate sofia/internal/8613302033450@xx.xx.xx.xx:5060 '&say(en number iterated 12345678912345)' ========================================
After I execute this command, the destination cellphone rings, but when I answer the call, the digit string "12345678912345" has almost finished saying, so I can't hear the complete digit string. In other words, the 'say' application has been executed before the call is answered. This is not what I expect. Could any one give me some advice on what I should do ? Or some other commands to meet my requirement? Any advice would be appreciated.
BTW, if I originate a call to local user (e.g. 1005, which is the preconfigured user account of FreeSWITCH), and say some digits, the behavior is what I expect. For example, if I execute the below command: ======================================= freeswitch@internal>originate sofia/internal/1005%10.20.1.158 '&say(en number iterated 12345678912345)' =======================================
The digits "12345678912345" begin to be said right after I answer the call (I use X-Lite as the soft phone). This is what I expect. But why the behavior when with a remote user is different?
-- Best Regards
Erjian
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
participants (2)
-
Erjian Li
-
Prashant Lamba