Is it poosible somehow do the subject except in RasSrv::RewriteE164 section? If I do it in the GWRewriteE164 section: [RasSrv::Neighbors] GK-GOBLIN=GnuGK [Neighbor::GK-GOBLIN] Host=x.x.x.x:1719 SendPrefixes=7 [RasSrv::GWRewriteE164] GK-GOBLIN=out=7=XXXXXX#7 Rewriting correct only in the LRQ request, but incorrect in the session with forwarded GW --------------------------------------------- 2004/12/15 16:20:48.504 5 Routing.h(148) ROUTING Checking policy Neighbor for request Setup CRV=19890 2004/12/15 16:20:48.504 2 Toolkit.cxx(378) GWRewriteTool::RewritePString: 70951013527 to XXXXXX#70951013527 2004/12/15 16:20:48.504 3 RasSrv.cxx(203) RAS Send to XXX.XXX.XXX.10:1719 locationRequest { requestSeqNum = 28 destinationInfo = 1 entries { [0]=dialedDigits "XXXXXX#70951013527" } --------------- 2004/12/15 16:20:48.574 4 RasSrv.cxx(183) RAS Receiving on XXX.XXX.XXX.163:1719(U) 2004/12/15 16:20:48.574 2 RasSrv.cxx(152) RAS Read from XXX.XXX.XXX.10:1719 2004/12/15 16:20:48.574 3 RasSrv.cxx(191) RAS locationConfirm { requestSeqNum = 28 callSignalAddress = ipAddress { ip = 4 octets { XX XX XX a4 .... } port = 1720 } .... destinationInfo = 1 entries { [0]=dialedDigits "XXXXXX#70951013527" } ..... 2004/12/15 16:20:48.574 2 RasSrv.cxx(1222) RAS Trapped LCF 2004/12/15 16:20:48.574 5 Neighbor.cxx(594) NB Received LCF message matched pending LRQ for neighbor GK-GOBLIN:XXX.XXX.XXX.10 2004/12/15 16:20:48.574 5 Routing.h(154) ROUTING Policy Neighbor applied to the request Setup CRV=19890 2004/12/15 16:20:48.574 2 RasTbl.cxx(1855) CallTable::Insert(CALL) Call No. 5, total sessions : 1 ----------------------------- 2004/12/15 16:20:48.625 5 ProxyChannel.cxx(634) Q931 Send to XXX.XXX.XXX.164:1720 { q931pdu = { protocolDiscriminator = 8 callReference = 19890 from = originator messageType = Setup IE: Bearer-Capability = { 80 91 a3 ... } IE: Display = { 34 46 58 53 4FXS } IE: Calling-Party-Number = { a1 32 33 38 36 30 32 37 .2386027 } IE: Called-Party-Number = { 81 37 30 39 35 31 30 31 33 35 32 37 .70951013527 ---- Andrew __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________________ List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549 Homepage: http://www.gnugk.org/