General Category > Yate based projects

simple install - from SIP message

(1/1)

jehanzaib_kiani:
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:
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:
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 ?

Navigation

[0] Message Index

Go to full version