Brezden is correct. That being said, you may want to look at the source of
OpenSIPs or Asterisk. These open source projects may help prevent you from
re-inventing the wheel. Also, when using other source, please be mindful of
the governing software license.
On Apr 26, 2013 7:05 AM, "brezden" <[email protected]> wrote:

> Hi, this list deals with SIP related implementation issues. And your
> question is not a SIP related question.
> Your question is a technical question related to programming.
>
>
> On 26/04/13 10:20, ikuzar RABE wrote:
> > Hi all,
> >
> > I work on Ubuntu 10.4.
> > I parse the SIP message with strtok_r (My SIP message parser must be
> > reentrant). The function prototype is like this:
> >
> > char *strtok_r(char *str, const char *delim, char **saveptr);
> >
> > I put this function in a while loop. Each iteration, *saveptr* points to
> > the next line in SIP message. but when the end of the message is reached,
> > saveptr continues to point to a memory space which does not correspond to
> > SIP message.
> >
> > How do you handle this kind of situation ?
> >
> > thanks for your help.
> > _______________________________________________
> > Sip-implementors mailing list
> > [email protected]
> > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
>
> _______________________________________________
> Sip-implementors mailing list
> [email protected]
> https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
>
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to