473,657 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ 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,INB OUND,DNC,people ,peopletech,air cel,airtel,voda fone
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 1501
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
15839
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 $CATALINA_HOME/conf/server.xml did not work. All I got was a message like "Cannot create JDBC driver of class '' for connect URL 'null', cause: null"
6
16677
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 (127.0.0.1). I believe I have the pg_hba.conf file correct, though I've tried a number of variations other than what I've included below. After each change to pg_hba.conf, I bounce postgresql (stop start), but still get a FATAL error re: missing...
2
1608
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 huge, so when I store it, it ask me if I want to pack it (the article) into a object then I click 'Yes'. But now I need to retrive data from the file and show it by datagrid, and now I don't know what kind of data type it is (when I click it, it...
3
8289
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 pg_hba.conf authentication without restarting the production server. Thanks, Si
8
2528
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 problem for me... but how can i write that string to a xml file....
1
2981
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 image upload in database: -----------Upload.jsp---------------- <html> <head> <title>Account Details </title>
3
2001
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: smitty@localhost ~/proj/mddl4/test $ ./inputs.py {'source_db': '/home/sweet/home.db'} smitty@localhost ~/proj/mddl4/test $ source_db="test_env" ./inputs.py {'source_db': 'test_env'} smitty@localhost ~/proj/mddl4/test $ ./inputs.py -f "test_cli"
4
1665
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> <BookDetails> <bookid>789</bookid>
3
5720
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 file into my web application war file. The scenario is that one .conf file makes use of another. e.g. if one file is a.conf and another is b.conf then the path of b.con is specified in a.conf as absolute path. How I have to change this path in case I...
0
8403
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8316
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8509
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8610
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7345
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6174
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2735
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 we have to send another system
2
1730
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.