Author Topic: simple install - from SIP message  (Read 5179 times)

jehanzaib_kiani

  • Newbie
  • *
  • Posts: 45
    • View Profile
simple install - from SIP message
« on: September 02, 2018, 09:01:46 PM »
Hi team,

How are things? It's a long time i tested my first yate installation but never used it in our production.
I am already using opensips but i want to test yate in parallel.
Just simple requirements to start with.

Listen on 5060 UDP/TCP port and forward it to another IP(opensips). so anything comes to 5060 port , forward it to another SIP server.  My machine is running 10.154.0.2 IP but the Public (static) IP is xx.xx.xx.xx

Can you please guide me what file do i need to change for the above ?

Thank you team.

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: simple install - from SIP message
« Reply #1 on: September 03, 2018, 03:38:42 AM »
You may start at:
http://docs.yate.ro/wiki/SIP_Configuration_File

You may set the role parameter of local listener
role=local

Assuming outbound connection (listener) name is 'OUTBOUND' a simple regexroute routing:
[default]
${role}local=sip/sip:${called}@ADDR;oconnection_id=OUTBOUND


jehanzaib_kiani

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: simple install - from SIP message
« Reply #2 on: September 04, 2018, 09:21:47 PM »
ok.

local interface 10.154.xx.xx but where to add the external ip in the config?

will the regex ${role}local=sip/sip:${called}@ADDR;oconnection_id=OUTBOUND sends all the SIP to the ADDR ? i.e REGISTER, INVITE , NOTIFY PUBLISH etc ?