Actions

CAF: Leg Creation Samples: Difference between revisions

(Created page with '==== Creating a Standalone Outgoing Call ==== TODO ADD SAMPLE CODE ==== Bridging an Incoming Call (manual method)==== TODO ADD SAMPLE CODE ==== Bridging an Incoming Call (usi…')
 
Line 1: Line 1:
==== Creating a Standalone Outgoing Call ====
==== Creating a Standalone Outgoing Call ====
   TODO ADD SAMPLE CODE
First you must build the outgoing leg attribute:
    PTRCTBCMC_CALL_LEG_ATTRIBUTE ptrOutgoingLegAttribute;
    
    ptrOutgoingLegAttribute = tbnew CTBCMC_CALL_LEG_ATTRIBUTE();
 
    ptrOutgoingLegAttribute->GetCalledNumber()            = "123-4567";
    ptrOutgoingLegAttribute->GetCallingNumber()          = "987-6543";
    ptrOutgoingLegAttribute->GetNetworkAccessPoint()      = "NAP_SS7_MONTREAL";
 
Once you have all your parameters set, you can now create the outgoing leg like this:
 
    PTRCTBCAFCallLeg ptrOutgoingCallLeg = CreateOutgoingCallLeg(ptrOutgoingLegAttribute);
 
The function CreateOutgoingCallLeg() will do all the work to create the leg. You have now an active outgoing call leg.
 
==== Bridging an Incoming Call (manual method)====
==== Bridging an Incoming Call (manual method)====
   TODO ADD SAMPLE CODE
   TODO ADD SAMPLE CODE

Revision as of 17:27, 20 October 2009

Creating a Standalone Outgoing Call

First you must build the outgoing leg attribute:

   PTRCTBCMC_CALL_LEG_ATTRIBUTE ptrOutgoingLegAttribute;
 
   ptrOutgoingLegAttribute = tbnew CTBCMC_CALL_LEG_ATTRIBUTE();
 
   ptrOutgoingLegAttribute->GetCalledNumber()            = "123-4567";
   ptrOutgoingLegAttribute->GetCallingNumber()           = "987-6543";
   ptrOutgoingLegAttribute->GetNetworkAccessPoint()      = "NAP_SS7_MONTREAL";

Once you have all your parameters set, you can now create the outgoing leg like this:

   PTRCTBCAFCallLeg ptrOutgoingCallLeg = CreateOutgoingCallLeg(ptrOutgoingLegAttribute);

The function CreateOutgoingCallLeg() will do all the work to create the leg. You have now an active outgoing call leg.

Bridging an Incoming Call (manual method)

 TODO ADD SAMPLE CODE

Bridging an Incoming Call (using CTBCAFBridge )

 TODO ADD SAMPLE CODE

Creating a Media-only Leg