[asterisk-users] Pre-routing manipulation of calls
Russell Brown
russell at lls.lls.com
Fri Dec 19 18:23:37 CST 2008
Quoth Kevin DeGraaf <kevin at 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: russell at lls.com PHONE: 01780 471800 |
| Lady Lodge Systems | WWW Work: http://www.lls.com |
| Peterborough, England | WWW Play: http://www.ruffle.me.uk |
--------------------------------------------------------------------
More information about the asterisk-users
mailing list