Hello, 

I am trying to working with Asterisk RealTime. 

According to http://www.voip-info.org/wiki/view/Asterisk+func+realtime

Example writing to database using realtime
Add avp into extconfig.conf
avp => pgsql,hostedpbx,thiak_avp

and add new extension into extension.conf
exten => s,n,Set(REALTIME(avp,attribute,USED_CHANS/BOB,value)=1)

This will execute the following SQL:
UPDATE avp SET value = '1' WHERE attribute = 'USED_CHANS/BOB'


My Question is if I would like to execute INSERT SQL statement

like 

INSERT INTO avp (value, attribute) VALUES(value1, value2)

How I am able to make it work with REALTIME.

Thanks



--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to