Turns out there is no sound on out-bound calls so my claims of success were a little premature.
I've been trying to diagnose - asterisk debugging is not super easy to follow and nothing cries PANIC. A good way to test was to use call-recording feature on 2talk and then test outbound call to mobile (using a friend to talk on one and you on the other is easiest ;). If both voices are recorded then obviously 2talk is receiving both and having issues thereafter (simple and obvious but seems to confirm that 2talk are passing on what they receive).
Searching around I see some notes on similar (no/extremely choppy audio on outbound call issues) such as https://issues.asterisk.org/jira/browse/ASTERISK-16258
Some things to try to resolve this.
Also review iax show netstat maybe the lack of sound is due to issues with load encoding on the fly, etc.
Some notes for me to refer back to and share. There's much out there that I've found useful so here's my attempt at contributing.
Showing posts with label Asterisk. Show all posts
Showing posts with label Asterisk. Show all posts
Tuesday, July 3, 2012
Friday, June 8, 2012
Cubox [Part 3]: + Asterisk 1.8 .. fully operational
As mentioned I rebuilt the Cubox with Debian 'squeeze' and got mpd running (see previous post). The bigger hurdle for me was to get Asterisk running and complete migration of an old Centos / Trixbox set-up .. Centos was just too awkward for me.
Thinking about it:
I'm actually pretty happy with freepbx I just don't want the Centos that Trixbox comes with
My Asterisk config is actually pretty simple
Failing
I began fooling around trying to migrate the config from the Trixbox server to the default Asterisk config files that came installed via apt-get on squeeze. Whilst both were 1.6 I realised the Trixbox ones were quite modified in set-up by use of freepbx gui to configure them. I got to the point where I was coping over the php agi scripts to find they weren't php5 compliant ... OK this isn't going to work cleanly .. back it up.Thinking about it:
I'm actually pretty happy with freepbx I just don't want the Centos that Trixbox comes with
My Asterisk config is actually pretty simple
- 1 x IAX2 trunk
- 1 x SIP trunk
- 1 x out-/in-bound routes
- 1 x Ring Group (ring all extensions .. in NO ANSWER hand over to VM IVR)
- 1 x VM IVR (leave message for whom?)
- 3 x Extensions (2000 - Dect phone, 2001 - Me, 2002 - Mrs and more to follow I'm sure)
Thursday, June 7, 2012
Cubox [Part 1]: the arrival + Debian 'squeeze'
My first (and I say first for a reason) Cubox arrive from Solid-run this week. The reason I got the first one:
Experience to date
Next steps were:
Well almost. I simply trashed the boot process as some of the new packages simply didn't work leaving me with a busted install and kernel panic's .. don't do an apt-get upgrade if you want to keep it working.
Next steps:
- Cheap as (99 euro)
- Need a fan-less music and phone system (mpd and asterisk)
Experience to date
Breaking it
Booted out of the box with an HDMI cable plugged into the TV but without a network cable or adapter handy this was short lived but proved all should play nicely. Booting it directly with a network cable (headless) worked fine - check for host 'cubox' on list of router dhcp leasesfor ip address. ssh'ing in was fine given default 'cubox/cubox' and 'root/cubox' details .. all good.Next steps were:
- leave the default Ubuntu 10.04 on there for a quick set-up of what I need
- install music server (sudo apt-get install mpd)
- install asterisk (sudo apt-get install asterisk, etc)
- update all packages (it said some were needed) ... error .. almost bricked it ..
Well almost. I simply trashed the boot process as some of the new packages simply didn't work leaving me with a busted install and kernel panic's .. don't do an apt-get upgrade if you want to keep it working.
Fixing it
OK so rather than try and figure out where the base system could be restored from (take a back-up people - dd the whole MMC card would be my future recommendation .. that is if you want to go back to it .. I don't really want to).Next steps:
- get serial access sorted - nicely documented here, no problem - refresh your screen commands - this worked best for me.
- choose a distro - I'm picking debian - http://www.solid-run.com/mw/index.php/Debian_on_CuBox
- lot's of udev issues with wheezy so I'm going back to squeeze - consider http://www.solid-run.com/phpbb/viewtopic.php?f=11&t=323#p1010
- run with basic ssh server only set-up and copy over kernel / boot images.
Some hints I found useful fixing this issue:
- If you find yourself booting a usb kernel numerous times to get the MMC card back operational again, cat /proc/partitions to find the name soyou can mount the boot partition
- As per this post make sure your boot partition contains a /boot directory ;)
Monday, April 16, 2012
Email voicemail from asterisk
Nothing too flash - simple stuff and existing capability in TrixBox. Only problem I had was not being able to listen to the wav format recording on my cell (Android) or some desktops - the problem turned out to be common and resolving was simply a matter of changing a line of config, e.g. http://www.voip-info.org/wiki/view/Asterisk+Voicemail+as+email+using+sendmail
voicemail.conf
The only other setting I changed (from default as part of this) was to not store the recording on the server (just email) - basically it is good to pick up the message remotely but having listened to it there is really no need to keep it (IMHO messages age so either listen or delete).
So in review there is now some basic IVR to ask who the message is for and once recorded the recording is emailed to said user. Happy campers.
voicemail.conf
[general]
; Formats for writing Voicemail. Note that when using IMAP storage for
; voicemail, only the first format specified will be used.
;format=g723sf|wav49|wav
format = wav49|gsm|wav
; Formats for writing Voicemail. Note that when using IMAP storage for
; voicemail, only the first format specified will be used.
;format=g723sf|wav49|wav
format = wav49|gsm|wav
The only other setting I changed (from default as part of this) was to not store the recording on the server (just email) - basically it is good to pick up the message remotely but having listened to it there is really no need to keep it (IMHO messages age so either listen or delete).
So in review there is now some basic IVR to ask who the message is for and once recorded the recording is emailed to said user. Happy campers.
Friday, January 6, 2012
Creating sounds files for Asterisk with Audacity
Have set-up a IVR service on my home asterisk set-up so that people ringing our home phone number can choose who to leave a message for (i.e select 1 for my VM extension, etc).
For the link in title and the reference to Audacity was the best solution (sweep wasn't playing nicely with pulseaudio and I was a bit over figuring out why, and sox conversion from basic Sound Recorder files wasn't working as obviously as examples suggested it might). I have played a bit with Audacity as a multi-track recorder for guitar session fooling and was pleased to find all paths seemed to suggest it was the answer.
I was trying to be too clever and set all the options myself - then found this link and presto - one last trick however was to leave it sample format at 32-bit float, mono and 8000Hz rate as mentioned (if you set the project rate to 8000 Hz I found I needed to change it to playback) .. then export as 'WAV (Microsoft) singed 16 bit PCM' sorted.
For the link in title and the reference to Audacity was the best solution (sweep wasn't playing nicely with pulseaudio and I was a bit over figuring out why, and sox conversion from basic Sound Recorder files wasn't working as obviously as examples suggested it might). I have played a bit with Audacity as a multi-track recorder for guitar session fooling and was pleased to find all paths seemed to suggest it was the answer.
I was trying to be too clever and set all the options myself - then found this link and presto - one last trick however was to leave it sample format at 32-bit float, mono and 8000Hz rate as mentioned (if you set the project rate to 8000 Hz I found I needed to change it to playback) .. then export as 'WAV (Microsoft) singed 16 bit PCM' sorted.
Subscribe to:
Posts (Atom)
