Hi,
I made some test few minutes ago Elastix
Before Elastix installation :
localhost*CLI> core show translation recalc 10
Recalculating Codec Translation (number of sample seconds: 10)
Translation times between formats (in microseconds) for one second of data
Source Format (Rows) Destination Format (Columns)
g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722 siren7 siren14 slin16 g719 speex16 testlaw
g723 - - - - - - - - - - - - - - - - - - -
gsm - - 6498 6498 20196 7298 6199 23996 -100584 86386 20196 10498 - - 19496 - 85585 6499
ulaw - 13498 - 199 14197 1299 200 17997 - 94585 80387 14197 4499 - - 13497 - 79586 500
alaw - 13498 300 - 14197 1299 200 17997 - 94585 80387 14197 4499 - - 13497 - 79586 500
g726aal2 - 21896 8897 8897 - 9697 8598 26395 -102983 88785 22595 12897 - - 21895 - 87984 8898
adpcm - 14097 1098 1098 14796 - 799 18596 - 95184 80986 14796 5098 - - 14096 - 80185 1099
slin - 13298 299 299 13997 1099 - 17797 - 94385 80187 13997 4299 - - 13297 - 79386 300
lpc10 - 24996 11997 11997 25695 12797 11698 - -106083 91885 25695 15997 - - 24995 - 91084 11998
g729 - - - - - - - - - - - - - - - - - - -
speex - 27895 14896 14896 28594 15696 14597 32394 - - 94784 28594 18896 - - 27894 - 93983 14897
ilbc - 25496 12497 12497 26195 13297 12198 29995 -106583 - 26195 16497 - - 25495 - 91584 12498
g726 - 21896 8897 8897 22595 9697 8598 26395 -102983 88785 - 12897 - - 21895 - 87984 8898
g722 - 20596 7597 7597 21295 8397 7298 25095 -101683 87485 21295 - - - 8998 - 75087 7598
siren7 - - - - - - - - - - - - - - - - - - -
siren14 - - - - - - - - - - - - - - - - - - -
slin16 - 30194 17195 17195 30893 17995 16896 34693 -111281 97083 30893 9598 - - - - 66089 17196
g719 - - - - - - - - - - - - - - - - - - -
speex16 - 46591 33592 33592 47290 34392 33293 51090 -127678113480 47290 25995 - - 16397 - - 33593
testlaw - 13497 498 498 14196 1298 199 17996 - 94584 80386 14196 4498 - - 13496 - 79585 -
-- Remote UNIX connection disconnected
-- Remote UNIX connection
localhost*CLI> exit
CPU Type :
Executing last minute cleanups
[root@localhost modules]# cat /proc/cpuinfo
processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 13
model name : VIA Eden Processor 1000MHz
stepping : 0
cpu MHz : 1000.082
cache size : 128 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge cmov pat clflush acpi mmx fxsr sse sse2 tm nx up pni est tm2 xtpr rng rng_en ace ace_en ace2 ace2_en phe phe_en pmm pmm_en
bogomips : 2000.16
Download codec:
Resolving asterisk.hosting.lv... 213.21.217.95
HTTP request sent, awaiting response... 200 OK
Length: 396476 (387K) [application/octet-stream]
Saving to: `codec_g729-ast18-gcc4-glibc-pentium4.so'
100%[==========================================================================================================================>] 396,476 415K/s in 0.9s
2013-03-12 13:00:16 (415 KB/s) - `codec_g729-ast18-gcc4-glibc-pentium4.so' saved [396476/396476]
Resolving asterisk.hosting.lv... 213.21.217.95
HTTP request sent, awaiting response... 200 OK
Length: 250840 (245K) [application/octet-stream]
Saving to: `codec_g723-ast18-icc-glibc-pentium4.so'
100%[==========================================================================================================================>] 250,840 263K/s in 0.9s
2013-03-12 13:00:41 (263 KB/s) - `codec_g723-ast18-icc-glibc-pentium4.so' saved [250840/250840]
CHMOD on codec :
[root@localhost modules]# chmod +x codec_g723-ast18-icc-glibc-pentium4.so
[root@localhost modules]# chmod +x codec_g729-ast18-gcc4-glibc-pentium4.so
Add G729/G723 codec in your extension or conf files or SIP trunk :
in sip.conf or/and iax.conf configure the codec(s) either globally or under respective peer, for example:disallow=all
allow=g729,g723
Restart Asterisk :
[root@localhost modules]# service asterisk restart
Stopping safe_asterisk: [ OK ]
Shutting down asterisk: [ OK ]
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Starting asterisk: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
[ OK ]
Check if asterisk has loaded codec :
[root@localhost modules]# asterisk -rx "core show translation recalc 10"
Recalculating Codec Translation (number of sample seconds: 10)
Translation times between formats (in microseconds) for one second of data
Source Format (Rows) Destination Format (Columns)
g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722 siren7 siren14 slin16 g719 speex16 testlaw
g723 - 14797 1698 1699 15496 2598 1499 19396 19896 93585 79087 15496 5898 - - 14796 - 80985 1799
gsm 36894 - 6398 6399 20196 7298 6199 24096 24596 98285 83787 20196 10598 - - 19496 - 85685 6499
ulaw 30995 13598 - 200 14297 1399 300 18197 18697 92386 77888 14297 4699 - - 13597 - 79786 600
alaw 30994 13597 300 - 14296 1398 299 18196 18696 92385 77887 14296 4698 - - 13596 - 79785 599
g726aal2 39293 21896 8797 8798 - 9697 8598 26495 26995100684 86186 22595 12997 - - 21895 - 88084 8898
adpcm 31394 13997 898 899 14696 - 699 18596 19096 92785 78287 14696 5098 - - 13996 - 80185 999
slin 30695 13298 199 200 13997 1099 - 17897 18397 92086 77588 13997 4399 - - 13297 - 79486 300
lpc10 42093 24696 11597 11598 25395 12497 11398 - 29795103484 88986 25395 15797 - - 24695 - 90884 11698
g729 37294 19897 6798 6799 20596 7698 6599 24496 - 98685 84187 20596 10998 - - 19896 - 86085 6899
speex 45392 27995 14896 14897 28694 15796 14697 32594 33094 - 92285 28694 19096 - - 27994 - 94183 14997
ilbc 43093 25696 12597 12598 26395 13497 12398 30295 30795104484 - 26395 16797 - - 25695 - 91884 12698
g726 39293 21896 8797 8798 22595 9697 8598 26495 26995100684 86186 - 12997 - - 21895 - 88084 8898
g722 37993 20596 7497 7498 21295 8397 7298 25195 25695 99384 84886 21295 - - - 8898 - 75087 7598
siren7 - - - - - - - - - - - - - - - - - - -
siren14 - - - - - - - - - - - - - - - - - - -
slin16 47691 30294 17195 17196 30993 18095 16996 34893 35393109082 94584 30993 9698 - - - - 66189 17296
g719 - - - - - - - - - - - - - - - - - - -
speex16 64088 46691 33592 33593 47390 34492 33393 51290 51790125479110981 47390 26095 - - 16397 - - 33693
testlaw 30995 13598 499 500 14297 1399 300 18197 18697 92386 77888 14297 4699 - - 13597 - 79786 -
I called *43 for an echo test with a SIP client (extension 2005) on my Iphone :
localhost*CLI> sip show peer 2005
* Name : 2005
Secret : <Set>
MD5Secret : <Not set>
Remote Secret: <Not set>
Context : from-internal
Subscr.Cont. : <Not set>
Language :
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
MOH Suggest :
Mailbox : 2005@device
VM Extension : *97
LastMsgsSent : 0/0
Max forwards : 0
Dynamic : Yes
Callerid : "device" <2005>
MaxCallBR : 384 kbps
Expire : 583
Insecure : no
Force rport : Yes
ACL : Yes
DirectMedACL : No
T.38 support : No
T.38 EC mode : Unknown
T.38 MaxDtgrm: -1
DirectMedia : No
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : No
Send RPID : No
Subscriptions: Yes
Overlap dial : Yes
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost :
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP
Def. Username: 2005
SIP Options : path replaces replace
Codecs : 0x80030c7fffff (g723|gsm|ulaw|alaw|g726|adpcm|slin|lpc10|g729|speex|speex16|ilbc|g726aal2|g722|slin16|jpeg|png|h261|h263|h263p|h264|mpeg4|red|t140|siren7|siren14|testlaw|g719)
Codec Order : (ulaw:20,alaw:20,gsm:20)
Auto-Framing : No
Status : OK (101 ms)
Useragent : Acrobits Softphone/5.3.2
Reg. Contact : sip:20...@192.168.0.186:2291;rinstance=36E47151
Qualify Freq : 60000 ms
Sess-Timers : Accept
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot :
Use Reason : No
Encryption : No
localhost*CLI> g729 debug
g729 debug enabled
localhost*CLI>
localhost*CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [*43@from-internal:1] Answer("SIP/2005-00000004", "") in new stack
-- Executing [*43@from-internal:2] Wait("SIP/2005-00000004", "1") in new stack
-- g729 frames
-- length: count
-- Executing [*43@from-internal:3] Playback("SIP/2005-00000004", "demo-echotest") in new stack
-- <SIP/2005-00000004> Playing 'demo-echotest.gsm' (language 'en')
localhost*CLI> sip show channels
Peer User/ANR Call ID Format Hold Last Message Expiry Peer
192.168.0.254 2005 93F8CEC87B9E0C0 0x100 (g729) No Rx: ACK 2005
1 active SIP dialogs
Same test from extension 2005 to my cell phone with a SIP operator :
localhost*CLI> sip show channels
Peer User/ANR Call ID Format Hold Last Message Expiry Peer
192.168.0.254 (None) F68ABC523581A25 0x0 (nothing) No Rx: REGISTER <guest>
9X.XXX.XXX.X 06xxxxxx 36e8542775a4656 0x100 (g729) No Rx: ACK 00331xxxxxx
192.168.0.254 2005 B13AE0536D25231 0x100 (g729) No Rx: ACK 2005
Everything is ok on my extension and on my external trunk :-)
I hope you enjoy this reply
Regards
Richard
--------------------