[Openh323gk-users] Rewrite some numbers from code...

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

 



Hello..
 
I hope that somebody can help me...
 
I need a way of redirecting a call based on some dinamic rewriting..
 
Basicly , my question is:
 
in RasSrv.cxx  , where can I modify the dialed number ?
 
For instance:
 
Customer dials 110#019999.      I want to redirect the number to 019999  , but also to keep 110 somewhere  (it's sort of client's PIN number).
And when I make some accounting to use that pin..
 
 
There is a line in RasSrv.cxx:
    CallRec *pCallRec = new CallRec(obj_arq.m_callIdentifier, obj_arq.m_conferenceID, destinationInfoString, AsString(obj_arq.m_srcInfo), BWRequest, GKRoutedH245);
 
well , I tried to modify the destinationInfoString , but it still dials the old number  (not the new string)..
 
 
 
My ideea is this:
 
    1.  customer dials 110#019999
    2.  in RasSrv I rewrite  the number , making it do dial "019999"
    3. by adding a new variable to CallRec , I store the PIN number (110)
    4. on radacct.cxx , using the stored pin in CallRec , I make the accounting ....
 
 
 
 
            Thanks a lot...
 
                                                Alex


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

  Powered by Linux