On 12/8/05, Voipers Portugal <[EMAIL PROTECTED]> wrote: > Hello, > > I am using SER as my SIP server and I am developing a software that should > rad some parameters and redirect SIP messages. An usual aproach of two users > comunication using SER is: > > Softphone 1 (Client 1) <-----> SER <----> Softphone 2 (Client 2) > > My idea is to put an "Agent" between the users and the SER, so that I can > read a few parameters for another application. So it should be: > > Softphone 1 (Client 1) <-----> Agent <----> SER <-----> Agent <----> > Softphone 2 (Client 2) > > The REGISTER process works fine. However I'm having problems with the INVITE > messages. Imagine this situation: > > Component - IP - Port: > Softphone 1 - IP 1 - 5060 > Agent - IP 2 - 5070 > SER - IP 3 - 5060 > Softphone2 - IP 4 - 5060 > > everything works fine when Agent port is 5060, however i want to use a > different port so that i can have a softphone in the same IP as the Agent. > The problem happens when Softphone 2 tries to send the "100 TRYING" message > back to the Agent so that it can be forwarded to SER and so on. It tries to > send to port 5060 instead of 5070. The strange thing is that the INVITE > message that Softphone 2 receives from Agent is from port 5070, shouldn't it > answer back to that port as well? > > Hope to hear from you. > > Jose Simoes > _______________________________________________ > Sip-implementors mailing list > [email protected] > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors >
My understanding is that your agent will have to rewrite the via header to add/change the port number, or add "rport=5070" to it in order for this to work. See here for a semi-recent discussion on the return port numbers: https://lists.cs.columbia.edu/pipermail/sip-implementors/2005-March/008560.html Aaron _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
