No voicemail on incoming call via SIP and no dial out

I’m running the current asterisk 1.4.0 beta on my desktop system, which is actually a gentoo linux , kernel 2.6.18-gentoo-r6 on x86_64.

My idea is to create something like a very customizable voicemail recorder.

My asterisk is registered to my sip provider, I have managed to set up a software sip phone to connect to asterisk on localhost (port 5061!).
The setup was created by using the new gui. I created 1 user and 1 sip provider. This did’nt work for incoming or outgoing calls, so I added some lines to sip.conf and extensions.conf.

When I call my sip phone number at my provider, my softphone starts ringing. As configured, after 15 seconds, the call is sent to the voicemail. When it comes to recording, I get the following messages on the console:

As far as I am a real asterisk newbie, this does not make any sense to me.
Is this a known problem? Or any ideas how to fix this?

Maybe, I do not have enough sound channels?
Does asterisk use the sound card itself for playing and recording audio?
Do I need a second sound card to have my softphone running on the same machine?

On th other side, dialing out from the softphone to the sip provider does not work, this way I don’t even get a reaction on the console.

Maybe I didn’t find the Best-Practice-Tutorial on how to create cool voicemail systems with SIP and softphones?

Any hints and ideas are really appreciated. Thanks

i think the problem is the way you have it dial. Unless the SIP peer (provider) is named 49xxxxx etc then you are doing it wrong- you must dial in the form SIP/peer/extension, ie SIP/yourprovidername/numtodial.

Hi IronHelix,

good hint. Now I am able to make calls via my sip provider.

The setup created by the new asterisk gui seems to be meant in a different way than I thought. (Both my local account and the provider are created in the users.conf file). I added both in the sip.conf and made some changes in the extensions.conf.

Now asterisk dials out with
Dial(“SIP/6000-006e7df0”, “SIP/myprovider/03xxxxxxxxxx”)

My problem not being able to record voicemails from my sip provider still persists.

If I call myself on 6000, I can record a voicemail and the error does not occur.
A similar error is posted here http://forums.digium.com/viewtopic.php?t=12657&start=0&postdays=0&postorder=asc&highlight=audio+available+sip

Bugs says:

But app.c is part of the standard installation.

Any ideas about this?

Hi IronHelix,

you already answered my question here

The problem disappeared after setting externip to my external ip in sip.conf.
The mentioned error seems to be related to some nat problems.

Thanks for your help!

thank you for notifying me suit4!

I had my correct external ip-address set in sip.conf under externip=

I also had the localnet option set to: localnet=192.168.0.0/255.255.255.0 (asterisk server with ip 192.168.0.10 netmask 255.255.255.0).

I have forwarded all ports I can think of in my m0n0wall box and everything works with asterisk 1.2.14.

I didn’t get asterisk 1.4 to work but as you say it could all be a firewall problem.