How to configure Media IP and Signalling IP Differently in Asterisk

Hello Friends…

I have little issue here that My provider telling me to connect SIP and media on different Ips. that is why they shared me the 2 different ips for signalling and media. So I am confused here how to connect on both ways. If I sending calls only to signalling ip media going blank.

Please suggest what is solution of this issue

thats probably for your firewall so that you can allow those ips.
the scenario you describe is standard and you should not have to make any changes.
asterisk and you providers exchange information and agree on ips and ports.
that is the part od SDP. you should only configure trunk with the ip where trunk recieves SIP traffic.

have you tried it.

Hi Eld

Thanks for response. I tried and also disabled the firewall on the server. Even this is 2nd server which I am trying…when I tried free switch I put rtp ip. there and voice worked

My provider is giving me 1 address for signaling and 3 IP ranges for media. I have this configuration (asterisk 13.12):

[transport-trunk2]
type=transport
protocol=udp
bind=my_local_address:local_port
local_net=my_local_net/24
external_media_address=My_Public_IP
external_signaling_address=My_Public_IP
external_signaling_port=5060

[TRUNK2]
type=wizard
transport=transport-trunk2
sends_auth=yes
sends_registrations=yes
remote_hosts=Provider_Signaling_IP:Provider_Signaling_Port
outbound_auth/username=username
outbound_auth/password=password
endpoint/context=from-trunk2
endpoint/from_domain=Provider_Signaling_IP:Provider_Signaling_Port
auth/realm=Provider_Signaling_IP

It works for me, hope it helps

Thanks for respond

Last one to which asterisk version you used to do this work?