I want to insert the data to my extention table[bitextensions]. The below is the database table structure for bitextensions
+----------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| context | varchar(200) | NO | | NULL | |
| exten | varchar(200) | NO | | NULL | |
| priority | char(50) | NO | | 1 | |
| app | varchar(200) | NO | | NULL | |
| appdata | varchar(200) | NO | | NULL | |
+----------+--------------+------+-----+---------+----------------+
I want to insert two rows where I can call the peer. Below is my extension.conf file
[incoming]
exten => 6001,1,Dial(SIP/6001)
exten => 6001,n,Hangup()
exten => 6002,1,Dial(SIP/6002)
exten => 6002,n,Hangup()
I want to call from 6001 to 6002. How Do I insert the data in the above table.
below is the details from extconfig.conf:
[settings]
sippeers => odbc,root,TABLENAME
extensions => odbc,root,bitextensions
Please suggest