<html><body><span class="xfm_63221633">Hi,<div><br/></div><div>I'm working with ForwardCall functional and have found a bug if we have forward URL which contains PORT number.</div><div>For example, for h323:@192.168.1.1:1726 input string H323EndPoint::ParsePartyName will make address string like ip$192.168.1.1:1726:1726.</div><div><br/></div><div>The fix is trivial (may be I've not covered all cases):</div><div><br/></div><div><div>  // get the various parts of the name</div><div>  PString hostOnly = PString();</div><div>  PINDEX userPos = remoteParty.Find('@');</div><div>  if (userPos != P_MAX_INDEX) {</div><div>    if (gatekeeper != NULL)</div><div>      alias = url.AsString();</div><div>    else {</div><div>      alias = remoteParty.Left(userPos);</div><div>      PINDEX portPos = remoteParty.FindLast(':', portPos + 1);</div><div>      PINDEX len = (portPos != P_MAX_INDEX) ? (portPos - userPos - 1) : P_MAX_INDEX;</div><div>      hostOnly = remoteParty.Mid(userPos+1, len);</div><div>    }</div><div>  } else {</div><div>     alias = url.GetUserName();</div><div>     hostOnly = url.GetHostName();</div><div>  } </div><div>  address = hostOnly;</div></div><div><br/></div><div><br/></div><div><br/></div><div>Also we have similar issue for input string without '@' character. In this case PTLIB::PURL class wrong parse the string (uses 192.168.1.1:1726:1726 as USER).</div><div><br/></div><div>To fix this issue we need look PTLIB::PURL class futher.</div><div><br/></div><div>Thanks</div><div>--</div><div>Iurii Gordiienko</div></span><img src="https://mail.ukr.net/api/public/message_read?a=nKmgvdFnKHmsk7uvZLEpXibmAtQ6E8bsU1dKf7TDJxSldUcS2srd_e9yhYiMfmjk2T54SqWV9K_Bl-5oL7JgAzMuZiSV5_cWDSDuIO1YCc4=" alt="" width="1" height="1" style="visibility: hidden; width: 1px; height: 1px;"/>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       </body></html>