Kaushik,
OpenSer will send the INVITE to the ip address and port number that client had specified in the contact header of the REGISTER packet, that was used to register the client with the registrar. Based on the information provided here and the fact that your configuration does not have any statements for NAT, I would have to guess the port was specified as 5060 or it was not specified at all, in which case it would default to 5060. You can verify this theory by doing a network trace of the client's registration and looking at the contact header in the registration packet.
Steve
Kaushik Kumar wrote:
Hi,
I am working on a project which involves testing SER with some dummy clients. I have downloaded and installed OpenSER. I am using the very basic Hello.cfg configuration file available online. I find that when SER gets a INVITE request from the caller, it does not deliver it properly to the client (callee). Some debugging revealed that it relays the request to port 5060 at the client rather than the one which was registered by the callee earlier. I tried to look at the source code of SER and found that the callee's contact information never seem to be looked up at any stage.
Is this due to some missing information in my configuration file? Any feedback would be appreciated.
Thank you -Kaushik PS: I have attached (inline) the configuration file