Call gets hanged up with Audio File

Moderator: areski

Call gets hanged up with Audio File

Postby mydigia » Mon Feb 13, 2012 1:35 pm

Hi guys,

I have just installed Newfies-dialer. It works like a charm on a text-to-read scenario, but when it comes to playing my audio file, the call gets hanged up as soon as it is called and tried to play the file.

I have well noticed about the file format (mp3, wav, ogg).

What can be the issue?

Thank you,
Ali.
mydigia
 
Posts: 15
Joined: Mon Feb 13, 2012 1:31 pm

Re: Call gets hanged up with Audio File

Postby mydigia » Mon Feb 13, 2012 2:01 pm

BTW:

Below is my FreeSwitch log:

Code: Select all
2012-02-13 05:51:43.496185 [INFO] switch_channel.c:2710 sofia/external/MY_MOBILE_NUMBER Flipping CID from "" <8888888888> to "Outbound Call" <MY_MOBILE_NUMBER>
2012-02-13 05:51:43.496185 [DEBUG] mod_commands.c:3574 (sofia/external/MY_MOBILE_NUMBER) State Change CS_CONSUME_MEDIA -> CS_EXECUTE
2012-02-13 05:51:43.496185 [DEBUG] switch_core_session.c:1180 Send signal sofia/external/MY_MOBILE_NUMBER [BREAK]
2012-02-13 05:51:43.496185 [DEBUG] switch_core_state_machine.c:362 (sofia/external/MY_MOBILE_NUMBER) Running State Change CS_EXECUTE
2012-02-13 05:51:43.496185 [DEBUG] switch_core_state_machine.c:417 (sofia/external/MY_MOBILE_NUMBER) State EXECUTE
2012-02-13 05:51:43.496185 [DEBUG] mod_sofia.c:241 sofia/external/MY_MOBILE_NUMBER SOFIA EXECUTE
2012-02-13 05:51:43.496185 [DEBUG] switch_core_state_machine.c:192 sofia/external/MY_MOBILE_NUMBER Standard EXECUTE
EXECUTE sofia/external/MY_MOBILE_NUMBER socket(127.0.0.1:8084 async full)
2012-02-13 05:51:43.516147 [DEBUG] switch_core_session.c:1012 Send signal sofia/external/MY_MOBILE_NUMBER [BREAK]
2012-02-13 05:51:43.516147 [DEBUG] switch_core_session.c:1012 Send signal sofia/external/MY_MOBILE_NUMBER [BREAK]
2012-02-13 05:51:43.536110 [DEBUG] switch_ivr.c:591 sofia/external/MY_MOBILE_NUMBER Command Execute set(plivo_app=true)
EXECUTE sofia/external/MY_MOBILE_NUMBER set(plivo_app=true)
2012-02-13 05:51:43.536110 [DEBUG] mod_dptools.c:1281 sofia/external/MY_MOBILE_NUMBER SET [plivo_app]=[true]
2012-02-13 05:51:43.536110 [DEBUG] switch_ivr.c:591 sofia/external/MY_MOBILE_NUMBER Command Execute set(hangup_after_bridge=false)
EXECUTE sofia/external/MY_MOBILE_NUMBER set(hangup_after_bridge=false)
2012-02-13 05:51:43.536110 [DEBUG] mod_dptools.c:1281 sofia/external/MY_MOBILE_NUMBER SET [hangup_after_bridge]=[false]
2012-02-13 05:51:43.536110 [DEBUG] switch_core_session.c:1012 Send signal sofia/external/MY_MOBILE_NUMBER [BREAK]
2012-02-13 05:51:43.536110 [DEBUG] switch_core_session.c:1012 Send signal sofia/external/MY_MOBILE_NUMBER [BREAK]
2012-02-13 05:51:43.556058 [DEBUG] switch_ivr.c:591 sofia/external/MY_MOBILE_NUMBER Command Execute set(playback_terminators=none)
EXECUTE sofia/external/MY_MOBILE_NUMBER set(playback_terminators=none)
2012-02-13 05:51:43.556058 [DEBUG] mod_dptools.c:1281 sofia/external/MY_MOBILE_NUMBER SET [playback_terminators]=[none]
2012-02-13 05:51:43.556058 [DEBUG] switch_ivr.c:591 sofia/external/MY_MOBILE_NUMBER Command Execute playback(shout://192.168.109.129:8008/mediafiles/upload/audiofiles/audio-file-JLKVU-1425019998.wav)
EXECUTE sofia/external/MY_MOBILE_NUMBER playback(shout://192.168.109.129:8008/mediafiles/upload/audiofiles/audio-file-JLKVU-1425019998.wav)
2012-02-13 05:51:43.556058 [DEBUG] mod_shout.c:472 Read Thread Done
2012-02-13 05:51:44.056294 [DEBUG] switch_ivr_play_say.c:1306 Codec Activated L16@8000hz 1 channels 20ms
2012-02-13 05:51:44.056294 [DEBUG] switch_ivr_play_say.c:1678 done playing file shout://192.168.109.129:8008/mediafiles/upload/audiofiles/audio-file-JLKVU-1425019998.wav
2012-02-13 05:51:44.056294 [DEBUG] switch_core_session.c:1012 Send signal sofia/external/MY_MOBILE_NUMBER [BREAK]
2012-02-13 05:51:44.056294 [DEBUG] mod_event_socket.c:2633 (sofia/external/MY_MOBILE_NUMBER) State Change CS_EXECUTE -> CS_RESET
2012-02-13 05:51:44.056294 [DEBUG] switch_core_session.c:1180 Send signal sofia/external/MY_MOBILE_NUMBER [BREAK]
2012-02-13 05:51:44.076205 [DEBUG] switch_ivr.c:591 sofia/external/MY_MOBILE_NUMBER Command Execute hangup()
EXECUTE sofia/external/MY_MOBILE_NUMBER hangup()
2012-02-13 05:51:44.076205 [DEBUG] switch_channel.c:2848 (sofia/external/MY_MOBILE_NUMBER) Callstate Change ACTIVE -> HANGUP
2012-02-13 05:51:44.076205 [NOTICE] mod_dptools.c:1121 Hangup sofia/external/MY_MOBILE_NUMBER [CS_RESET] [NORMAL_CLEARING]
2012-02-13 05:51:44.076205 [DEBUG] switch_channel.c:2871 Send signal sofia/external/MY_MOBILE_NUMBER [KILL]
2012-02-13 05:51:44.076205 [DEBUG] switch_core_session.c:1180 Send signal sofia/external/MY_MOBILE_NUMBER [BREAK]
2012-02-13 05:51:44.076205 [DEBUG] switch_core_session.c:2285 sofia/external/MY_MOBILE_NUMBER skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
2012-02-13 05:51:44.076205 [DEBUG] switch_core_session.c:2285 sofia/external/MY_MOBILE_NUMBER skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:417 (sofia/external/MY_MOBILE_NUMBER) State EXECUTE going to sleep
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:362 (sofia/external/MY_MOBILE_NUMBER) Running State Change CS_HANGUP
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:602 (sofia/external/MY_MOBILE_NUMBER) State HANGUP
2012-02-13 05:51:44.076205 [DEBUG] mod_sofia.c:469 Channel sofia/external/MY_MOBILE_NUMBER hanging up, cause: NORMAL_CLEARING
2012-02-13 05:51:44.076205 [DEBUG] mod_sofia.c:513 Sending BYE to sofia/external/MY_MOBILE_NUMBER
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:47 sofia/external/MY_MOBILE_NUMBER Standard HANGUP, cause: NORMAL_CLEARING
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:602 (sofia/external/MY_MOBILE_NUMBER) State HANGUP going to sleep
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:393 (sofia/external/MY_MOBILE_NUMBER) State Change CS_HANGUP -> CS_REPORTING
2012-02-13 05:51:44.076205 [DEBUG] switch_core_session.c:1180 Send signal sofia/external/MY_MOBILE_NUMBER [BREAK]
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:362 (sofia/external/MY_MOBILE_NUMBER) Running State Change CS_REPORTING
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:662 (sofia/external/MY_MOBILE_NUMBER) State REPORTING
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:79 sofia/external/MY_MOBILE_NUMBER Standard REPORTING, cause: NORMAL_CLEARING
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:662 (sofia/external/MY_MOBILE_NUMBER) State REPORTING going to sleep
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:387 (sofia/external/MY_MOBILE_NUMBER) State Change CS_REPORTING -> CS_DESTROY
2012-02-13 05:51:44.076205 [DEBUG] switch_core_session.c:1180 Send signal sofia/external/MY_MOBILE_NUMBER [BREAK]
2012-02-13 05:51:44.076205 [DEBUG] switch_core_session.c:1380 Session 27 (sofia/external/MY_MOBILE_NUMBER) Locked, Waiting on external entities
2012-02-13 05:51:44.076205 [NOTICE] switch_core_session.c:1398 Session 27 (sofia/external/MY_MOBILE_NUMBER) Ended
2012-02-13 05:51:44.076205 [NOTICE] switch_core_session.c:1400 Close Channel sofia/external/MY_MOBILE_NUMBER [CS_DESTROY]
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:491 (sofia/external/MY_MOBILE_NUMBER) Callstate Change HANGUP -> DOWN
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:494 (sofia/external/MY_MOBILE_NUMBER) Running State Change CS_DESTROY
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:504 (sofia/external/MY_MOBILE_NUMBER) State DESTROY
2012-02-13 05:51:44.076205 [DEBUG] mod_sofia.c:374 sofia/external/MY_MOBILE_NUMBER SOFIA DESTROY
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:86 sofia/external/MY_MOBILE_NUMBER Standard DESTROY
2012-02-13 05:51:44.076205 [DEBUG] switch_core_state_machine.c:504 (sofia/external/MY_MOBILE_NUMBER) State DESTROY going to sleep


If you notice, there is a hangup request coming (I don't know where from):
2012-02-13 05:51:44.076205 [DEBUG] switch_ivr.c:591 sofia/external/MY_MOBILE_NUMBER Command Execute hangup()
EXECUTE sofia/external/MY_MOBILE_NUMBER hangup()



Thank you.
mydigia
 
Posts: 15
Joined: Mon Feb 13, 2012 1:31 pm

Re: Call gets hanged up with Audio File

Postby areski » Mon Feb 13, 2012 9:56 pm

Can you pastebin the log of plivo, the file are located
/usr/share/plivo/tmp/plivo-rest.log
and /usr/share/plivo/tmp/plivo-outbound.log
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Call gets hanged up with Audio File

Postby mydigia » Tue Feb 14, 2012 10:24 am

Hi Areski,

You have been always there to help. Thumps up dude and thank you for your reply.

my /usr/share/plivo/tmp/plivo-rest.log is: http://pastebin.com/cQwUD5rG

and my /usr/share/plivo/tmp/plivo-outbound.log is: http://pastebin.com/kvbXHWEJ

The Parameters that I was forced to change when pasting, are all in CAPITAL. MY_USERNAME, MY_EXTERNAL_IP_ADDRESS, MY_PROVIDER, MY_MOBILE_NUMBER.

Thank you,

Ali.
mydigia
 
Posts: 15
Joined: Mon Feb 13, 2012 1:31 pm

Re: Call gets hanged up with Audio File

Postby areski » Tue Feb 14, 2012 10:55 am

2012-02-13 05:51:44.056294 [DEBUG] switch_ivr_play_say.c:1678 done playing file shout://192.168.109.129:8008/mediafiles ... 019998.wav


What I don't understand is why Freeswitch is using shout to try to play a wav file!

Code: Select all
2012-02-13 05:51:43,547 plivo-outbound[1279]: ERROR: (10) Cache Error: HTTP Error 404: NOT FOUND
2012-02-13 05:51:43,547 plivo-outbound[1279]: INFO: (10) [Play] http://192.168.109.129:8008/mediafiles/upload/audiofiles/audio-file-JLKVU-1425019998.wav {'loop': 1}


I'm tempted to believe there is an issue to cache the file on the file system, can you try to open this url and see if you can download and list to the wav file, if so please make it available to us too (use dropbox)
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Call gets hanged up with Audio File

Postby mydigia » Tue Feb 14, 2012 2:40 pm

The file could not be found from my browser.

So logging in to the VPS via SFTP and going to: /usr/share/newfies/usermedia/upload/audiofiles/, i could see some files. Some with www-data being the owner, and some with root.

I even tried uploading my own directly, but no luck.

Qustion:
After uploading the audio file using "Audio Files" menu on top, when I am creating the "Voice Apps" from "Modules" menu, I have to select: - Playaudio : Audio file URL, as for the URL, which will it be? The "HTTP://host:8008/..../my-audio-file.mp3" OR the "/usr/share/newfies/usermedia/upload/audiofiles/audio-file-XXXX-12345678.mp3"

I found http://www.newfies-dialer.org/docs/en/l ... pplication unclear to me, that is why I am asking to double-check.

Anyways, problem still persists.
mydigia
 
Posts: 15
Joined: Mon Feb 13, 2012 1:31 pm

Re: Call gets hanged up with Audio File

Postby areski » Tue Feb 14, 2012 5:03 pm

both will work but if you use "HTTP://host:8008/..../my-audio-file.mp3" and the url is not actually working, then you either did something wrong in the configuration or the audio upload failed for some reason.
areski
Site Admin
 
Posts: 302
Joined: Tue Oct 18, 2011 5:28 pm

Re: Call gets hanged up with Audio File

Postby mydigia » Sat Feb 18, 2012 7:09 pm

areski wrote:both will work but if you use "HTTP://host:8008/..../my-audio-file.mp3" and the url is not actually working, then you either did something wrong in the configuration or the audio upload failed for some reason.


Ok. So, HTTP://host:8008/..../my-audio-file.mp3 is working. and I still get error on Freeswitch console. By the way, new server, new installation, Ubuntu LTS 10.04 as advised:

Code: Select all
2012-02-18 20:41:05.096329 [ERR] switch_core_file.c:122 Invalid file format [shell_stream] for [/usr/share/plivo/bin/wavstream.sh http://127.0.0.1:8089/Cache/?url=MY_HOST_ADDRESS...%3A8008%2Fmediafiles%2Fupload%2Faudiofiles%2Faudio-file-DFFDZ-1620035269.wav]!



When I tried to give a link from outside/external, it works like a charm.

But Uploading, without the need of some sort of a hard-corded work, doesn't work. I strongly believe this is an issue of a software, because my installation is just purely fine, without any modifications from my side.

Thank you,
Ali.
mydigia
 
Posts: 15
Joined: Mon Feb 13, 2012 1:31 pm

Re: Call gets hanged up with Audio File

Postby kdaffef » Tue Feb 28, 2012 8:51 am

Hi Ali,

I have the issue with playing audio files (wav and mp3, but the speak method is ok). Did you find some things to fix it ???

Thank you for any help !!

Kamel
kdaffef
 
Posts: 8
Joined: Fri Jan 20, 2012 7:44 pm

Re: Call gets hanged up with Audio File

Postby mydigia » Tue Feb 28, 2012 9:32 am

Hi,

What I did was I did a complete re-install on another server, exactly on the requirements of the installation script. I mean Ubuntu 10.04 TLS, and followed everything up to the point that I was 100% sure that everything is indeed installed properly. Because according to my experience, if anything fails in installation level, there is no way to get the rest working properly. So since the installation was only tested on Ubunu and CentOS, I went ahead with the suggested ones.

Once I got that installation running error-free, I still had the issue with file-playing on "speak" method. So I tested the call by giving an external URL to an audio file to play, and it worked fine, with a very little delay in time to cache the audio file. So, in that case, I just uploaded the file to the local apache public http at: "/var/html/www/...", which in that case, it was local to the script, and cached it at 99% local speed. It worked that way, but I never got it working through the interface, by just simply uploading, and putting the local absolute URL and without the use of hard-coding and taking back-end shortcuts.

I was continuously suggested by Areski that the issue is with my installation, but in face, I just did pure installation, without touching anything, so I kinda gave up on fixing the previous error.

But nevertheless, I had/have other issues, which I posted on other topics, with 0 reply. Which have to do with core functionality of the software.

Hope this helps.
Ali.
mydigia
 
Posts: 15
Joined: Mon Feb 13, 2012 1:31 pm

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 70 guests

cron