Outgoing calls failing when using ulaw (g711u)

A forum for Skype For Asterisk users to ask questions and get advice from other users

Moderators: twilson, pete engler

Outgoing calls failing when using ulaw (g711u)

Postby lzaf » Fri Jul 31, 2009 5:49 am

I m using chan_skype with asterisk 1.6.1.1 in debian testing.
I m trying to make an outgoing call to skype echo test (echo123) using ulaw codec (allow=ulaw in chan_skype.conf). Every time the call fails and im getting these messages in the console:

Code: Select all
-- Executing [s@macro-internal:2] Dial("SIP/pap1-08a64210", "Skype/echo123,60") in new stack
[Jul 31 14:34:50] NOTICE[7819]: core.cpp:2074 sfa_call_ring: calling create_control_socket for oid 26
    -- Called echo123
[Jul 31 14:34:52] NOTICE[7819]: core.cpp:2102 sfa_call_hangup: ending call
  == Everyone is busy/congested at this time (1:0/0/1)
lzaf
Newsterisk
 
Posts: 8
Joined: Fri Jul 31, 2009 4:25 am

Postby lzaf » Fri Jul 31, 2009 6:30 am

Apart from the above when i stop asterisk (stop gracefully) i get this:
Code: Select all
  == Logging user f00b4r out
SKYPE - Exiting, following objects haven't been deleted, check if you have no memory leaks:
1132 object, OID: 21
1966 object, OID: 22
1785 object, OID: 23
1132 object, OID: 25
1966 object, OID: 26
1132 object, OID: 28
1966 object, OID: 29
Segmentation fault
lzaf
Newsterisk
 
Posts: 8
Joined: Fri Jul 31, 2009 4:25 am

Bug in 1.6.1.1

Postby twilson » Fri Jul 31, 2009 8:43 am

There is a bug in all Asterisk 1.6.1 releases prior to 1.6.2 (which is not released yet) that causes a crash when interacting with SFA. The workaround is to download 1.6.1 from subversion via svn co http://svn.digium.com/svn/asterisk/branches/1.6.1

Also, make sure that you have a default_user set if you are going to user dialstrings like Skype/to_user. Without a default_user set, you will need to use Dial(Skype/from_account@to_user).
twilson
Oldsterisk
 
Posts: 87
Joined: Mon Jun 01, 2009 9:35 am

Postby lzaf » Fri Jul 31, 2009 9:40 am

I just downloaded and compiled from svn (Asterisk SVN-branch-1.6.1-r209625). The problem with ulaw remains the same and i have exactly the same output on the console:
Code: Select all
-- Executing [s@macro-internal:2] Dial("SIP/pap1-08448440", "Skype/echo123,60") in new stack
[Jul 31 18:36:28] NOTICE[1716]: core.cpp:2074 sfa_call_ring: calling create_control_socket for oid 26
    -- Called echo123
[Jul 31 18:36:28] NOTICE[1716]: core.cpp:2102 sfa_call_hangup: ending call
  == Everyone is busy/congested at this time (1:0/0/1)

When using g729 everything is working, and ofcourse i have a default_user in my chan_skype.conf
lzaf
Newsterisk
 
Posts: 8
Joined: Fri Jul 31, 2009 4:25 am

Postby twilson » Fri Jul 31, 2009 9:45 am

I suppose it is possible that Skype's echo123 account only supports g729...which would be odd... what happens if you do disallow=all and allow=ulaw in chan_skype.conf?
twilson
Oldsterisk
 
Posts: 87
Joined: Mon Jun 01, 2009 9:35 am

Postby twilson » Fri Jul 31, 2009 9:46 am

It could be that you were allowing g729 without having it installed (if you didn't specifically disallow=all before).
twilson
Oldsterisk
 
Posts: 87
Joined: Mon Jun 01, 2009 9:35 am

Postby lzaf » Fri Jul 31, 2009 9:51 am

I m attaching my chan_skype.conf so u can have a look, the settings must be correct as far as i can tell:

Code: Select all
[general]
engine_directory=/tmp
default_user=kokoko
;debug=yes
bind_address=192.168.1.2
;bind_port=9082
;disable_tcpauto=yes
;disable_udp=yes

[kokoko]
secret=foofoofoo
context=skpin
exten=s
disallow=all
allow=ulaw
direction=both
buddy_autoadd=true


I also have codec_g729 installed and working, the problem after all has nothing to do with g729, calls made using g729 are working and when im testing with g711 thers no transcoding taking place anywhere (call is g711 end to end)
lzaf
Newsterisk
 
Posts: 8
Joined: Fri Jul 31, 2009 4:25 am

Postby lzaf » Fri Jul 31, 2009 1:07 pm

Made some more testing. Calling normal users using g711 works so i guess thers some prob with skype echo test (maybe not supporting g711 as u pointed)
lzaf
Newsterisk
 
Posts: 8
Joined: Fri Jul 31, 2009 4:25 am

Postby tootai » Sat Aug 01, 2009 7:45 am

I confirm that problem is only with Skype echo test. With the latest beta I see

[Aug 1 15:39:12] WARNING[18046]: channel.c:3055 set_format: Unable to find a codec translation path from 0x100 (g729) to 0x4 (ulaw)
[Aug 1 15:39:12] WARNING[18046]: channel.c:3055 set_format: Unable to find a codec translation path from 0x100 (g729) to 0x4 (ulaw)

in logs. I don't have g729 codec. Calls to other Skype users in ulaw/alaw are OK.

--
Daniel
tootai
Newsterisk
 
Posts: 6
Joined: Fri Jul 31, 2009 11:34 am

Postby twilson » Mon Aug 03, 2009 9:49 am

Good to know. So I need to make a note somewhere in the docs that the echo test requires g729.
twilson
Oldsterisk
 
Posts: 87
Joined: Mon Jun 01, 2009 9:35 am

Postby tootai » Mon Aug 03, 2009 11:15 am

Is this pertinent to only allow g729 for echo test? Or is this a Skype requirement?

I think that most of the people will not have g729 license when installing SFA, at least for test or the first time. And as echo test is the only straight working call that can be done ... ;-)

--
Daniel
tootai
Newsterisk
 
Posts: 6
Joined: Fri Jul 31, 2009 11:34 am

Postby twilson » Mon Aug 03, 2009 11:28 am

If codec_g729 is installed, it will honor Skype For Asterisk licenses when the final release is made--so there won't be a problem. But, the echo test is totally in the hands of Skype--we have nothing to do with it.
twilson
Oldsterisk
 
Posts: 87
Joined: Mon Jun 01, 2009 9:35 am


Return to Skype For Asterisk

Who is online

Users browsing this forum: No registered users and 1 guest