The answer is to learn C (or whichever C-derived language you are 
using to implement), most especially including its standard library 
and its associated string functions, as well as system calls.

There are a variety of ways to pass data into your program, such as 
command-line arguments, environment variables, and, of course, reading 
from configuration files.

On 04/18/2011 03:44 AM, Siga wrote:

> Hi,
> I need some information of how can I avoid the hard coding of the IP Address
> in my implementation, right now I am using socket programming for my SIP
> implementation and I am hard coding the IP Address in my code for example "
> local.sin_addr.s_addr = 1.2.3.4; ".
> One more question is, in the SIP session is it also possible to eliminate
> the hard coding of IP Address especially in SIP INVITE, ACK, BYE and so on.
> Because with this I can only connect to one remote host and every time I
> want to connect to another remote host I needed to do some changes in my
> code.
> Any good information with an example or any useful links to overcome this
> problem will be really useful.
>
> Regards
> _______________________________________________
> Sip-implementors mailing list
> Sip-implementors@lists.cs.columbia.edu
> https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors


-- 
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/
_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to