[asterisk-dev] Asterisk 1.8 and SIP Diversion: header

Mark Michelson mmichelson at digium.com
Fri Feb 24 11:54:57 CST 2012


On 02/24/2012 11:18 AM, Jonathan Rose wrote:
> Congratulations, you've been drafted to test this!
> https://reviewboard.asterisk.org/r/1769/
If you don't want to try backporting a patch from trunk, there may be a 
way to get around the behavior you're seeing. The outgoing leg to the 
final party gets redirecting information set on it due to the call being 
forwarded. It's this redirecting information that gets used to populate 
the Diversion header. Luckily, you can manipulate this information from 
the dialplan prior to calling out to the forwarded-to party.

If you do something like

exten => blah,n,Set(REDIRECTING(from-num-valid)=0)

in your dialplan. This will note that the redirecting from number is not 
valid, so the SIP channel driver will not attempt to send out a 
Diversion header. Thanks to Richard Mudgett for thinking this up.

Mark!



More information about the asterisk-dev mailing list