Re: [asterisk-users] Realtime Hints

2012-09-25 Thread Leandro Dardini
Thank you, I think I'll surrender in trying to use the realtime extension and use instead the simple ODBC interface. However I'd like to access some channel variables. Which ones are available inside the extension hint porcessing? I tried ${CDR(accountcode)} and it is not available, nor the

Re: [asterisk-users] Realtime Hints

2012-09-25 Thread Stephen Collier
I use the following in func_odbc.conf [FINDEXTN] dsn=asterisk readsql=SELECT ${ARG1} FROM extension_map as em left join sip_devices as sd on s d.id = em.name_id WHERE em.extension ='${ARG2}' and name_id IS NOT NULL this is for our own extension_map table which is part of our mapping to our

Re: [asterisk-users] Realtime Hints

2012-09-25 Thread Leandro Dardini
Thank you again, The problem in this setup is the inability to isolate a group of extensions from others. I mean, if all hints are in the same context, each extension can subscribe to any of the hints. The reason I prefer a completely realtime hints was I'd like to dynamically create hints in

Re: [asterisk-users] Realtime Hints

2012-09-24 Thread Chad Wallace
On Mon, 24 Sep 2012 23:37:32 +0200 Leandro Dardini ldard...@gmail.com wrote: I'd like to start using realtime hints in my asterisk 1.8 dialplan, but I am unable. I haven't understood if they have to be put inside the extensions realtime table (with priority -1) or if a dedicated realtime

Re: [asterisk-users] Realtime Hints

2012-09-24 Thread Stephen Collier
We use something like below [blf] exten =_ZXX!,hint,SIP/${ODBC_FINDEXTN(sd.name,${EXTEN})} This uses an odbc call to create the hint when the phone asks for it. Using snom 760 and 821 Cheers Stephen -- _ -- Bandwidth and