<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV> I am trying to call my own function ( say abc() ) inside chan_sip.c - sip_send_mwi_to_peer...</DIV>
<DIV> </DIV>
<DIV> I <STRONG>check</STRONG> if peer->tohost has a length>0 which means that its a IP address (not registered Endpoint), I call my function....</DIV>
<DIV> </DIV>
<DIV> For some when i introduce the check above, my peer->mailbox gets a NULL character in between 2 mailboxes (for the same peer)</DIV>
<DIV> </DIV>
<DIV>With the above check in place I see value of peer->mailbox as 1234\0007890</DIV>
<DIV> where 1234 and 7890 are teh 2 mailboxes....</DIV>
<DIV> </DIV>
<DIV>Without my check in place....the variable looks like this: 1234,7890</DIV>
<DIV> </DIV>
<DIV>How could just putting an "if" check cause this...?</DIV><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com