No sound on phone (playback() problem?)

Hello everybody,

I’m a total Asterisk newbie and I am trying to set up a personal (!) answering machine just on my home computer. Yes, I know Asterisk is probably overkill, but I couldn’t find any other solution that’s (hopefully) even half as nice :smile:

This is on a private ISDN line (BRI I suppose) with no other dedicated hardware and no VoIP at all.

It’s been a rocky road (as you can read here if you’re curious), but I’ve made amazing progress (amazing to me anyway g) - all by myself up to this point (proud), but now I’m stuck…

In short, I’ve managed to compile and install

  • my CAPI driver (hardest part… sigh)
  • Asterisk 1.4.4
  • libpri
  • chan_capi HEAD (1.0.1 does not compile with Asterisk 1.4.4)

Many things look promising:

Asterisk Ready. *CLI>
g

CLI> capi info Common ISDN API Driver ($Revision: 517 $) www.chan-capi.org Contr1: 2 B channels total, 2 B channels free.
When I call myself, the call is detected:

I tried adding something to my dial plan by adding the following to my extensions.conf (should I just delete everything else from extensions.conf?? I get lots of warnings but no errors for “dialplan reload”)

[capi-in] include => demo exten => 74388xxx,1,Wait,5 exten => 74388xxx,n,Answer() exten => 74388xxx,n,Playback(vm-youhave) exten => 74388xxx,n,VoiceMail(777@mb_tutorial) exten => 74388xxx,n,Hangup()

Now Asterisk picks up the call, but I get no sound at all :frowning:
(yes, the mailbox is (hopefully) configured, but even the Playback does not work.)
The “include => demo” is probably wrong, but removing it doesn’t make any difference.

Where can I look for the problem? I really don’t know! I suspect it’s some problem with the sound files or codecs, but the sound files are there (/var/lib/asterisk/sound) and I get the following during startup “format_gsm.so => (Raw GSM data)” which looks to me like the successful loading of the gsm-codec. I hope it’s not a driver problem… Where do I find a log file to look at?

All of this on a shiny new Ubuntu 7.04 with kernel 2.6.20-16 and an “AVM Fritz! Card USB”

Any help highly appreciated!

First of all when doing pattern matching you need to place a underscore before the pattern ie exten => _845XXXX,1,noop()

however if you would of written you’r whole number ie exten => 8451234,1,noop() then you wouldnt need the underscore.

therefore in your case it never matched the pattern so asterisk did not answer your call it just ignored the call

soooo much later… I wanted to give a little update :wink:

I had many things to do and didn’t touch this for some months… my problem was unsolved…
Now I installed a new Linux distribution (Ubuntu 7.10) and gave Asterisk another try… and it worked “almost out of the box”… well, as much as Asterisk can ever work out of the box :wink: What I mean is: When I made all the necessary settings and it looked good in the CLI, it also worked and I could hear the demo that I hadn’t heard before…

Of course I have changed almost everything in the meantime… it’s a different kernel, a new distribution, a newer version of Asterisk (1.4.10 actually since that was available in the repository) and a newer version of chan_capi. That makes it kind of hard to tell what the problem was…
I tend to believe that it was some bug last time since there’s not THAT much to configure if you just want to listen to the demo. Could’ve been my mistake as well, of course…

@rosenbergs: Thanks for answering, I really don’t know why I missed your answer?! I just discovered it right now when I wanted to post my update… I just hate it when I post some help for someone and they never answer again… I really didn’t do that on purpose…

Oh sorry, lol
I just put XXXX in my post to protect my phone number, I had not actually put XXXX in the dial plan. Nor had I known about pattern matching last time I posted and it never occurred to me I would change the meaning of my post by putting X in there :wink:))

However…

[quote=“rosenbergs”]
however if you would of written you’r whole number ie exten => 8451234,1,noop() then you wouldnt need the underscore.

therefore in your case it never matched the pattern so asterisk did not answer your call it just ignored the call[/quote]

I think it was clear from my post that Asterisk did NOT just ignore the call.
It did that first and told me about it. Then after my addition to the dial plan, it did pick up but I couldn’t hear anything.

Never mind, it now works as described above. Thanks for your help :smile:

Finch