2007/9/21, Fabio Margarido <[EMAIL PROTECTED]>:
> I'm using sip_request_create as follows:
>
> sip_request_create(p_home, sip_method_invite, NULL,
> URL_STRING_MAKE(address), NULL);
>
> because of a problem in my code, the string 'address' that was passed
> to the stack was like:
>
> sip:[EMAIL PROTECTED];voicexml=http://10.20.90.19/foo%%3Fbar%%3D0
>
> which caused the assertion:
>
> sip_basic.c:240: sip_request_create: Assertion `b == end' failed.
>
> Is the double '%' a problem with sofia parser or something I should
> protect from in my application code?

The % is escape char, a standalone % should be quoted as %25. The %%
does not make sense. I guess the sip_request_make() and or url_dup()
that is used there should detect the syntax problem in the URL string
and return an error instead of assert()ing.

-- 
Pekka.Pessi mail at nokia.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to