[OpenSIPS-Users] How to copy a specific header in 302 response
    Montarou, Hélène 
    Helene.Montarou at nuance.com
       
    Tue May 10 16:49:46 CEST 2011
    
    
  
Hi,
 
Do you know how I can copy a specific header from a request into a 302 response?
 
Thank you,
 
Helene
 
________________________________
From: Montarou, Hélène 
Sent: 8 mai 2011 21:11
To: users at lists.opensips.org
Subject: How to copy the Diversion header in 302 response
 
Hi,
 
I am using opensips-1.6.2-0 with the Diversion module.
 
I use the add_diversion('redirection') function and the Diversion header is added to the INVITE request.
However, I couldn't have it copied in the 302 response generated after the add-diversion is called.
 
Here is the code I am using:
 
                        ds_select_dst("2","4");
                        add_diversion("redirection");
                        sl_send_reply("302", "Redirect");
                        exit;
 
How can I force the signaling module to copy the Diversion header in the INVITE response 302?
 
Thank you,
 
Regards,
 
Helene
 
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110510/ab494000/attachment.htm>
    
    
More information about the Users
mailing list