473,472 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Conf file retrive the particular campaign

8 New Member
In my queues.conf file my text message are stored here .I want to retrieve particular campaign modify some words in particular campaign and return to save the same queues.conf file .Plz give me coding.

example queues.conf
----------------------------------------------------------------
Expand|Select|Wrap|Line Numbers
  1. [pep3]
  2. eventwhencalled = yes
  3. strategy = leastrecent
  4. timeout = 10
  5. wrapuptime = 1
  6. ;:setting:active:false
  7. ;:setting:function:predictive
  8. ;:setting:calltoday:false
  9. ;:setting:usednc:false
  10. ;:setting:maxratio:2
  11. ;:setting:maxabandons:3.0
  12. ;:setting:maxlines:23
  13. ;:setting:sleeptime:1000
  14. ;:setting:tzearliest:8
  15. ;:setting:tzlatest:21
  16. ;:setting:timeout:20000
  17. ;:setting:dspmode:none
  18. ;:setting:trunk:SIP/64.119.181.135
  19. ;:setting:dialprefix:1
  20. ;:setting:usecloser:false
  21. ;:setting:closercam:none
  22. ;:setting:callerid:9999999999
  23. ;:setting:filter:0
  24. ;:setting:chanvar:0
  25. ;:setting:chanstr:0
  26. ;:setting:calls:0
  27. ;:setting:abandons:0
  28. ;:setting:totalcalls:0
  29. ;:setting:totalabandons:0
  30. ;:setting:talktime:0
  31. ;:setting:totaltalktime:0
  32. ;:setting:usecallback:false
  33. ;:setting:usetzfilter:false
  34. ;:setting:debug:true
  35. ;:setting:skip:0
  36. ;:setting:f_mode:0
  37. ;:setting:f_areacode:0
  38. ;:setting:f_areacode_prefix:0
  39. ;:setting:f_zipcode:0
  40. ;:setting:prn_agent_sales:false
  41. ;:setting:prn_closer_sales:false
  42. ;:setting:prn_closer_nosales:false
  43. ;:setting:orderby:attempts_pickups
  44. ;:setting:filters:number:0:enable:true:string:((disposition > -6 AND disposition < 6) AND attempts < 4)
  45. ;:setting:filters:number:1:enable:false:string:((disposition > -6 AND disposition < 6) AND (attempts > 3 AND attempts < 8))
  46. ;:setting:filters:number:2:enable:false:string:((disposition > -6 AND disposition < 6) AND attempts > 7)
  47. ;:setting:filters:number:3:enable:false:string:(disposition = -3 OR disposition = 3)
  48. ;:setting:filters:number:4:enable:false:string:(disposition = 0)
  49. ;:setting:filters:number:5:enable:false:string:(disposition = -7 AND attempts < 4)
  50. ;:setting:chanvars:number:0:enable:false:var:FROM:string:GNUDIALER
  51. ;:setting:filters:number:6:enable:false:string:(disposition = -7 AND attempts > 3)
  52. ;:setting:vm_message:none
  53.  
  54. [CLOSER]
  55. eventwhencalled = yes
  56. strategy = leastrecent
  57. timeout = 10
  58. wrapuptime = 1
  59. ;:setting:active:false
  60. ;:setting:function:predictive
  61. ;:setting:calltoday:false
  62. ;:setting:usednc:false
  63. ;:setting:maxratio:2
  64. ;:setting:maxabandons:3.0
  65. ;:setting:maxlines:23
  66. ;:setting:sleeptime:1000
  67. ;:setting:tzearliest:8
  68. ;:setting:tzlatest:21
  69. ;:setting:timeout:20000
  70. ;:setting:dspmode:none
  71. ;:setting:trunk:Zap/g1
  72. ;:setting:dialprefix:none
  73. ;:setting:usecloser:true
  74. ;:setting:closercam:CLOSER
  75. ;:setting:callerid:9999999999
  76. ;:setting:filter:0
  77. ;:setting:chanvar:0
  78. ;:setting:chanstr:0
  79. ;:setting:calls:0
  80. ;:setting:abandons:0
  81. ;:setting:totalcalls:0
  82. ;:setting:totalabandons:0
  83. ;:setting:talktime:0
  84. ;:setting:totaltalktime:0
  85. ;:setting:usecallback:false
  86. ;:setting:usetzfilter:false
  87. ;:setting:debug:true
  88. ;:setting:skip:0
  89. ;:setting:f_mode:0
  90. ;:setting:f_areacode:0
  91. ;:setting:f_areacode_prefix:0
  92. ;:setting:f_zipcode:0
  93. ;:setting:prn_agent_sales:false
  94. ;:setting:prn_closer_sales:false
  95. ;:setting:prn_closer_nosales:true
  96. ;:setting:orderby:attempts_pickups
  97. ;:setting:filters:number:0:enable:true:string:((disposition > -6 AND disposition < 6) AND attempts < 4)
  98. ;:setting:filters:number:1:enable:false:string:((disposition > -6 AND disposition < 6) AND (attempts > 3 AND attempts < 8))
  99. ;:setting:filters:number:2:enable:false:string:((disposition > -6 AND disposition < 6) AND attempts > 7)
  100. ;:setting:filters:number:3:enable:false:string:(disposition = -3 OR disposition = 3)
  101. ;:setting:filters:number:4:enable:false:string:(disposition = 0)
  102. ;:setting:filters:number:5:enable:false:string:(disposition = -7 AND attempts < 4)
  103. ;:setting:filters:number:6:enable:false:string:(disposition = -7 AND attempts > 3)
  104. ;:setting:chanvars:number:0:enable:false:var:FROM:string:GNUDIALER
  105. ;:setting:vm_message:none
  106.  
  107. [...snip...]
  108.  
