Sound problems with linphone

Problems with packages? Post here, using [tags] of the package name.

Sound problems with linphone

Postby ykmag » Thu Feb 09, 2012 12:20 pm

Hi all.
I am trying to implement a phone system, using one Sheeva with asterisk as server, and one Sheeva with linphone as SIP client. To the client I have connectet a Native Union handset
http://www.nativeunion.com/us/wiredproducts/mmoshi-02.html. The conecction to the handset is a Native Union USB dongle sound card
http://www.nativeunion.com/us/accessories/usb-adp/usb-adaptor.html.
Using lsusb, the sound card reports as:
Code: Select all
Bus 001 Device 008: ID 0c76:1607 JMTek, LLC. audio controller
.
This device has hw support for 48000 Hz sample rate
When playing 48000 Hz streams (using mpg123) all is ok. playing 44100 streams is also ok (with a cpu load of approx 4%).
When receiving calls (not absolutetly certain about sample rate, but my guess is 8000 Hz) I get buffer overruns in ALSA, and the sound is delayed for playback, but not for capture) Capture works for some seconds, before everything goes heywire...
My /etc/asound.conf:
Code: Select all
pcm.moshi {
    type hw
    card Audio
}

pcm.linphoneout {
    type plug
    slave {
        pcm "moshi"
        rate 48000
    }
}

pcm.linphonein {
   type dsnoop
   slave {
      pcm  "moshi"
      rate 48000
   }
   bindings {
      0 0
   }
}

pcm.linphone {
    type asym
    playback.pcm "linphonein"
    capture.pcm "linphoneout"
}


ctl.moshi {
    type hw
    card Audio
}

ctl.linphonein {
    type hw
    card Audio
}

ctl.linphoneout {
    type hw
    card Audio
}


I have a second usb sound card that is default. The config for that is not included. It makes no difference if is included or not.
I have tried some different codecs, but none works. I have tried linpone on a windows 7 machine connected to the same asterisk server, performes flawless.
Last note, when I answer a incomming call, the CPU load for linphone peaks to 99%

Could this be softfloat related (ALSA/linphone bitrate conversion )?
I am not completely lost, but realy running out of options.
Any toughts are very wellcome!
ykmag
 
Posts: 61
Joined: Wed Aug 18, 2010 1:28 pm

Re: Sound problems with linphone

Postby ykmag » Fri Feb 17, 2012 12:57 pm

No one to the rescue?
ykmag
 
Posts: 61
Joined: Wed Aug 18, 2010 1:28 pm

Re: Sound problems with linphone

Postby ykmag » Mon Feb 27, 2012 12:35 pm

Ok, since no one can help, there is only one thing to do, and that is to find the big shovel and start digging...
Well before I start, I would like to know how linphone and speex was built, was it built with fixed point or not? Where can I find that information? If not, the pkgbuild should be changed for these two packages, I it also (at least for speex) to enamble arm5e asm as well, I could do everything needed if I just could get the directions of where to do it.
ykmag
 
Posts: 61
Joined: Wed Aug 18, 2010 1:28 pm

Re: Sound problems with linphone

Postby WarheadsSE » Mon Feb 27, 2012 1:29 pm

Since this is a sheeva, I will assume it is a v5 soft float, so that might speak to "fixed point", as our entire v5 repo is -mabi=soft
OXNAS pwner

Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 3484
Joined: Mon Oct 18, 2010 2:12 pm

Re: Sound problems with linphone

Postby ykmag » Mon Feb 27, 2012 2:13 pm

WarheadsSE wrote:Since this is a sheeva, I will assume it is a v5 soft float, so that might speak to "fixed point", as our entire v5 repo is -mabi=soft

Does that mean that building with fixed_point, will have no or littler performance impact?
ykmag
 
Posts: 61
Joined: Wed Aug 18, 2010 1:28 pm

Re: Sound problems with linphone

Postby WarheadsSE » Mon Feb 27, 2012 2:38 pm

No it means I am unsure of what fixed_point does for this package, in these circumstances.
OXNAS pwner

Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 3484
Joined: Mon Oct 18, 2010 2:12 pm

Re: Sound problems with linphone

Postby ykmag » Mon Feb 27, 2012 2:59 pm

Ok, I have built speex with fixed point, just have to test when I get home (have built it remote, but can't realy test it without the handset :shock: ).
ykmag
 
Posts: 61
Joined: Wed Aug 18, 2010 1:28 pm

Re: Sound problems with linphone

Postby ykmag » Mon Feb 27, 2012 4:18 pm

That did the trick. Building speex with :
Code: Select all
 -enable-fixed-point -enable-arm5e-asm

Now I can use a Sheeva as a phone, connected to another sheeva with asterisk. :ugeek:

Is there any chance to get that into the repo?
ykmag
 
Posts: 61
Joined: Wed Aug 18, 2010 1:28 pm

Re: Sound problems with linphone

Postby crimsonredmk » Mon Mar 05, 2012 10:19 pm

We need a stockphoto of a call center representative holding a SheevaPlug up to her face and smiling while talking to it first.
Remember, Arch Linux ARM is completely donation-supported, and is totally awesome.
crimsonredmk
Site Admin
 
Posts: 454
Joined: Wed Dec 30, 2009 5:17 pm
Location: #archlinux-arm on irc.freenode.net

Re: Sound problems with linphone

Postby kmihelich » Tue Mar 06, 2012 1:46 am

speex with those flags has been rebuilt and is in the repos now. This was a github issue as well that I had forgotten about since I never got a reply back from the original issue creator.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 858
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinux-arm

Next

Return to Packages

Who is online

Users browsing this forum: Google [Bot] and 1 guest