<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>My experience is that you can answer to both 5060 and the source port with 
the same result as long as the message is part of a previous dialog.&nbsp; Cisco 
normally announces 5060 in Contact.&nbsp; I have never seen the refused BYE 
either.&nbsp; BYE is the start of a new dialog and I'm not sure how you make ser 
send to the high source port in your ser.cfg. I would try using 
rewritehostport("cisco_ip:5060") for all messages to the gw.</DIV>
<DIV>g-)</DIV>
<DIV>&nbsp;</DIV>
<DIV>---- Original Message ----<BR>From: Jon Mansey<BR>To: 'Daniel 
Poulsen'<BR>Cc: serusers@lists.iptel.org<BR>Sent: Thursday, July 21, 2005 12:58 
AM<BR>Subject: RE: [Serusers] Cisco pstn gw ignoring BYE from ser<BR><BR>&gt; 
Gateway is a 3600 running 12.something, softphone is X-ten, but the<BR>&gt; 
softphone is irrelevant, it happens on all UAs. <BR>&gt; <BR>&gt; User-Agent: 
Cisco-SIPGateway/IOS-12.x<BR>&gt; <BR>&gt; what port do the original invite and 
subsequent messages come from if<BR>&gt; you originate a pstn call to ser from 
your cisco, if you dont me me<BR>&gt; asking?&nbsp; <BR>&gt; <BR>&gt; <BR>&gt; 
<BR>&gt; <BR>&gt; -----Original Message-----<BR>&gt; From: Daniel Poulsen 
[mailto:dpoulsen@gmail.com]<BR>&gt; Sent: Wednesday, July 20, 2005 3:01 
PM<BR>&gt; To: Jon Mansey<BR>&gt; Cc: serusers@lists.iptel.org<BR>&gt; Subject: Re: 
[Serusers] Cisco pstn gw ignoring BYE from ser<BR>&gt; <BR>&gt; <BR>&gt; 
<BR>&gt; Hi Jon,<BR>&gt; <BR>&gt; Which Cisco gw are you using?&nbsp; We have a 
Cisco AS5350 running<BR>&gt; 12.3(8)T3.&nbsp; I attempted to reproduce what you 
saw but did not see the<BR>&gt; same symptom.&nbsp; Which softphone?&nbsp; 
<BR>&gt; <BR>&gt; Dan<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; On 7/20/05, Jon Mansey 
&lt;jon@tigrisnet.net&gt; wrote:<BR>&gt; In the following scenario, it seems 
that ser may not be sending the<BR>&gt; BYE to <BR>&gt; the right port on the 
cisco, is that possible? The cisco is not<BR>&gt; registered <BR>&gt; with ser, 
it is a trusted IP. The DID is an alias for my softphone<BR>&gt; UID. This 
<BR>&gt; only happens for pstn-voip calls, when calling voip-pstn, ser 
always<BR>&gt; talks <BR>&gt; to the cisco on port 5060 and the BYE is obeyed, 
whichever end sends<BR>&gt; it <BR>&gt; first.<BR>&gt; <BR>&gt; <BR>&gt; call 
scenario<BR>&gt; <BR>&gt; dial DID from pstn phone<BR>&gt; <BR>&gt; cisco:51339 
-&gt; ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INVITE<BR>&gt; 
ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; cisco:51339&nbsp; 100 
trying<BR>&gt; ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; 
cisco:51339&nbsp; 180 ringing&nbsp;&nbsp;&nbsp;&nbsp; softphone ringing<BR>&gt; 
ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; cisco:51339&nbsp; 200 
OK&nbsp; softphone answered<BR>&gt; cisco:53924&nbsp;&nbsp;&nbsp;&nbsp; -&gt; 
ser:5060&nbsp;&nbsp;&nbsp;&nbsp; ACK<BR>&gt; <BR>&gt; call in progress, 2 way 
audio<BR>&gt; <BR>&gt; I hang up the softphone<BR>&gt; <BR>&gt; 
ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; cisco:51339&nbsp; 
BYE&nbsp;&nbsp;&nbsp;&nbsp; softphone says "hanging up"<BR>&gt; 
ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; cisco:51339&nbsp; 
BYE<BR>&gt; ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; 
cisco:51339&nbsp; BYE<BR>&gt; ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-&gt; cisco:51339&nbsp; BYE<BR>&gt; 
ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; cisco:51339&nbsp; 
BYE<BR>&gt; ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; 
cisco:51339&nbsp; BYE<BR>&gt; ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
-&gt; cisco:51339&nbsp; BYE<BR>&gt; <BR>&gt; <BR>&gt; 
ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; softphone:5060 
TIMEOUT&nbsp; softphone says "hung up"<BR>&gt; <BR>&gt; pstn phone still off 
hook, call up still<BR>&gt; <BR>&gt; i hang up the pstn phone<BR>&gt; <BR>&gt; 
cisco:50580&nbsp;&nbsp;&nbsp;&nbsp; -&gt; ser:5060&nbsp;&nbsp;&nbsp;&nbsp; 
BYE<BR>&gt; ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; 
cisco:5060&nbsp;&nbsp; OK<BR>&gt; 
ser:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&gt; cisco:51339&nbsp; 
BYE<BR>&gt; <BR>&gt; So the cisco has used 3 different ports during this call, 
one for the<BR>&gt; INVITE, which ser then uses to send replies back to, but the 
ACK<BR>&gt; comes from <BR>&gt; a new port, and then the eventual BYE comes from 
a 3rd port.<BR>&gt; <BR>&gt; I can understand how the cisco tries not to be 
stateful and uses<BR>&gt; different <BR>&gt; ports for each message, but how is 
ser supposed to communicate back<BR>&gt; to it if <BR>&gt; not on the port used 
by the original INVITE? Perhaps it should only<BR>&gt; talk to <BR>&gt; the 
cisco on port 5060? If so how do I make it do that? Is the cisco<BR>&gt; 
misbehaving by using many different ports when it originates the sip<BR>&gt; 
call? <BR>&gt; Is that a known IOS bug perhaps?<BR>&gt; <BR>&gt; Help and wisdom 
appreciated,<BR>&gt; <BR>&gt; Jon<BR>&gt; <BR>&gt; <BR>&gt; 
_______________________________________________<BR>&gt; Serusers mailing 
list<BR>&gt; serusers@lists.iptel.org<BR>&gt; 
http://lists.iptel.org/mailman/listinfo/serusers<BR>&gt; <BR>&gt; <BR>&gt; 
<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; 
_______________________________________________<BR>&gt; Serusers mailing 
list<BR>&gt; serusers@lists.iptel.org<BR>&gt; 
http://lists.iptel.org/mailman/listinfo/serusers</DIV></BODY></HTML>