Hi all,
I have 2 IP, one for signal and other for media.
My provider tell me that use signal ip for listen signal but use media ip for RTP.
I configure sip.conf:
context=default
bindaddr=10.54.30.155 --> signal ip
bindport=5060
disallow=all
allow=alaw
allow=ulaw
qualify=yes
allowguest=yes
dtmfmode=inband
progressinband=yes
The ITSP tells you which media address ot use in the SDP. Also, if you use comedia, Asterisk will learn it from the incoming RTP, even if something is changing it from what was in the SDP . All you have to do is to ensure that your firewall will actually pass the media, which doesn’t involve any Asterisk configuration.
thanks for response, let me explain more:
i have IP X for bindaddr in sip.conf, IP Y for using when create RTP channels.
in INVITE message, it send an ip for RTP, like this: IN IP4 x.x.213.46
i think the ITSP want me to use IP Y to create channels to IP x.x.213.46 (Y <-> x.x.213.46)
There is no valid reason for the ITSP to require you do use different addreses at your end. As such, we were replying for the case where the ITSP’s end uses different addreses.
chan_sip doesn’t support that. I believe there is a media address option on pjsip, but I don’t know if that is the local or the remote adress.
It is the local IP address that is placed into the SDP.
The remote address is always negotiated using the received SDP from the remote side, unless comedia is enabled as you mentioned in which case it is used until the remote address is learned.