How I could Insert a record into the table with REALTIME

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



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

[Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [DCCP]     [Gimp]     [100% Free Online Dating]     [Yosemite News]     [Arts & Crafts]     [Yosemite Photos]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]


Add to Google Powered by Linux