Added setting for the address the H.323 endpoint binds to.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2481 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
3a3f0dcabd
commit
6f5890e792
|
@ -117,6 +117,9 @@ ep = true
|
|||
; gw: bool: Set to true if you want this endpoint to declare itself as gateway
|
||||
gw = false
|
||||
|
||||
; addr: string: IP address to bind the endpoint to, defaults to all interfaces
|
||||
;addr=
|
||||
|
||||
; port: int: TCP port on which the endpoint will listen
|
||||
;port=1720
|
||||
|
||||
|
|
|
@ -808,6 +808,8 @@ bool YateH323EndPoint::Init(const NamedList* params)
|
|||
: H323AudioCodec::NoSilenceDetection));
|
||||
|
||||
PIPSocket::Address addr = INADDR_ANY;
|
||||
if (params && params->getValue("addr"))
|
||||
addr = params->getValue("addr");
|
||||
int port = 1720;
|
||||
if (params)
|
||||
port = params-> getIntValue("port",port);
|
||||
|
|
Loading…
Reference in New Issue