[Freeswitch-users] mod_skypiax - help needed with modified snd-dummy (one way audio)

Peter P GMX Prometheus001 at gmx.net
Fri Jan 29 03:41:22 PST 2010


I now reinstalled the original sound drivers
Unfortunaltely the sound problems remain, not that worse but they are there:
Audio is still (almost) one way. Almost means:

    * SIP -> Skype ok
    * Skype=> SIP I hear only some scratching on very loud audio

Could it be a volume problem? But snd-dummy should have no volume
properties, right?

Best regards
Peter


Giovanni Maruzzelli schrieb:
> with three instances you will assign the hw:0 device to skype client
> 0...7, hw:1 to skype client 8...15 and hw:2 to skype client 16...23.
> Must work. Pay attention to assign the same device name to all devices
> needed by a skype instance (sound devices window): playback, capture
> AND ring.
>
> Or maybe is a bug of ALSA on Debian...
>
> -giovanni
>
> On Thu, Jan 28, 2010 at 10:07 PM, Peter P GMX <Prometheus001 at gmx.net> wrote:
>   
>> I crated 3 instances of snd-dummy, this worked. I assigned then Instance
>> #2 to the Skype accounts. Still no sound.
>> On the frist call there is one way audio, on the following calls there
>> is no audio at all.
>> This is weird.
>>
>> Best regards
>> Peter
>>
>> Giovanni Maruzzelli schrieb:
>>     
>>> Ciao Peter,
>>>
>>> Never tested on Debian 5.
>>>
>>> When you write "same problem" you are referring to the audio going one
>>> way only (btw, which way?) with the custom audio driver?
>>>
>>> Have you tried with multiple instances of the regular Debian
>>> snd-dummy, as I wrote in a mail before?
>>>
>>> -gm
>>>
>>>
>>>
>>> On Thu, Jan 28, 2010 at 9:00 PM, Peter P GMX <Prometheus001 at gmx.net> wrote:
>>>
>>>       
>>>> Hello Giovanni,
>>>>
>>>> I did so but the same problem again.
>>>>
>>>> Did you ever test in on Debian 5.0?
>>>>
>>>> Best reards
>>>> Peter
>>>>
>>>> Giovanni Maruzzelli schrieb:
>>>>
>>>>         
>>>>> good, so you have only one sound device, the right one.
>>>>>
>>>>> Use the one with hw:0 in the window that skype gives you to set sound devices
>>>>>
>>>>> -gm
>>>>>
>>>>> On Wed, Jan 27, 2010 at 7:04 PM, Peter P GMX <Prometheus001 at gmx.net> wrote:
>>>>>
>>>>>
>>>>>           
>>>>>> I installed alsa-utile,
>>>>>>
>>>>>> now I get:
>>>>>>
>>>>>> skype:/var/cache/apt/archives# aplay -l
>>>>>> **** List of PLAYBACK Hardware Devices ****
>>>>>> card 0: Dummy [Dummy], device 0: Dummy PCM [Dummy PCM]
>>>>>>  Subdevices: 127/128
>>>>>>  Subdevice #0: subdevice #0
>>>>>>  Subdevice #1: subdevice #1
>>>>>>  Subdevice #2: subdevice #2
>>>>>>  Subdevice #3: subdevice #3
>>>>>>  Subdevice #4: subdevice #4
>>>>>>  Subdevice #5: subdevice #5
>>>>>>  Subdevice #6: subdevice #6
>>>>>>  Subdevice #7: subdevice #7
>>>>>>  Subdevice #8: subdevice #8
>>>>>>  Subdevice #9: subdevice #9
>>>>>>  Subdevice #10: subdevice #10
>>>>>>  Subdevice #11: subdevice #11
>>>>>>  Subdevice #12: subdevice #12
>>>>>>  Subdevice #13: subdevice #13
>>>>>>  Subdevice #14: subdevice #14
>>>>>>  Subdevice #15: subdevice #15
>>>>>>  Subdevice #16: subdevice #16
>>>>>>  Subdevice #17: subdevice #17
>>>>>>  Subdevice #18: subdevice #18
>>>>>>  Subdevice #19: subdevice #19
>>>>>>  Subdevice #20: subdevice #20
>>>>>>  Subdevice #21: subdevice #21
>>>>>>  Subdevice #22: subdevice #22
>>>>>>  Subdevice #23: subdevice #23
>>>>>>  Subdevice #24: subdevice #24
>>>>>>  Subdevice #25: subdevice #25
>>>>>>  Subdevice #26: subdevice #26
>>>>>>  Subdevice #27: subdevice #27
>>>>>>  Subdevice #28: subdevice #28
>>>>>>  Subdevice #29: subdevice #29
>>>>>>  Subdevice #30: subdevice #30
>>>>>>  Subdevice #31: subdevice #31
>>>>>>  Subdevice #32: subdevice #32
>>>>>>  Subdevice #33: subdevice #33
>>>>>>  Subdevice #34: subdevice #34
>>>>>>  Subdevice #35: subdevice #35
>>>>>>  Subdevice #36: subdevice #36
>>>>>>  Subdevice #37: subdevice #37
>>>>>>  Subdevice #38: subdevice #38
>>>>>>  Subdevice #39: subdevice #39
>>>>>>  Subdevice #40: subdevice #40
>>>>>>  Subdevice #41: subdevice #41
>>>>>>  Subdevice #42: subdevice #42
>>>>>>  Subdevice #43: subdevice #43
>>>>>>  Subdevice #44: subdevice #44
>>>>>>  Subdevice #45: subdevice #45
>>>>>>  Subdevice #46: subdevice #46
>>>>>>  Subdevice #47: subdevice #47
>>>>>>  Subdevice #48: subdevice #48
>>>>>>  Subdevice #49: subdevice #49
>>>>>>  Subdevice #50: subdevice #50
>>>>>>  Subdevice #51: subdevice #51
>>>>>>  Subdevice #52: subdevice #52
>>>>>>  Subdevice #53: subdevice #53
>>>>>>  Subdevice #54: subdevice #54
>>>>>>  Subdevice #55: subdevice #55
>>>>>>  Subdevice #56: subdevice #56
>>>>>>  Subdevice #57: subdevice #57
>>>>>>  Subdevice #58: subdevice #58
>>>>>>  Subdevice #59: subdevice #59
>>>>>>  Subdevice #60: subdevice #60
>>>>>>  Subdevice #61: subdevice #61
>>>>>>  Subdevice #62: subdevice #62
>>>>>>  Subdevice #63: subdevice #63
>>>>>>  Subdevice #64: subdevice #64
>>>>>>  Subdevice #65: subdevice #65
>>>>>>  Subdevice #66: subdevice #66
>>>>>>  Subdevice #67: subdevice #67
>>>>>>  Subdevice #68: subdevice #68
>>>>>>  Subdevice #69: subdevice #69
>>>>>>  Subdevice #70: subdevice #70
>>>>>>  Subdevice #71: subdevice #71
>>>>>>  Subdevice #72: subdevice #72
>>>>>>  Subdevice #73: subdevice #73
>>>>>>  Subdevice #74: subdevice #74
>>>>>>  Subdevice #75: subdevice #75
>>>>>>  Subdevice #76: subdevice #76
>>>>>>  Subdevice #77: subdevice #77
>>>>>>  Subdevice #78: subdevice #78
>>>>>>  Subdevice #79: subdevice #79
>>>>>>  Subdevice #80: subdevice #80
>>>>>>  Subdevice #81: subdevice #81
>>>>>>  Subdevice #82: subdevice #82
>>>>>>  Subdevice #83: subdevice #83
>>>>>>  Subdevice #84: subdevice #84
>>>>>>  Subdevice #85: subdevice #85
>>>>>>  Subdevice #86: subdevice #86
>>>>>>  Subdevice #87: subdevice #87
>>>>>>  Subdevice #88: subdevice #88
>>>>>>  Subdevice #89: subdevice #89
>>>>>>  Subdevice #90: subdevice #90
>>>>>>  Subdevice #91: subdevice #91
>>>>>>  Subdevice #92: subdevice #92
>>>>>>  Subdevice #93: subdevice #93
>>>>>>  Subdevice #94: subdevice #94
>>>>>>  Subdevice #95: subdevice #95
>>>>>>  Subdevice #96: subdevice #96
>>>>>>  Subdevice #97: subdevice #97
>>>>>>  Subdevice #98: subdevice #98
>>>>>>  Subdevice #99: subdevice #99
>>>>>>  Subdevice #100: subdevice #100
>>>>>>  Subdevice #101: subdevice #101
>>>>>>  Subdevice #102: subdevice #102
>>>>>>  Subdevice #103: subdevice #103
>>>>>>  Subdevice #104: subdevice #104
>>>>>>  Subdevice #105: subdevice #105
>>>>>>  Subdevice #106: subdevice #106
>>>>>>  Subdevice #107: subdevice #107
>>>>>>  Subdevice #108: subdevice #108
>>>>>>  Subdevice #109: subdevice #109
>>>>>>  Subdevice #110: subdevice #110
>>>>>>  Subdevice #111: subdevice #111
>>>>>>  Subdevice #112: subdevice #112
>>>>>>  Subdevice #113: subdevice #113
>>>>>>  Subdevice #114: subdevice #114
>>>>>>  Subdevice #115: subdevice #115
>>>>>>  Subdevice #116: subdevice #116
>>>>>>  Subdevice #117: subdevice #117
>>>>>>  Subdevice #118: subdevice #118
>>>>>>  Subdevice #119: subdevice #119
>>>>>>  Subdevice #120: subdevice #120
>>>>>>  Subdevice #121: subdevice #121
>>>>>>  Subdevice #122: subdevice #122
>>>>>>  Subdevice #123: subdevice #123
>>>>>>  Subdevice #124: subdevice #124
>>>>>>  Subdevice #125: subdevice #125
>>>>>>  Subdevice #126: subdevice #126
>>>>>>  Subdevice #127: subdevice #127
>>>>>>
>>>>>>
>>>>>> Peter P GMX schrieb:
>>>>>>
>>>>>>
>>>>>>             
>>>>>>> Her's the output:
>>>>>>>
>>>>>>> skype:~# aplay -l
>>>>>>> bash: aplay: command not found
>>>>>>>
>>>>>>> Giovanni Maruzzelli schrieb:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>               
>>>>>>>> I don't think you got two snd-dummy loaded (but maybe yes)
>>>>>>>> what's the output of:
>>>>>>>>
>>>>>>>> aplay -l
>>>>>>>>
>>>>>>>> ?
>>>>>>>>
>>>>>>>> If instead you are referring to the choices that skype clients offers
>>>>>>>> you in the "set audio devices" window, choose Dummy PCM (hw0:0)
>>>>>>>>
>>>>>>>> Eg: not the "default", but the "hardware" one
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Jan 27, 2010 at 5:58 PM, Peter P GMX <Prometheus001 at gmx.net> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>>>> Thanks Giovanni,
>>>>>>>>>
>>>>>>>>> I think there may be the problem, that I have 2 sound devices now:
>>>>>>>>> - Dummy PCM (hw0:0) (this is from debian install)
>>>>>>>>> - Dummy PCM Default Audio device (defauzlt: CARD=Dummy) (this is new
>>>>>>>>> since I compiled alsa newly)
>>>>>>>>>
>>>>>>>>> I tried both, but both do not work. How do I get rid of the old alsa device?
>>>>>>>>> By the way: I uninstalled Alsa before I installed the new driver
>>>>>>>>> (apt-get remove alsa-utils alsa-base).
>>>>>>>>>
>>>>>>>>> Best regards
>>>>>>>>> Peter
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Giovanni Maruzzelli schrieb:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>>>>>> This warning is harmless:
>>>>>>>>>>
>>>>>>>>>> Jan 27 15:28:50 skype kernel: [ 3994.795786] process `skype' is using
>>>>>>>>>> obsolete setsockopt SO_BSDCOMPAT
>>>>>>>>>>
>>>>>>>>>> On Wed, Jan 27, 2010 at 4:26 PM, Giovanni Maruzzelli
>>>>>>>>>> <gmaruzz at celliax.org> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                     
>>>>>>>>>>> Ciao Peter
>>>>>>>>>>>
>>>>>>>>>>> one instance of snd-dummy "customized" is enough for 64 instances of
>>>>>>>>>>> skype clients, no need (and do not works) with more instances of
>>>>>>>>>>> snd-dummy-customized.
>>>>>>>>>>>
>>>>>>>>>>> Maybe you got the one-way problem because of kernel at 250HZ (don't
>>>>>>>>>>> know). It uses to works well on a tickless kernel at 100HZ (eg: ubuntu
>>>>>>>>>>> 8.04).
>>>>>>>>>>>
>>>>>>>>>>> Or maybe you have to check and modify which sound devices the skype
>>>>>>>>>>> clients are using (try to check that with snd-summy-custom loaded,
>>>>>>>>>>> maybe with the ssh -X trick (as in the wiki page).
>>>>>>>>>>>
>>>>>>>>>>> To load more than one snd-dummy-original (the non modified one), you
>>>>>>>>>>> do this with the modprobe command, as in:
>>>>>>>>>>>
>>>>>>>>>>> rmmod snd-dummy
>>>>>>>>>>> modprobe snd-dummy enable=1,1,1
>>>>>>>>>>>
>>>>>>>>>>> this command will enable three instances of snd-dummy original, so
>>>>>>>>>>> you'll have three fake soundcards, and you'll have to setup each group
>>>>>>>>>>> of 8 skype instances to use sound devices from one fake soundcard, RG:
>>>>>>>>>>> no more than 8 skype client instances can use one instance of fake
>>>>>>>>>>> soundcard.
>>>>>>>>>>>
>>>>>>>>>>> Also, please update the mod_skypiax code (svn up in its directory) I
>>>>>>>>>>> just committed some improvements.
>>>>>>>>>>>
>>>>>>>>>>> If you have any other doubts, or need more info, don't hesitate to
>>>>>>>>>>> write the mailing list again,
>>>>>>>>>>>
>>>>>>>>>>> ciao for now,
>>>>>>>>>>>
>>>>>>>>>>> -giovanni
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Jan 27, 2010 at 4:01 PM, Peter P GMX <Prometheus001 at gmx.net> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>>>>> I have mod_skypiax working nicely so far with 2 Skype channels. Thanks
>>>>>>>>>>>> to all contributors, excellent work!
>>>>>>>>>>>>
>>>>>>>>>>>> In order to have more than 8 channels working, I have followed the
>>>>>>>>>>>> instructions in
>>>>>>>>>>>> http://wiki.freeswitch.org/wiki/Skypiax_Skype_Endpoint_and_Trunk
>>>>>>>>>>>> and compiled alsa-driver-1.0.20 with the modified dummy.c file. (System
>>>>>>>>>>>> ist Debian 5.0R3)
>>>>>>>>>>>> It compiled well however when I start snd-dummy I only have
>>>>>>>>>>>> one-way-audio and my logs show
>>>>>>>>>>>>
>>>>>>>>>>>> Jan 27 15:28:41 skype kernel: [ 3984.318403] snd-dummy skypiax driver,
>>>>>>>>>>>> /usr/src/alsa-driver-1.0.20/drivers/../alsa-kernel/drivers/dummy.c:920
>>>>>>>>>>>> working on a machine with 250HZ kernel
>>>>>>>>>>>> Jan 27 15:28:50 skype kernel: [ 3994.795786] process `skype' is using
>>>>>>>>>>>> obsolete setsockopt SO_BSDCOMPAT
>>>>>>>>>>>> Jan 27 15:28:56 skype kernel: [ 4005.289907] __ratelimit: 490 messages
>>>>>>>>>>>> suppressed
>>>>>>>>>>>> Jan 27 15:29:01 skype kernel: [ 4012.458310] process `skype' is using
>>>>>>>>>>>> obsolete setsockopt SO_BSDCOMPAT
>>>>>>>>>>>> Jan 27 15:29:01 skype kernel: [ 4013.326290] __ratelimit: 499 messages
>>>>>>>>>>>> suppressed
>>>>>>>>>>>> If I reinstall alsa from deb everything sworks fine again (of course
>>>>>>>>>>>> with the current limitations).
>>>>>>>>>>>>
>>>>>>>>>>>> First question: Has anybody had this issue before? How can I solve this?
>>>>>>>>>>>>
>>>>>>>>>>>> Second question:
>>>>>>>>>>>> As I do not need 64 channels or more: how do I manage, that Skype
>>>>>>>>>>>> instances 9..15 use a second instance of snd-dummy as addressed in the wiki?
>>>>>>>>>>>>
>>>>>>>>>>>> Best regards
>>>>>>>>>>>> Peter
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> FreeSWITCH-users mailing list
>>>>>>>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>>>>>>>> http://www.freeswitch.org
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>                         
>>>>>>>>>>> --
>>>>>>>>>>> Sincerely,
>>>>>>>>>>>
>>>>>>>>>>> Giovanni Maruzzelli
>>>>>>>>>>> Cell : +39-347-2665618
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                       
>>>>>>>>> _______________________________________________
>>>>>>>>> FreeSWITCH-users mailing list
>>>>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>>>>> http://www.freeswitch.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                   
>>>>>> _______________________________________________
>>>>>> FreeSWITCH-users mailing list
>>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>>> http://www.freeswitch.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>>
>>>>>           
>>>> _______________________________________________
>>>> FreeSWITCH-users mailing list
>>>> FreeSWITCH-users at lists.freeswitch.org
>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>> http://www.freeswitch.org
>>>>
>>>>
>>>>         
>>>
>>>
>>>       
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>     
>
>
>
>   




More information about the FreeSWITCH-users mailing list