SANGOMA

Wanpipe Linux HDLC API Support

 


Configuration 

 

1) Run Wancfg 

2) Select - "Create a new Configuration File" then "Select from detected cards list"

3) Configure the protocol to HDLC Streaming 

4) Go into "Interface Setup" and change the operation mode to "API"

5) Exit and Save changes 

6) Start the wanpipe drivers "wanrouter start"  

 


 

Using the API 

1) Go to "/etc/wanpipe/api/aft/" 

2) You will see some samples in this directory.

 


 

Contents of the API Package

        aft_api.c :         Client application that sends and receives data.

                                        Eg: Enable Rx and Tx:  Tx 10 frames 100 bytes

                                                    aft_api -i wp1aft -c wanpipe1 -r -w -txsize 100 -txcnt 10 -verbose

                                        Eg: Rx Only

                                                    aft_api -i wp1aft -c wanpipe1 -r -verbose


 

Legend
                           
                                wp1aft: is a network interface specified in
                                    wanpipe config file.
                                    (Change to reflect your configuration)

                                wanpipe1: is the sangoma adapter card specified
                                  in wanpipe config file.
                                  (Change to reflect your configuration)

  

 

Site

Changes
Index
Search

 

User

 

Log In
Register

 
 

Last Modified 4/18/08 11:07 AM