[Asterisk-Users] How to make write and read formats equal to native format?

Branko Samardzic branko_samardzic at rogers.com
Mon Nov 7 21:51:34 MST 2005


I am playing around with different codecs between 2 * servers. However I
don't seem to have any impact on bandwith.
I always get something like this:


           Name: IAX2/ds02-1
           Type: IAX2
       UniqueID: 1131421484.2
      Caller ID: s
 Caller ID Name: (N/A)
    DNID Digits: (N/A)
          State: Up (6)
          Rings: 0
   NativeFormat: 2
    WriteFormat: 64
     ReadFormat: 64
1st File Descriptor: -1
      Frames in: 182
     Frames out: 468
 Time to Hangup: 0
   Elapsed Time: N/A
  Direct Bridge: Zap/1-1
Indirect Bridge: Zap/1-1
 --   PBX   --
        Context: foo
      Extension: s
       Priority: 1
     Call Group: 0
   Pickup Group: 0
    Application: Bridged Call
           Data: Zap/1-1
    Blocking in: ast_waitfor_nandfds
      Variables:
BRIDGEPEER=Zap/1-1
DIALEDPEERNUMBER=ds02/95

Native format represents what I've chosen for codec of preference. However,
data exchange is done with Read/Write Format 64 (16 bit Signed Linear PCM).


Any idea on how to enforce native format into read and write streams?

Any help appreciated.

Regards,
B.




More information about the asterisk-users mailing list