[Openh323gk-developer] RE: Set CLI?
H.323 Gatekeeper for VoIP and videconferencing
Brought to you by:
willamowius
From: Krassimir S. <kr...@bu...> - 2006-03-17 12:35:15
|
May be RewriteCLI should do the job but it does not if the CallingPartyNumber field is missing. If the terminal supports Caller-ID, module RewriteCLI works great! The are no difference in the way of setting CLI in the RewriteCLI module and trough option ScreenCallingPartyNumberIE both use SetCallingPartyNumber(cli, plan, type, presentation, screening) function. May be CallingPartyNumberIE field should be inserted somehow? >The new RewriteCLI module should od the job. ----- Original Message ----- From: "Krassimir Slavchev" <kr...@bu...> Sent: Friday, March 17, 2006 10:24 AM > I have some old terminals which don't send CLI and all of them are on > private IPs so I use > gnugk in routed mode. > I've tried to set ScreenCallingPartyNumberIE=1234 in [RoutedMode] but no > effect. > I've found in ProxyChannel.cxx: > > > const PString cli = toolkit->Config()->GetString(RoutedSec, > "ScreenCallingPartyNumberIE", ""); > if (!cli) { > unsigned plan = Q931::ISDNPlan, type = > Q931::InternationalType; > unsigned presentation = (unsigned)-1, screening = > (unsigned)-1; > if (q931.HasIE(Q931::CallingPartyNumberIE)) { > PString dummy; > q931.GetCallingPartyNumber(dummy, &plan, &type, > &presentation, &screening, (unsigned)-1, (unsigned)-1); > } > q931.SetCallingPartyNumber(cli, plan, type, presentation, screening); > } > > All seems to be OK but in my case field "CallingPartyNumberIE" does not > exist and > there is no way to change anything in these old terminals. > > Is there a way to set "CallingPartyNumber" and where is the right place > to do this? > > Any hints will be welcome > > Thanks in advance -- Krassimir Slavchev Bulinfo Ltd. kr...@bu... (+359 2) 969-9160 http://www.bulinfo.net (+359 2) 969-9166 |