hallo,

i experienced codec translation problems between my sip adapter and different sip providers

i use a grandstream ht286 sip adapter and an asterisk server, the asterisk server is registered with two sip providers, sipgate and voipbuster, i would like to use ilbc o. g726 because of bandwith, as voipbuster uses only g729 (and alaw) and sipgate supports ilbc and also my iax provider uses ilbc.

if i use this sip.conf settings, the asterisk server makes alwayes a codec translation, but as i understand, my sip adapter already provides these codecs, so no codec translation should be necessary?

this is what asterisk does:

              ht286  --->  [grandstream] ---> [vbuster]
used codecs    ilbc         ilbc                g726
codec order    ilbc         ilbc                g726  
               alaw         alaw        
               g726         g726  


              ht286  --->  [grandstream] ---> [sipat]
used codecs    ilbc         ilbc                ilbc
codec order    ilbc         ilbc                ilbc
               alaw         alaw                alaw
               g726         g726                ulaw

as i testet, asterisk takes always (and only!!) the first codec defind in [grandstream] section (its ilbc) and ignors that my grandstream adapter also support g726. so i get always code translation on my asterisk if i use the voipbuster account, i tried to change ilbc and g726 in [grandstream] section but then i get a codec translation if i call over [sipat]

could somebody give me an hint? what could be wrong? how can asterisk get know about what codecs are available on my sip adapter?


thanks for help,
alex

Preferred Vocoder: (in listed order)  on Grandstream HT286 
PCMA
iLBC
G726-32
G728
G729
PCMU

here my sip.conf:

; Grandstream Phone
[grandstream]
type=friend
username=grandstream
fromuser=grandstream
secret=mypass
host=dynamic
qualify=no
disallow=all
allow=ilbc
allow=alaw
allow=g726
allow=ulaw
allow=slinear
allow=gsm
language=de
nat=no
canreinvite=no
dtmfmode=rfc2833
defaultip=192.168.100.40
context=out

[sipat]
type=friend
username=1111
secret=mypass
host=sipgate.at
fromuser=1111
fromdomain=sipgate.at
nat=no
dtmfmode=info
context=sipgatein
canreinvite=no
disallow=all
allow=ilbc
allow=alaw
allow=ulaw
qualify=1000

[vbuster]
type=friend
username=xxxx
secret=yyyyyy
host=sip1.voipbuster.com
fromuser=xxxx
fromdomain=sip1.voipbuster.com
dtmfmode=auto
canreinvite=no
context=sipgatein
disallow=all
allow=g726
allow=alaw
allow=ulaw
nat=no
qualify=3000
insecure=very
realm=sip1.voipbuster.com

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to