[Asterisk-Users] sip reply sent to wrong port

Juha Heinanen jh at lohi.eng.song.fi
Sun May 11 05:25:34 MST 2003


when asterisk receives a bye request

U 195.10.149.20:32806 -> 192.98.81.157:5060
BYE sip:+35864129439 at 192.98.81.157 SIP/2.0.
Via: SIP/2.0/UDP 195.10.149.20:5062.
...

it should send the response according to the via header:

18.2.2 Sending Responses 

The server transport uses the value of the top Via header field in order
to determine where to send a response.

instead asterisk sends the response to the source port of the request:

U 192.98.81.157:5060 -> 195.10.149.20:32806
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 195.10.149.20:5062.
...

i tried to search the archives for a solution to this problem, but
didn't find any.

-- juha



More information about the asterisk-users mailing list