Hi,

thanks for your answer Pekka. Then I will just use my implementation.


Best regards,
Bernhard Suttner

Am Dienstag, den 12.08.2008, 15:43 +0300 schrieb Pekka Pessi:
> 2008/8/12 Bernhard Suttner <bernhard.sutt...@comdasys.com>:
> > we are using the Replaces header in a REFER like:
> > http://www.tech-invite.com/Ti-sip-service-5.html#fig15
> >
> > In this picture you can see, that the Replaces is upper-case. For creating
> > this URL we are using the function like that:
> >
> > sip_replaces_t *replaces =
> > nua_handle_make_replaces(consultation_tech_pvt->nh,
> > consultation_tech_pvt->profile->home, 0);
> >
> > char *query = sip_headers_as_url_query(tech_pvt->profile->home,
> > SIPTAG_REPLACES(replaces), TAG_END());
> >
> > The problem is now, that the function "sip_headers_as_url_query" will change
> > the Replaces to replaces (in the sofia-sip function append_escaped: line 380
> > in sip_tag_class.c). Therefore one of our PBX was not able to parse this
> > header. Is there any reason to change the URL into lower-case? Do you have a
> > "trick" to fix that, without breaking anything else?
> 
> The query or headers part is compared case-sensitively by
> url_cmp_all() (the RFC3261 says otherwise, but url_cmp_all() is poor
> substitute for proper URL comparison in any case). You can probably
> disable the conversion to lower case, it should not break anything.
> 
> 


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to