Author Topic: how return first and last name to Yate client by call (db auth)  (Read 15660 times)

oldbay

  • Newbie
  • *
  • Posts: 5
    • View Profile
how return first and last name to Yate client by call (db auth)
« 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?

vankooch

  • Administrator
  • Newbie
  • *****
  • Posts: 49
    • View Profile
Re: how return first and last name to Yate client by call (db auth)
« Reply #1 on: October 17, 2013, 07:00:40 AM »
Have look at the docs http://docs.yate.ro/

jehanzaib_kiani

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: how return first and last name to Yate client by call (db auth)
« Reply #2 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

oldbay

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: how return first and last name to Yate client by call (db auth)
« Reply #3 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! :)