Quoth Kevin DeGraaf <ke...@kdegraaf.net> > >I want to do some manipulation (CallerID name override) to all incoming >calls before they are routed. I would prefer to avoid duplicating the >necessary code in each DID extension stanza, even if it's just a call to >a macro.
I do it like so: [isdn_in] exten => _X.,1,Set(CALLERID(name)=Banana) ;.... exten => _X.,n,Goto(real_isdn_in,${EXTEN},1) ; [real_isdn_in] ; ; DDI planning ; exten => _871800,1,Goto(groups,200,1) exten => _871802,1,Macro(stdexten|112|Sip/112) exten => _871803,1,Macro(stdexten|113|Sip/113) exten => _871804,1,Macro(stdexten|114|Sip/114) ;... HtH -- Regards, Russell -------------------------------------------------------------------- | Russell Brown | MAIL: russ...@lls.com PHONE: 01780 471800 | | Lady Lodge Systems | WWW Work: http://www.lls.com | | Peterborough, England | WWW Play: http://www.ruffle.me.uk | -------------------------------------------------------------------- _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users