Author Topic: SIP Routing based upon originating IP address with no registation  (Read 9608 times)

skb007

  • Newbie
  • *
  • Posts: 1
    • View Profile
I have installed yate on Centos. 2 extensions are able to talk to each other.

I would like to call routing based upon the originating IP address and 5 digit prefix (wholesale), no registration required.
Also I want to setup a outbound trunk where I can send the calls via SIP without registering to the remote ip address.

acctfile.conf
[test_sip1]
enabled=yes
protocol=sip
description=Test SIP account
server=1.1.1.1:5060


Please help.



marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: SIP Routing based upon originating IP address with no registation
« Reply #1 on: October 19, 2015, 01:51:46 AM »
Here is a starting point on routing:
http://docs.yate.ro/wiki/Routing

To route calls based on ip address check the "ip_host" parameter of the routing message: it contains the ip address of the originator.
Example can be found here:
http://docs.yate.ro/wiki/Regular_expressions

If don't set the username parameter when configuring an account in accfile the sip module won't send REGISTER.
You'll be able to route calls to provider using the line.

If you need to authenticate set the username but don't set the registrar.