[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-users
Subject:    Re: [asterisk-users] Pre-routing manipulation of calls
From:       russell () lls ! lls ! com (Russell Brown)
Date:       2008-12-20 0:23:37
Message-ID: m1LDpd3-01tLlqa () lls ! lls ! com
[Download RAW message or body]

Quoth Kevin DeGraaf <kevin@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@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic