[reSIProcate] From header valid?
julien
julien at aplix.co.jp
Thu Nov 16 19:30:39 CST 2006
Hello,
to add the header to the message I am doing :
message->addHeader(Headers::getType(name, nameLength), name, nameLength,
value, valueLength);
where name = "from" and value = "user at host.com"
So this header should not be valid right?
I am thinking about adding a test after addHeader to force the parsing.
What do you think?
Thanks for your help :-)
Julien
Byron Campen a écrit :
> You're probably tripping over the lazy-parser somehow. If this
> comes off the wire, it will not be parsed until you try to start
> accessing parts of it. Adding a parameter in this case will trigger a
> parse, and the parse will fail. However, if you are creating this
> NameAddr manually, how are you constructing it?
>
> Best regards,
> Byron Campen
>
>> Hello,
>> Sorry I have a small question, could one of you tell me,
>> if this is a valid from header?
>> From: user at host.com
>>
>> Sorry to ask that, resiprocate generates a parse error when I try to add
>> the "tag=", (probably complaining about missing scheme)
>> but does not complain if I send a message as it is. (Why is that?)
>>
>> Thank you for your help
>>
>> --Julien Saito
>> ジュリアン 齋藤
>> julien at aplix.co.jp
>>
>>
>> _______________________________________________
>> resiprocate-devel mailing list
>> resiprocate-devel at list.sipfoundry.org
>> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
>
>
--
Julien Saito
ジュリアン 齋藤
julien at aplix.co.jp
More information about the resiprocate-devel
mailing list