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