Koozali.org: home of the SME Server

Codec problem (Solved)

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Codec problem (Solved)
« on: November 26, 2008, 04:05:30 AM »
I have a very small problem.

I have a number of trunks setup and one of them uses Codec g729 ... it won't call out on any other codec.

Trunks:
1: SPA-3000FXO
2: Mynetfone
3: VoipCheap
4: 12Voip
5: TPG ......... This one requires g729 codec to work on out going calls.

Now when I change the Global settings to g729 my sipura won't transfer the incoming call but out going is fine.

I changed the Preferred Codec: to g729 in the Audio Configuration of the PST line setup page as well as the Line 1 setup page on the Sipura ... but incoming calls still won't work.

The incoming call rings once then just silence ... then after a few seconds it's like a busy tone.

What would I have to change to make things work please Selintra

I recieved this from TPG asking for setup details for modems etc.

There reply
Since we do not provide support for the device that you have, we will not be able to guarantee its compatibility. However, any modem should work provided that they are configured with the proper settings.

VoIP Set-up:

  - Interface name: ppp_8_35_1-pppoe_8_35
  - Local Selection: AUS
  - Priority codec: 1st> G729 (2nd and 3rd should be disabled)
  - SIP Proxy: aphone5.tpg.com.au
  - SIP Proxy port: 5060
  - SIP Proxy Domain: tpg.com.au
  - Register Expire Time: 60
  - Display Name, VoIP Phone number, Authentication ID: your username
  - Authentication Password: your password for the connection

The way I setup carrier in Sail:

type=peer
host=
qualify=3000
canreinvite=no
username=
fromuser=
secret=

Is there anything in particular I should do different? ... remembering that outbound calls do work with the TPG setup if I change the globals to g729 ... but my incoming calls fail.

Regards,

Tib
« Last Edit: November 28, 2008, 05:11:41 AM by Tib »

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Re: Codec problem
« Reply #1 on: November 27, 2008, 01:02:36 AM »
Another thought on this I guess is .... is there a way to make a certain trunk use a certain codec?

eg: Force TPG to use g729 and leave the rest as they are.

Regards,

Tib

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Codec problem
« Reply #2 on: November 27, 2008, 02:33:31 AM »
Did you install this codec?
You can check on the CLI by the show translation command:
Code: [Select]
show translation
         Translation times between formats (in milliseconds) for one second of data
          Source Format (Rows) Destination Format (Columns)

          g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722
     g723    -   4    2    2        4     2    1     6    9    30    -    4    -
      gsm   16   -    2    2        4     2    1     6    9    30    -    4    -
     ulaw   16   4    -    1        4     2    1     6    9    30    -    4    -
     alaw   16   4    1    -        4     2    1     6    9    30    -    4    -
 g726aal2   18   6    4    4        -     4    3     8   11    32    -    1    -
    adpcm   16   4    2    2        4     -    1     6    9    30    -    4    -
     slin   15   3    1    1        3     1    -     5    8    29    -    3    -
    lpc10   18   6    4    4        6     4    3     -   11    32    -    6    -
     g729   17   5    3    3        5     3    2     7    -    31    -    5    -
    speex   38  26   24   24       26    24   23    28   31     -    -   26    -
     ilbc    -   -    -    -        -     -    -     -    -     -    -    -    -
     g726   18   6    4    4        1     4    3     8   11    32    -    -    -
     g722    -   -    -    -        -     -    -     -    -     -    -    -    -
The 'show translation' command is deprecated and will be removed in a future release. Please use 'core show translation' instead.
On the trunk settings you can force the use of g729 by:
Code: [Select]
disallow=all
allow=g729

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Re: Codec problem
« Reply #3 on: November 27, 2008, 03:16:58 AM »
Ok this is weird ... when I do a "show translation" everything under g729 is blank.

So how come when I change the globals setting to g729 I can dial out on that trunk.

Reading up a bit on this I see you have to purchase the g729 codec ... also I see there is a free non commercial ver.

All looks like a pain in the ass to setup so I will just go with the other trunks.

TPG is not worth the time and effort to get going ... I get just as good if not better deals else where.

Thanks for your help.

Regards,

Tib

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Codec problem
« Reply #4 on: November 27, 2008, 12:09:11 PM »
Tib,
It's real easy to get the codec.
Download from here a version for your system:
http://asterisk.hosting.lv/#bin
Drop the files under /usr/lib/asterisk/modules/
making sure you change the permissions on the codecs chmod 777 g729.so
then restart asterisk.

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Re: Codec problem
« Reply #5 on: November 27, 2008, 01:27:53 PM »
Thanks stuntshell

That worked a treat ... I'm surprised how easy it actually was.

Regards,

Tib

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Codec problem
« Reply #6 on: November 27, 2008, 07:47:38 PM »
Very good  :cool:

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Codec problem (Solved)
« Reply #7 on: December 31, 2008, 06:04:41 AM »
I'm want to install the G729 codec on my server.  My problem is which on?  The detail about my machine are as follows.

Code: [Select]
Model Intel(R) Celeron(R) CPU 2.66GHz
CPU Speed 2.66 GHz

Can someone please point me to the correct file?
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Codec problem (Solved)
« Reply #8 on: December 31, 2008, 11:04:58 AM »
it'll be one of the pentium ones.  Just pick one and shove it into the Asterisk load library (usr/lib/asterisk/modules).  If you've got the correct one then asterisk will load, if you haven't then it won't, so you can delete it and try another.

Best

S

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Codec problem (Solved)
« Reply #9 on: January 02, 2009, 06:18:21 AM »
S

I am either blind or can't fine a command to enter at the CLI to view what codec is being used for an particular call.  I found on for IAX but don't seem to see one for SIP.

Is there such a command?
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Codec problem (Solved)
« Reply #10 on: January 02, 2009, 03:00:53 PM »
sip show channels

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Codec problem (Solved)
« Reply #11 on: January 02, 2009, 04:00:37 PM »
Maybe you're not logging in the Asterisk CLI:
Code: [Select]
asterisk -r
then
Code: [Select]
show translationYou should get a table like the third post.