Juha Heinanen writes:
> and is shows that uri is correct when received from flash phone, but
> looks like later length of ruri gets one too big resulting into garbage:
>
> # Oct 13 09:16:07 sip sems[3354]: [#b53dab70] [invoke,
> RtmpConnection.cpp:415] INFO: received uri <sip:[email protected]>
> Oct 13 09:16:07 sip /usr/sbin/sip-proxy[29744]: INFO: Relaying INVITE
> <sip:[email protected]!> from sems
> Oct 13 09:16:08 sip /usr/sbin/sip-proxy[29744]: ERROR: tm [ut.h:304]: ERROR:
> uri2dst: failed to resolve "sip2sip.info!" :unresolvable A or
> AAAA request (-7)
looks like ruri string is not null terminated. i "fixed" it by null
terminating it:
else {
uri.av_val[uri.av_len] = 0;
session = startSession(uri.av_val);
but don't any idea if the fix is a proper one, i.e., is there room in
av_val for this extra char or can it overwrite something else.
-- juha
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev