|
-
May 8th, 2009, 11:14 AM
#1
Thread Starter
New Member
Reading From a Text File Database
Hello All. This is my first post so I sure hope some kind person will have pity on me and help me out. I have a text file with entries as shown below. The text file has about 40 of them. Its actually from the Asterisk sip.conf configuration file in case anyone was wondering.
Anyway I need to extract 2 bits of info from each entry - The persons name and their extension. The point of this is to create a realtime extension list everytime I update this list file that my customer can view online. Unfortunately this cannot be in a real DB or else Id already be done, lol. Can anyone help? Thanks!
;Adam Smith
[201]
type=friend
context=abc
username=201
secret=pass201
callerid=Adam Smith<4072301234>
host=dynamic
nat=yes
qualify=5000
canreinvite=no
dtmfmode=rfc2833
mailbox=201@abc-vm
disallow=all
allow=g729
;Bob Jones
[202]
type=friend
context=abc
username=202
secret=pass202
callerid=Bob Jones<4072301235>
host=dynamic
nat=yes
qualify=5000
canreinvite=no
dtmfmode=rfc2833
mailbox=202@abc-vm
disallow=all
allow=g729
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|