[Osip] Difficulty with osip_uri_uparam_add
Dave Waiting
david at crg.ee.uct.ac.za
Tue Jan 22 13:37:35 CET 2008
Hi
Thanks for the quick reply.
Unfortunately this is not the problem - the code still crashes at the
osip_uri_uparam_add line.
Regards
Dave
Aymeric Moizard wrote:
>
>
> On Tue, 22 Jan 2008, Dave Waiting wrote:
>
>> Hi
>>
>> I recently upgraded my osip library and now I'm having problem with
>> the following lines of code causing segmentation fault:
>>
>> osip_route_t *rt;
>
> You are missing:
>
> osip_route_init(&rt);
>
> If this is not done, the next "parse" method will write
> in non allocate memory.
>
> Aymeric
>
>> if (osip_route_parse(rt,"sip:proxy.example:5060") == 0)
>> {
>> osip_uri_uparam_add(rt->url,osip_strdup("lr"),NULL);
>>
>> }
>>
>> What mistake have I made?
>>
>> Regards
>>
>> Dave
>>
>> _______________________________________________
>> Osip mailing list
>> Osip at atosc.org
>> http://www.atosc.org/mailinglist/listinfo/osip
>>
>>
>
More information about the Osip
mailing list