[Asterisk-Users] Re: HooDaHek 0.6 Released

2005-09-21 Thread Tony Mountifield
In article [EMAIL PROTECTED],
Shawn Rutledge [EMAIL PROTECTED] wrote:
 The eth suffix is oft abused, and oft he who writeth it
 knoweth not the rules.

Such as IBM (or their ad agency), who came up with IBM can helpeth
in a TV advert!!!

Cheers
Tony
-- 
Tony Mountifield
Work: [EMAIL PROTECTED] - http://www.softins.co.uk
Play: [EMAIL PROTECTED] - http://tony.mountifield.org
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Re: HooDaHek 0.6 Released

2005-09-20 Thread Steven
OK Great, I'll give it a shot.

I did find this other option 
http://archives.free.net.ph/message/20050309.013714.2d1bf446.en.html , but I 
do not really want to imbed this info in the asterisk database if I can have 
it external. (note: this other option did work when tested)

-- 
-- 
Steven

May you have the peace and freedom that come from abandoning all hope of 
having a better past.
----  ---  - - -   -- -   -   --  - - - --- - --   - 
 - --- - - -- -  -- --   -   --
Nathan Pralle [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 HooDaHek 0.6 has been released.

 So soon, you say?  Well, the best laid plans of mice and men...

 Steven BerkHolz is a pretty sharp stick and said to me, Why don't you 
 have HooDaHek change the CallerID when it looks up the name in the 
 database on an incoming call?  Much head smacketh ensued, and as I made 
 that change for Steven, I noticed that I had the way wrong version of 
 hoodahek_dbhandle anyway.

 SO:  Version 0.6 has the following changes:

 - Got the correct version of hoodahek_dbhandle inserted, which has 
 advanced error checking (yay) and also changes the CallerID in Asterisk if 
 it performs a successful lookup in the HooDaHek database. Thanks to Steven 
 BerkHolz for pointing out that rather obvious tidbit.

 As always, information and download linkage available here:
 http://www.nathanpralle.com/software/hoodahek.html

 Nathan

 -- 
 -
 Nathan E. Pralle
 Give the Director a Serpent Deflector
 www.nathanpralle.com
 -
 ___
 --Bandwidth and Colocation sponsored by Easynews.com --

 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
 



___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Re: HooDaHek 0.6 Released

2005-09-20 Thread Nathan Pralle

Steven wrote:
I did find this other option 
http://archives.free.net.ph/message/20050309.013714.2d1bf446.en.html , but I 
do not really want to imbed this info in the asterisk database if I can have 
it external. (note: this other option did work when tested)


Yeah, I tried that when I first started this project.  Then I decided 
that I wanted something that had the ability to grown beyond that simple 
format, and an external AGI script setup seemed the best.  I now have 
plans for the database to extend beyond simply holding numbers and 
names, but to holding addresses, contact information, and more 
importantly, to holding information about what Asterisk should DO with 
the call -- send it to voicemail, send it to a torture script, etc -- 
without having to write the dialplan for it.


Nathan

--
-
Nathan E. Pralle
Give the Director a Serpent Deflector
www.nathanpralle.com
-
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Re: HooDaHek 0.6 Released

2005-09-20 Thread Steven
I played around with finding the right place to call the agi.
Since my config started as [EMAIL PROTECTED], there are a lot of macros that 
complicate things.
I put the agi in the macro-dial and it is working as expected. (just the 
CLID record and change)

Thanks for the new tool.

ref:
[macro-dial]
exten = s,1,GotoIf($[ ${MACRO_CONTEXT} = macro-rg-group ]?4:2)  ; if 
this is from rg-group, don't strip prefix
exten = 
s,2,agi,hoodahek_dbhandle|${CALLERIDNAME}|${CALLERIDNUM}|${UNIQUEID}
exten = s,3,GotoIf($[${CALLERIDNAME:0:${LEN(${RGPREFIX})}} != 
${RGPREFIX}]?4:4)  ; check for ring-group prefix
exten = s,4,SetCIDName(${CALLERIDNAME:${LEN(${RGPREFIX})}}) ; strip off 
prefix
exten = s,5,AGI,dialparties.agi
exten = s,6,NoOp(Returned from dialparties with no extensions to call)
exten = s,7,SetVar(DIALSTATUS=BUSY)
exten = s,10,Dial(${ds})

-- 
-- 
Steven

May you have the peace and freedom that come from abandoning all hope of 
having a better past.
----  ---  - - -   -- -   -   --  - - - --- - --   - 
 - --- - - -- -  -- --   -   --
Steven [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 OK Great, I'll give it a shot.

 I did find this other option 
 http://archives.free.net.ph/message/20050309.013714.2d1bf446.en.html , but 
 I do not really want to imbed this info in the asterisk database if I can 
 have it external. (note: this other option did work when tested)

 -- 
 -- 
 Steven

 May you have the peace and freedom that come from abandoning all hope of 
 having a better past.
 ----  ---  - - -   -- -   -   --  - - - --- - --   
  - - --- - - -- -  -- --   -   --
 Nathan Pralle [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
 HooDaHek 0.6 has been released.

 So soon, you say?  Well, the best laid plans of mice and men...

 Steven BerkHolz is a pretty sharp stick and said to me, Why don't you 
 have HooDaHek change the CallerID when it looks up the name in the 
 database on an incoming call?  Much head smacketh ensued, and as I made 
 that change for Steven, I noticed that I had the way wrong version of 
 hoodahek_dbhandle anyway.

 SO:  Version 0.6 has the following changes:

 - Got the correct version of hoodahek_dbhandle inserted, which has 
 advanced error checking (yay) and also changes the CallerID in Asterisk 
 if it performs a successful lookup in the HooDaHek database. Thanks to 
 Steven BerkHolz for pointing out that rather obvious tidbit.

 As always, information and download linkage available here:
 http://www.nathanpralle.com/software/hoodahek.html

 Nathan

 -- 
 -
 Nathan E. Pralle
 Give the Director a Serpent Deflector
 www.nathanpralle.com
 -
 ___
 --Bandwidth and Colocation sponsored by Easynews.com --

 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




 ___
 --Bandwidth and Colocation sponsored by Easynews.com --

 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
 



___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Re: HooDaHek 0.6 Released

2005-09-20 Thread Nathan Pralle

Steven,

Do you think the below dialplan would be typical for almost any 
[EMAIL PROTECTED] setup?  If so, I'll add it as supplimental documentation 
for HooDaHek for those wanting to use it on [EMAIL PROTECTED]


Thanks,

Nathan

Steven wrote:

I played around with finding the right place to call the agi.
Since my config started as [EMAIL PROTECTED], there are a lot of macros that 
complicate things.
I put the agi in the macro-dial and it is working as expected. (just the 
CLID record and change)


Thanks for the new tool.

ref:
[macro-dial]
exten = s,1,GotoIf($[ ${MACRO_CONTEXT} = macro-rg-group ]?4:2)  ; if 
this is from rg-group, don't strip prefix
exten = 
s,2,agi,hoodahek_dbhandle|${CALLERIDNAME}|${CALLERIDNUM}|${UNIQUEID}
exten = s,3,GotoIf($[${CALLERIDNAME:0:${LEN(${RGPREFIX})}} != 
${RGPREFIX}]?4:4)  ; check for ring-group prefix
exten = s,4,SetCIDName(${CALLERIDNAME:${LEN(${RGPREFIX})}}) ; strip off 
prefix

exten = s,5,AGI,dialparties.agi
exten = s,6,NoOp(Returned from dialparties with no extensions to call)
exten = s,7,SetVar(DIALSTATUS=BUSY)
exten = s,10,Dial(${ds})



--
-
Nathan E. Pralle
Give the Director a Serpent Deflector
www.nathanpralle.com
-
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users