Yate Community Forum

Yate server => Other Yate server issues => Topic started by: null on April 11, 2014, 02:45:08 AM

Title: Register on demand
Post by: null 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!
Title: Re: Register on demand
Post by: marian 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.