[Freeswitch-users] Problem in setting configuration files
Steven Ayre
steveayre at gmail.com
Fri Sep 26 23:02:11 MSD 2014
Generally INCOMPATIBLE_DESTINATION means the 2 ends don't share a common
codec. What does the local + remote SDP show?
Also try with verbose_sdp=true, as some clients with broken implementations
will fail if the optional a=rtpmap lines are missing for static payload
types.
On 26 September 2014 14:56, Manish Talwar <manish.talwar at zaristo.com> wrote:
> Hi,
>
>
> We are still getting same error while calling SIP id from FSClient to
> freeSWITCH:
> sofia.c:4354 Hangup sofia/internal/1001 at 54.73.48.31 [CS_NEW]
> [INCOMPATIBLE_DESTINATION]
>
>
> Its seem like some configuration issue only, Please suggest us details
> of conf setting which we need to applied for resolving this issue.
>
>
> Regards,
>
> Manish Talwar
>
>
> ------------------------------
> *From:* Manish Talwar
> *Sent:* 25 September 2014 18:38
> *To:* FreeSWITCH Users Help
> *Subject:* Re: [Freeswitch-users] Problem in getting digits value in
> Playback application
>
>
> Hi,
>
> We have setup our freeswitch on AWS EC2 and tried to call it from
> "FSClient".
>
> We have registered a user "1001" on "FSClient" by SIP URL: "
> sip:mod_sofia at 10.106.3.191:5080" and Server "54.73.48.31".
>
> where, "54.73.48.31" is Public IP and "10.106.3.191" is Private IP on
> Server.
>
> When we call on 5000 from registred sip client, it will communicate with
> server and throws error as:
> sofia.c:4354 Hangup sofia/internal/1001 at 54.73.48.31 [CS_NEW]
> [INCOMPATIBLE_DESTINATION]
>
> We have registered server as public ip of the instance.
>
> Please find log of FS_CLI as "log.txt" file, "acl.conf.xml" and
> "1001.xml" files as an attachment.
>
> Please suggest us what changes we need to do for resolving this problem.
>
> Regards,
> Manish Talwar
>
>
> ------------------------------
> *From:* Michael Collins <msc at freeswitch.org>
> *Sent:* 24 September 2014 21:28
> *To:* FreeSWITCH Users Help
> *Subject:* Re: [Freeswitch-users] Problem in getting digits value in
> Playback application
>
> The port audio error seems to indicate that there isn't any kind of
> sound card or other audio device. I don't see how installing sound files
> could possibly fix that. Port audio requires some kind of hardware - sound
> card, USB headset, etc. - in order to function properly.
>
> -MC
>
> On Wed, Sep 24, 2014 at 6:33 AM, Manish Talwar <manish.talwar at zaristo.com>
> wrote:
>
>> Hi,
>>
>>
>> Thanks for your response, I will try to use "bind_digit_action" soon.
>>
>>
>> Meanwhile, I am trying to install FreeSwitch setup on our QA Server
>> now. I have followed all neccessary steps for installing it on Server
>> "Ubuntu 10.04.4 LTS (AWS EC2)" .
>>
>>
>> But after installing, while running a command "load mod_portaudio" on
>> "fs_cli" its throwing an error as:
>>
>>
>> 2014-09-24 13:12:11.771250 [ERR] mod_portaudio.c:980 Cannot find an
>> input device
>> 2014-09-24 13:12:11.771250 [ERR] mod_portaudio.c:990 Cannot find an input
>> device
>> 2014-09-24 13:12:11.771250 [CRIT] switch_loadable_module.c:882 Error
>> Loading module /usr/local/freeswitch/mod/mod_portaudio.so
>> **Module load routine returned an error**
>>
>> After that, I have tried to install "*make cd-sounds-install*" and "*make
>> cd-moh-install*" on server but its still throwing same error after
>> installing it.
>>
>>
>> Please let me know, what step's I need to follow or any Server
>> configuration required for resolving this error on Server.
>>
>>
>> Thanks,
>>
>>
>> Regards,
>>
>> Manish Talwar
>>
>>
>> ------------------------------
>> *From:* Michael Collins <msc at freeswitch.org>
>> *Sent:* 23 September 2014 02:36
>> *To:* FreeSWITCH Users Help
>> *Subject:* Re: [Freeswitch-users] Problem in getting digits value in
>> Playback application
>>
>> If you want to react immediately when the caller presses a single
>> digit then you should probably be investigating bind_digit_action:
>> https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bind_digit_action
>>
>> -MC
>>
>> On Sun, Sep 21, 2014 at 11:53 PM, Manish Talwar <
>> manish.talwar at zaristo.com> wrote:
>>
>>> Hi,
>>>
>>> I am able to get the channel variable value in a request now by
>>> "play_and_get_digits" command. But now, I need some suggestion for below
>>> query:
>>>
>>> As per my requirement, I want to play multiple audio file by
>>> "playback", run TTS by "Speak", and get digit by "Play_and_get_digits" in a
>>> single dialplan as a batch. I am sending below request to freeswitch for
>>> running multiple commands as a batch in a request:
>>>
>>>
>>> *<document
>>> type="xml/freeswitch-httapi"><params></params><variables><myDigit>-1</myDigit></variables><work><getVariable
>>> name="myDigit" permanent="1"/><execute application="log" data="INFO
>>> my_chan_var contains ${myDigit}"/><speak name="extenSpeak" text="Welcome to
>>> Q Pay" engine="flite" voice="slt" ></speak><execute
>>> action="http://localhost:9000/ivr/fswelcomeresponse
>>> <http://localhost:9000/ivr/fswelcomeresponse>"
>>> application="play_and_get_digits" data="0 1 1 2000 #
>>> ivr/MP3/dial_menu_index_five.mp3 '' myDigit ''" /><execute
>>> application="log" data="INFO my_chan_var contains ${myDigit}"/><execute
>>> application="log" data="INFO my_chan_var contains ${myDigit}"/><playback
>>> name="exten" file="ivr/MP3/dial_menu_index_one.mp3"
>>> action="http://localhost:9000/ivr/fswelcomeresponse
>>> <http://localhost:9000/ivr/fswelcomeresponse>" digit-timeout="1000"
>>> input-timeout="1000" ><bind>~\d{1,3}#{0,1}</bind></playback><execute
>>> application="log" data="INFO my_chan_var contains ${myDigit}"/><speak
>>> name="extenSpeak1" text="Press two for english." engine="flite" voice="slt"
>>> ></speak><execute application="log" data="INFO my_chan_var contains
>>> ${myDigit}"/><playback name="exten" file="ivr/MP3/dial_menu_index_four.mp3"
>>> action="http://localhost:9000/ivr/fswelcomeresponse
>>> <http://localhost:9000/ivr/fswelcomeresponse>" digit-timeout="1000"
>>> input-timeout="1000" ><bind>~\d{1,3}#{0,1}</bind></playback><execute
>>> action="http://localhost:9000/ivr/fswelcomeresponse
>>> <http://localhost:9000/ivr/fswelcomeresponse>"
>>> application="play_and_get_digits" data="0 1 1 2000 #
>>> ivr/MP3/dial_menu_index_five.mp3 '' myDigit ''" /><execute
>>> application="log" data="INFO my_chan_var contains ${myDigit}"/><execute
>>> application="log" data="INFO my_chan_var contains ${myDigit}"/><speak
>>> name="extenSpeak2" text="Press star to repeat." engine="flite" voice="slt"
>>> ></speak></work></document>*
>>>
>>>
>>>
>>> Currently, Its playing all commands as mentioned in dialplan and then
>>> move to Action URL after completing all command in a request. But I need
>>> to send my request to Action URL immidieatly when user press any digit.
>>>
>>> I have studied something *"break [UDDI]"* for skipping current batch
>>> request and move to other request in httapi application but I am not
>>> getting more details about it.
>>>
>>> Please let me know, how to I implement my requirement and send my
>>> request to Action URL immidieatly when user press any digit?
>>>
>>> Thanks,
>>>
>>> Regards,
>>> Manish Talwar
>>>
>>>
>>> ------------------------------
>>> *From:* Manish Talwar
>>> *Sent:* 18 September 2014 13:44
>>> *To:* FreeSWITCH Users Help
>>> *Subject:* RE: [Freeswitch-users] Problem in getting digits value in
>>> Playback application
>>>
>>>
>>> Hi,
>>>
>>>
>>> As you suggested, "Play_and_get_digits" command is running fine now,
>>> But I am still not able to get the value of Channel variable
>>> "myChannelVar" in a call as Its returning me blank value.
>>>
>>>
>>> I am sending request as:
>>>
>>> *<document type="xml/freeswitch-httapi">*
>>>
>>> *<params></params>*
>>>
>>> * <work>*
>>>
>>> * <getVariable name="myChannelVar" permanent="1"/>*
>>>
>>> * <execute application="play_and_get_digits" data="1 4 1 5000 # ivr/MP3/card_activate_birth_date.mp3 '' myChannelVar \d+" />*
>>>
>>> * <execute application="log" data="INFO my_chan_var contains ${myChannelVar}"/>*
>>>
>>> * <execute application="hangup"/>*
>>>
>>> * </work>*
>>>
>>> *</document>*
>>>
>>>
>>> As a output, its play a audio file and I pressed a key 2222 digits in a call but its returning me blank value in channel variable "*myChannelVar*".
>>>
>>> I got a response in a console log as:
>>>
>>> 2014-09-18 13:28:49.739010 [DEBUG] mod_httapi.c:1217 Process Tag: [execute]
>>> EXECUTE portaudio/5000 log(INFO my_chan_var contains )
>>> 2014-09-18 13:28:49.739010 [INFO] mod_dptools.c:1628 my_chan_var contains
>>>
>>>
>>> I have set the permission in my HTTAPI config file to *"set-vars", "get-vars" & "expand-vars" *tags and its seem like working fine. For reference, please find my HTTAPI config file as an attachment.
>>>
>>>
>>> Please suggest me how do I got a channel variable value and pass it to other POST request.
>>>
>>>
>>> Thanks,
>>>
>>>
>>> Regards,
>>>
>>> Manish Talwar
>>>
>>> ------------------------------
>>> *From:* Manish Talwar <manish.talwar at zaristo.com>
>>> *Sent:* 18 September 2014 11:54
>>> *To:* FreeSWITCH Users Help
>>> *Subject:* Re: [Freeswitch-users] Problem in getting digits value in
>>> Playback application
>>>
>>>
>>> Its working fine now, Thanks a lot.
>>>
>>>
>>> Regards,
>>>
>>> Manish Talwar
>>>
>>>
>>> ------------------------------
>>> *From:* Michael Collins <msc at freeswitch.org>
>>> *Sent:* 18 September 2014 01:00
>>> *To:* FreeSWITCH Users Help
>>> *Subject:* Re: [Freeswitch-users] Problem in getting digits value in
>>> Playback application
>>>
>>> I think what you did was set the default to allow and everything you
>>> listed underneath became denied. Try setting the default back to deny and
>>> see if it works as expected.
>>> -MC
>>>
>>> On Wed, Sep 17, 2014 at 7:28 AM, Manish Talwar <
>>> manish.talwar at zaristo.com> wrote:
>>>
>>>> Hi,
>>>>
>>>>
>>>> Please revert me about Permission setting ASAP.
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Manish Talwar
>>>>
>>>>
>>>> ------------------------------
>>>> *From:* Manish Talwar
>>>> *Sent:* 17 September 2014 10:59
>>>> *To:* FreeSWITCH Users Help
>>>> *Subject:* RE: [Freeswitch-users] Problem in getting digits value in
>>>> Playback application
>>>>
>>>>
>>>> Hi,
>>>>
>>>>
>>>> I have tried by giving below Permission with my HTTAPI config file.
>>>>
>>>>
>>>> <permission name="execute-apps" value="true">
>>>> <!-- default to "deny" or "allow" -->
>>>> <application-list default="allow">
>>>> <!-- type attr can be "deny" or "allow" nothing defaults to
>>>> opposite of the list default so allow in this case -->
>>>> <application name="info"/>
>>>> <application name="play_and_get_digits"/>
>>>> <application name="hangup"/>
>>>> </application-list>
>>>> </permission>
>>>>
>>>> and from Web Application, I am sending request as:
>>>>
>>>> <document type="xml/freeswitch-httapi">
>>>> <params></params>
>>>> <work>
>>>> <execute application="play_and_get_digits" data="1 4 1 5000 #
>>>> /ivr/8000/ivr-enter_number_to_remove_from_blacklist.wav '' foobar \d+" />
>>>> </work>
>>>> </document>
>>>>
>>>> but still its giving me error as "[ERR] mod_httapi.c:840 Permission
>>>> Denied!"
>>>>
>>>> However, its work fine with hangup application:
>>>>
>>>> <document type="xml/freeswitch-httapi">
>>>> <params></params>
>>>> <work>
>>>> <execute application="hangup"/>
>>>> </work>
>>>> </document>
>>>>
>>>> I feel, it must be some setting problem in config file only. Please
>>>> find my HTTAPI config file as an attachment and let me know if any
>>>> changes required in this file.
>>>>
>>>> Thanks,
>>>>
>>>> Regards,
>>>> Manish Talwar
>>>> ------------------------------
>>>> *From:* Michael Collins <msc at freeswitch.org>
>>>> *Sent:* 16 September 2014 23:09
>>>> *To:* FreeSWITCH Users Help
>>>> *Subject:* Re: [Freeswitch-users] Problem in getting digits value in
>>>> Playback application
>>>>
>>>>
>>>> On Tue, Sep 16, 2014 at 9:46 AM, Manish Talwar <
>>>> manish.talwar at zaristo.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>>
>>>>> Thanks for quick response, I have already try to use this
>>>>> "play_and_get_digits" command.
>>>>>
>>>>>
>>>>> Its working fine when I use this as a dialplan <extension> tag in
>>>>> FreeSwitch file but while using it in Web Application with "<execute>"
>>>>> httapi command its throwing error as "[ERR] mod_httapi.c:840
>>>>> Permission Denied!"
>>>>>
>>>>>
>>>>> I have tried to reset Permission of "execute-apps" in
>>>>> httapi-conf.xml file, but still got same error.
>>>>> <http://www.freeswitchsolutions.com>
>>>>>
>>>> This is almost certainly a permissions issue with your HTTAPI config
>>>> file. What do you have in your "execute-apps" section? The default is to
>>>> deny and then explicitly allow only the items you specify. FYI, this is
>>>> covered quite thoroughly in the FreeSWITCH 1.2 book on pages 277-280.
>>>>
>>>> -MC
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.freeswitch.org
>>>> http://www.cluecon.com
>>>>
>>>>
>>>>
>>>>
>>>> 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
>>>>
>>>
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>>
>>>
>>>
>>> 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
>>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>>
>>
>>
>> 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
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
>
>
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140926/ff11818a/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list