another way of doing so is you formulate the URI (whichever way you wish, if if is really something more complex, you can use the AVP formatting function), append the AVP to destination set and call sl_send_reply(3xx .... this shall return the new URI in Contact.
-jiri
p.s. some related examples from oob.cfg (it is not exactly it, but it gives you some fragments....)
# here you can formulate complex URIs xlset_attr("$rpidheader", "sip:%$asserted_id@%@ruri.host;screen=yes");
# here you initiate redirection based on a URI in an AVP (statefuly here) attr_destination("$tu.fwd_busy_target"); t_reply("302", "Redirect On Busy");
if you would like to manipulate URI based on the incoming request URI, check subst_uri doc webpage (example 5)http://www.iptel.org/ser/doc/modules/textops
At 06:23 14/03/2008, Miklos Tirpak wrote:
Hi Lada,
if SER generates the response: append_to_reply("Contact: sip:user@host;param=value\r\n");
if SER forwards the response: (There might be a better way, the following example replaces the whole header field. And I am not sure that it works correctly with multiple contact headers.) assign_hf_value("Contact", "%@contact;param=value");
Miklos
On 03/14/2008 10:35 AM, Ladislav Andel wrote:
Hi all, can I with SER add following in 302 response?
- add a parameter in Contact header that a UA will read and copy it to
the new INVITE and how would I do it in ser config. 2) or add a new header field with in 302 that a UA will read and copy it to the new INVITE
The first should be possible as RFC3261 in 20.10 shows in example but I'm wondering if SER can do it too.
Thank you, Lada _______________________________________________ Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Serusers mailing list Serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Jiri Kuthan http://iptel.org/~jiri/