[Asterisk-Users] codec negotiation

Nguyen Hoang Lan dtkhang at hn.vnn.vn
Tue Dec 21 09:29:33 MST 2004


Hello Eduardo,

Wednesday, December 17, 2003, 1:08:00 AM, you wrote:

EG> Hi list,

EG>         I'm with a little problem on codec negotiation between a cisco827 and
EG> asterisk.

EG>         My sip.conf is like that: 

EG> [general]
EG> port = 5060
EG> bindaddr = 0.0.0.0
EG> context = default
EG> amaflags = default
EG> allow=g729
EG> allow=gsm 
EG> allow=alaw
EG> allow=ulaw
EG> ;disallow=all

EG> and cisco like that:

EG> dial-peer voice 6 voip
EG>  destination-pattern 0T
EG>  session protocol sipv2
EG>  session target ipv4:<asterisk-ip>
EG>  dtmf-relay rtp-nte
EG>  codec g711alaw
EG>  no vad   
EG> !         

EG>         When I try to make a call, cisco shows codec g711alaw, but asterisk
EG> shows codec g729A (i have the licenses) and there is no audio. When I
EG> try disallow=g729, the same occurs, but this time asterisk shows codec
EG> gsm.

EG>         The only way to make a call is allowing only alaw. But this is not
EG> convenience, since i need to use g279 with another endpoint (working
EG> ok). 

EG>         Why this negotiation problem happens?

Try to add to cisco peer (not shown in your mail)

[cisco]
....
disallow=all
allow=alaw



-- 
Best regards,
 Nguyen                            mailto:dtkhang at hn.vnn.vn




More information about the asterisk-users mailing list