-----------------------------------------------------------------

This much of queues.conf
Here pep3,CLOSER,INBOUND,DNC,people,peopletech,aircel,a irtel,vodafone
these are campaign in top of every para

If I select any one campaign display that particular information I changed that infomation and to save that queues.conf is automatically changed


Thanking you
Oct 30 '07 #1
1 1492
pbmods
5,821 Recognized Expert Expert
Heya, DSudhakara.

My recommendation would be to split up your .conf files by campaign. Then you only have to load the settings that are specific to the campaign, saving a lot of CPU cycles.

To make changes, simply use preg_replace() and rewrite the entire file.

Note that if you don't split up your .conf file, it becomes VERY complicated to use preg_replace().
Nov 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Oliver Hoehle | last post by:
Hello! I tried to get my J2EE app working with DB2 for several days and now it seems to work, but... (Tomcat 5.0.19 on NT 4.0 with J2SDK 1.4.1_02) 1) Declaring the DB2-datasource in...
6
by: David Nedrow | last post by:
I'm trying to set up the cyrus imap server using PostgreSQL as the authentication backend. Currently, the issue I'm having is that I'm unable to connect via psql on the loopback address...
2
by: Terry | last post by:
Any .dll or COM+ for .Net can help me retrive data from a Access file? The table contain several columns and the last one is a container which I store Article; because each article is a little bit...
3
by: Si Chen | last post by:
Hello. It seems that every time I make a change to pg_hba.conf, I have to restart the database server for the new authentication to take effect. Is there a way to have the server use the new...
8
by: asenthil | last post by:
Hai, i'm having a string in a specific field of a database... now i want to retrive that string from the database and i have to write that string into a xml file.... retriving is not a...
1
by: amritranjan | last post by:
How to retrive image file from MS access database and display this in another JSPpage -------------------------------------------------------------------------------- This is my Jsp code for...
3
by: smitty1e | last post by:
Just a fun exercise to unify some of the major input methods for a script into a single dictionary. Here is the output, given a gr.conf file in the same directory with the contents stated below: ...
4
by: raghulvarma | last post by:
My XMLFile is as shown below <?xml version="1.0" encoding="utf-8"?> <root> <BookDetails> <bookid>156</bookid> <bookname>xml</bookname> <author>rajendran</author> </BookDetails>...
3
by: gjain123 | last post by:
Hi all, I am using netbeans as IDE and glassfish as app server for my web application. At runtime it needs some dll files and .conf file. Now the question is: 1. How should I package the .conf...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.