Re: Add h323_id to destinationInfo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Montag, den 15.11.2010, 08:34 -0800 schrieb FabianHuegle:

> I don't want to replace the dialed digits. The dialed digits are fine
> as they are. e.g. "200001". But in addition to the dialed digits I
> would have to add the h323_id to the destination info. And that would
> be "GNU_GK_LINK_1" as this is the trunk name in Swyx.
> 
> As a result, the destination info contains dialedDigits=200001 and
> h323_id=GNU_GK_LINK_1. This should be possible as the sourceInfo of
> the devices also have both the dialedDigits and h323_id.

This is not possible with the current implementation of GnuGK. I was
challenged with the same problem once, too (see
<1268817272.2676.18.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxx>). Back then the
GnuGk could be enhanced to do this with a simple patch of 3 lines (see
attached file). IIRC the patch was against version 3.2.0, but I think,
it should still work.

The real problem with multiple destinationAddresses is that it is indeed
allowed by H.323, but there seems to be no explanation about how to
handle/route calls with more than one address. Is address no. 1 the
preferred one? Or may you simply choose one you like? etc. pp.


Regards
David







-- 
David Dahlberg <david.dahlberg@xxxxxxxxxxxxxxxxxx>    

Fraunhofer FKIE, Dept. Communication Systems (KOM) | Tel: +49-228-9435-845
Neuenahrer Str. 20, 53343 Wachtberg, Germany       | Fax: +49-228-856277
--- Routing.cxx	2009-11-15 16:11:18.000000000 +0100
+++ Routing.cxx.new	2010-03-17 08:56:49.000000000 +0100
@@ -897,23 +897,34 @@
 bool VirtualQueue::RouteToAlias(
 	/// alias for the routing target that
 	/// will replace the original destination info
 	const PString& targetAlias, 
 	/// will replace the original destinationCallSignallAddress
 	const PString& destinationIp, 
 	/// identifier of the endpoint associated with the route request
 	const PString& callingEpId, 
 	/// CRV for the call associated with the route request
 	unsigned crv,
 	/// callID of the call associated with the route request
 	const PString& callID,
 	/// should this call be rejected
 	bool reject
 	)
 {
 	H225_ArrayOf_AliasAddress alias;
 	if (targetAlias != "") {
-		alias.SetSize(1);
-		H323SetAliasAddress(targetAlias, alias[0]);
+		PStringArray targetAliases(targetAlias.Tokenise("=", FALSE));
+		alias.SetSize(targetAliases.GetSize());
+		H323SetAliasAddresses(targetAliases, alias);
 	}
 	return RouteToAlias(alias, destinationIp, callingEpId, crv, callID, reject);
 }
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/

[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux