[asterisk-users] Pre-routing manipulation of calls

Alex Balashov abalashov at evaristesys.com
Fri Dec 19 13:11:02 CST 2008


#1 is your best bet. Use Goto().

On Dec 19, 2008, at 14:03, Kevin DeGraaf <kevin at kdegraaf.net> wrote:

> This is concerning an Asterisk 1.4.18 server.
>
> We have approximately 70 DID numbers.  Incoming calls are placed into
> the "incoming" context (by zapata.conf) and are routed based on the
> dialed number.
>
> 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.
>
> 1. Can I set up a catch-all extension in "incoming", do my processing,
> and then have the calls "fall through" to the existing extension  
> stanzas?
>
> 2. Or, should I use a separate "pre-incoming" context to do the
> manipulation and then jump to the real "incoming" context containing  
> the
> specific extension stanzas?
>
> 3. Or, is there another method that would be more elegant?
>
> Thanks.
>
> -- 
> Kevin DeGraaf
>
> _______________________________________________
> -- 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



More information about the asterisk-users mailing list