Fixed the endpoints header correctly. The contacts sometimes has alias like
commitb3922782925207dc4f27782ee55fcd4e0ad766fe
authorAnibal Avelar <avelar@gmail.com>
Fri, 10 Jul 2009 16:21:10 +0000 (10 11:21 -0500)
committerAnibal Avelar <avelar@gmail.com>
Fri, 10 Jul 2009 16:21:10 +0000 (10 11:21 -0500)
tree2ad7caf06b10a68f9a471e5c357f052d0c860be1
parentead7bea01efa7e61910aec66fc075175a1407846
Fixed the endpoints header correctly. The contacts sometimes has alias like
"John, Smith" instead a simple "John Smith". The extra character "," gives
error when we try to parser the number of person in the conversation.

I made a function for this, it works on many cases I hope in all.

Also I fixed two warnings introduced in the previous commit.

Regards
src/sipe.c
src/sipmsg.c
src/sipmsg.h