Author Topic: Register on demand  (Read 8236 times)

null

  • Newbie
  • *
  • Posts: 11
    • View Profile
Register on demand
« on: April 11, 2014, 02:45:08 AM »
I've a little question yet. How to register accounts on demand when calling on them? We have outgoing calls only and permanent registering do not need for us. Thx!

marian

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: Register on demand
« Reply #1 on: April 14, 2014, 01:05:20 AM »
If you don't want to register a line but you need credentials when calling you can:
1. Set the line in accfile.conf (username and password) but don't set the registrar
2. When calling set the sip target and the line

accfile.conf:
[user]
protocol=sip
username=my_user
password=my_password

regexroute.conf:
[default]
match_rule=sip/sip:number@ip.address;line=user

If challenged, sip will use 'user' line credentials to authenticate.
This way you don't need to register an account to server to use its credentials.