[asterisk-users] Handling SIP 482 condition

Eric "ManxPower" Wieling eric at fnords.org
Sat Jan 6 12:16:42 MST 2007


Chris Miller wrote:

> I would tend to agree, but the context that holds these number is an 
> inbound context which includes additional logic that would fail normal 
> calls. Yes, I can add the DIDs to the outbound context, but the point 
> here is not to have a bloated dialplan with parallel data in multiple 
> contexts. If I must have parallel data, I'd rather do a lookup in an 
> external table using AstDB or an application similar to DUNDILookup() or 
> ENUMLookup().
> 
> Another route I tried was to setup a "local" SIP trunk to catch the 
> loops and send them down the inbound context. This fails because there 
> are no SIP headers and the unknown peer is effectively NULL and will 
> never match this trunk. As I said, they just get routed to 
> from-sip-external.

Put the DIDs in a context by themselves.  include => that context in 
both your incoming context and your phones context.


More information about the asterisk-users mailing list