Yate Community Forum

General Category => Yate users hangout place => Topic started by: oldbay on September 19, 2013, 12:45:10 AM

Title: how return first and last name to Yate client by call (db auth)
Post by: oldbay on September 19, 2013, 12:45:10 AM
Forom regfile.conf use:

Code: [Select]
[user1]
password=123
caller=FirstName1 LastName1

[user2]
password=123
caller=FirstName2 LastName2

As a result: data from "caller" visible in called client by call

How make this from use register.conf at authorization on database?
Title: Re: how return first and last name to Yate client by call (db auth)
Post by: vankooch on October 17, 2013, 07:00:40 AM
Have look at the docs http://docs.yate.ro/ (http://docs.yate.ro/)
Title: Re: how return first and last name to Yate client by call (db auth)
Post by: jehanzaib_kiani on August 13, 2014, 08:17:39 PM
hi oldbay,
i had the same kind of question a few days back but now i just did it.
got to register.conf and edit the below context accordingly

[user.auth]

query=SELECT secret FROM sip_users WHERE username='${username}' AND secret IS NOT NULL
result=secret
Title: Re: how return first and last name to Yate client by call (db auth)
Post by: oldbay on September 08, 2014, 09:28:01 AM
hi oldbay,
i had the same kind of question a few days back but now i just did it.
got to register.conf and edit the below context accordingly

[user.auth]

query=SELECT secret FROM sip_users WHERE username='${username}' AND secret IS NOT NULL
result=secret

Тhank you very much for your reply! :)