[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  andrzej.ciupek@a...
 Subject :  mdcx + sip OK + codecs
 Date :  Fri, 27 Jul 2012 09:58:34 +0200

I still have problem with proper configuration of Cisco As5400 MGCP +  
Yate as PSTN to SIP Gw.
Call is incomming from PSTN to SIP, SIP UA give OK with codec that  
would like to speak with, and after that MDCX doesn't setup that codec  
at Cisco, but always default:

So it looks like this:

format is from SIP OK, and rtp_mapping is from mgcpca.conf default codec.
   param['formats'] = 'g729'
   param['transport'] = 'RTP/AVP'
   param['rtp_mapping'] = 'mulaw=0'

and I have in yate.log when default mgcpca codec is alaw:

 Not changing to 'alaw' from 'mulaw' [0x7fc7d0030fd0]

or when I change default mgcpca codec to g729:

 Not changing to 'g729 from 'mulaw' [0x7fc7d0030fd0]


I have, ysipchan.conf:

and mgcpca.conf:

I use regexroute like this:

With this configuration callflow looks like this:

PSTN -> (A? 312393/I) ? INVITE ---> SIP UA
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000

SIP UA Ba 678/I) ? 200 OK ---> Yate PSTN
a=rtpmap:18 G729a/8000

After ACK, stream from Cisco with Yate goes in PCMA, and stream from  
SIP UA goes in G729:

-> pt:8 PCMA, 0 pkts, 0.00
<-- pt:18 G729, 0 pkts, 0.000
<-- pt:18 G729, 1063 pkts, 31.859
-> pt:8 PCMA, 1597 pkts, 3 -->