Hello,
the uac module has built in capability to detect and update requests
within dialogs whose initial INVITE had the From replaced. This is
controlled by the parameter from_restore_mode:
http://kamailio.org/docs/modules/devel/uac.html#id2454161
So, if you replace the From for initial INVITE and replace mode is set
to auto, then you do not need to do anything to requests within dialog
(like re-INVITE, BYE).
If you try to do it, then it throws the error.
Cheers,
Daniel
On 02/16/2009 01:29 PM, BERGANZ François wrote:
I don't really understand
Cordialement,
BERGANZ François
http://www.acropolistelecom.net
Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.
-----Message d'origine-----
De : Daniel-Constantin Mierla [mailto:miconda@gmail.com]
Envoyé : lundi 16 février 2009 12:25
À : BERGANZ François
Cc : users(a)lists.kamailio.org
Objet : Re: [Kamailio-Users] ERROR:uac:replace_from
Hello,
On 02/16/2009 01:10 PM, BERGANZ François wrote:
Hello,
I have an error with uac_replace_from() function.
I want to do uac_replace_from(“$fn”,” sip:181812012@217.64.x.x”);
I have that error: ERROR:uac:replace_from: decline FROM replacing in
sequential request in auto mode (has TO tag)
Have you an idea?
you call uac_replace_from() for SIP messages within dialog and the
replace mode is auto (which means is done automatically by kamailio) -
therefore will be a duplicate.
Either check for to-tag when you do the replacement or set replace mode
to manual.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com