Re: Returned causeCode

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

 



Sorry ..
As I understood DRQ does not carry any H225 cause Code and the Code is reported by endpoints .
But how do  an Openh323  endpoint reacts by reciving each of e_forcedDrop, e_normalDrop, e_undefinedReason ?
and is SendReleaseComplete used when calls are NATed ?
Am I totaly wrong ?! ;)


On 2/12/07, Amir Hossein Shenavandeh < shenavandeh@xxxxxxxxx> wrote:
Hi ..
I've got questions in changing the Code !
The functions which I believe should be changed are these except the functions in GKStatus and SoftPBX files:

In CallRec::SendReleaseComplete(const H225_CallTerminationCause *cause),  the cause has
default value of 0 and does not needs any changes. It can be used as it is.


void CallRec::Disconnect(bool force)                                           
{                                                                              
        if ((force || Toolkit::AsBool(GkConfig()->GetString(RoutedSec, "DropCall
             SendReleaseComplete();   ////  <<--- The cause code can be passed hear easily.                               
        else                                                                   
             SendDRQ();// << ---- This function does not accept any parameter so it needs Help                                              
                                                                               
        PTRACE(2, "Gk\tDisconnect Call No. " << m_CallNumber);                 
}                                                                              
 


void CallRec::SendDRQ()                                                        
{                                                                              
        RasServer *RasSrv = RasServer::Instance();                             
        H225_RasMessage drq_ras;                                               
        drq_ras.SetTag(H225_RasMessage::e_disengageRequest);                   
        H225_DisengageRequest & drq = drq_ras;                                 
        drq.m_requestSeqNum = RasSrv->GetRequestSeqNum();                      
        BuildDRQ(drq, H225_DisengageReason::e_forcedDrop);  //<<- This is where The DRQ is generated .But Only the disengage reason is definable.
        drq.IncludeOptionalField(H225_DisengageRequest::e_gatekeeperIdentifier);
        drq.m_gatekeeperIdentifier = Toolkit::GKName();                        
                                                                               
        // FIXME: for an outer zone endpoint, the endpoint identifier may not co
        if (m_Called) {                                                        
                drq.m_endpointIdentifier = m_Called->GetEndpointIdentifier();  
                RasSrv->SendRas(drq_ras, m_Called->GetRasAddress());           
        }                                                                      
        if (m_Calling) {                                                       
                drq.m_endpointIdentifier = m_Calling->GetEndpointIdentifier(); 
                drq.m_callReferenceValue = m_crv;                              
                RasSrv->SendRas(drq_ras, m_Calling->GetRasAddress());          
        }                                                                      
}      


I have added some comments to some lines on the above code . My question is .. How Should I specify the H225 cause  ,If it is needed to generate a DRQ .The only defined(Enumerated) values for Disengage Reasons are e_forcedDrop, e_normalDrop, e_undefinedReason .
 
I would be really appreciated  if someone helps.

B Regards,




On 2/9/07, Zygmuntowicz Michal < m.zygmuntowicz@xxxxxxx> wrote:
Other idea is to add an optional parameter to the disconnect
status command to set release cause prior (or as a parameter)
to the CallRec::Disconnect function.

----- Original Message -----
From: "Jan Willamowius" < jan@xxxxxxxxxxxxxx >
Sent: Thursday, February 08, 2007 9:24 PM


> GnuGk 2.2.6 CVS has a feature where you can change the mapping between
> H.225 reasons and Q.931 codes used by GnuGk when generating messages
> (it doesn't affect forwarded messages).
>
> Get the latest manual from the CVS and search for "H225toQ931" and let
> us know if helps.
>
> Regards,
> Jan
>
> Amir Hossein Shenavandeh wrote:
>> Hi ...
>> Is there a way to redefine the returned causecodes ? I want terminated a
>> call by disconnectcall in status port,
>> and return  my desired causecode for instance .
>> Do I have to change the GnuGk source ? or Is there a feature implemented
>> in
>> GnuGk for redefining  returned causeCode ?
>>
>> Thanks for the great active forums ,
>
>
> --
> Jan Willamowius, jan@xxxxxxxxxxxxxx , http://www.gnugk.org/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________________

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


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549
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