[Serdev] Possible Bug in textopt.so / subst(///)
reticent
tavis.lists at galaxytelecom.net
Mon Mar 21 22:18:11 UTC 2005
Andrei Pelinescu-Onciul wrote:
>On Mar 16, 2005 at 11:38, reticent <tavis.lists at galaxytelecom.net> wrote:
>
>
>>This is running under the latest CVS code as of March 15.
>>
>>It seems that the subst(///) function provided by textopt.so doesn't
>>actually substitute, rather it prepends what its supposed to be
>>substituting with.
>>
>>Substitution Rule:
>>subst('/^Contact:.*sip:([0-9]+)@.*$/Contact: <sip:\1 at 1.1.1.1>/');
>>
>>Original Text String: "Contact: <sip:200010001000 at 192.168.1.75:5070>."
>>
>>It matches properly, but inspecting the packet as its routed out (using
>>ngrep) shows the following contact field
>>
>>"Contact: <sip:200010001000 at 1.1.1.1>sip:200010001000 at 192.168.1.75:5070."
>>
>>Where it should have been:
>>"Contact: <sip:200010001000 at 1.1.1.1>."
>>
>>Is this a bug, or am i doing somthing wrong?
>>
>>
>
>Most likely you are using something that tries to modify the same thing
>(Contact: ...). Are you using fix_nated_contact, or do you have another
>subst that might match the same line?
>
>
>Andrei
>
>
I'm certain that this is not the case, i'm replicating a REGISTER
message (with altered Contact) to another proxy so i'm not making use of
any nathelper or mediaproxy functions, also there is only a single
subst(///).
More information about the Serdev
mailing list