Re: SQL Query for [RasSrv::GWRewriteE164]

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

 



Try to check log level 6 after reload to check
what order rules are sorted in. When a rewrite
engine finds a match, it tries all rules in that order.

At the first glance, the rules look fine.
Maybe there is something wrong with sorting.

----- Original Message ----- 
From: "Edson" <4lists@xxxxxxxxx>
Sent: Thursday, November 01, 2007 8:53 PM


> Hi, again... :(
>
> Indeed it loaded without errors, but didn't work the way that it should. 
> So
> let me explain the scenario: calls comes from GK1 and CLI must follow:
> 1) CLI=61.. should be changed to 999222261..;
> 2) CLI=any should prefix with 999, 'cose it's already a PSTN number.
>
> For this, in text rules I would make:
> [RewriteCLI]
> %r1% in:X.X.X.X=cli:61=999222261
> %r2% in:X.X.X.X=cli:*=999
>
> But how to program this using SQLConfig? How to declare/populate the
> configuration table? I already try Michal's sugestion, just ignoring the 
> %%
> trick. This is the query return:
>
> RewriteCLI | in:X.X.X.X|cli:6*=99922226
> RewriteCLI | in:X.X.X.X|cli:any*=999
>
> But even not giving errors on load, it didn't work. It seams that the 
> first
> line is completly ignored. Any call from GK1, phone 6105 is presented with
> CLI 9996105 on the destination. It should be 99922226105
>
> Any ideas?
>
> Edson


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________________

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