Re: Terminating cost issue is solved - small question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



voipradattr is just a table to describe result sets returned from get_xxx_check/reply_attrs.
You can write your own get_my_reply_attrs functions that will return your custom attributes
(just like the original get_ functions do) and make SQL UNION of both result sets in your
authentication query. Something like:


(SELECT id, '%{SQL-User-Name}', attrname, attrvalue, attrop FROM radius_get_check_attrs(...))
UNION (SELECT id, '%{SQL-User-Name}', attrname, attrvalue, attrop FROM radius_get_MY_check_attrs(...))


This way you can add custom attributes without messing up with the original sources.

----- Original Message ----- From: "Oleg Ustinov" <nectis@xxxxxxxxx>
Sent: Thursday, October 07, 2004 12:28 AM



I have another one questions.

Is a voipradattr table implemented into sqlbilling?

I mean, may I put there called number rewrite? Will it work?
Like:
attrname = 'h323-redirect-number'
attrvalue = '4822123456'
attrop = '='

So it should rewrite number to '4822123456' one.

But there is missing one more attribute condition "if"

In example we add one attribute in table more like 'attrif' to check for the
condition for eg. '4969123456':


If called number '4969123456' then 'h323-redirect-number' '=' '4822123456'.

So we can make user interface to do it per mouse click

Or same for IP redirect with 'h323-redirect-ip'

Best regards,

Oleg



------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl

_______________________________________________________

List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux