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:
I use regexroute like this:
With this configuration callflow looks like this:
PSTN -> (A? 312393/I) ? INVITE ---> SIP UA
SIP UA Ba 678/I) ? 200 OK ---> Yate PSTN
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 -->