[chan-capi-users] capicommand chat

Jens Vagelpohl jens at dataflake.org
Sun Mar 23 11:46:37 CET 2008


On Mar 22, 2008, at 21:09 , Armin Schindler wrote:
>> Any help appreciated :-)
>
> This is strange. You specify controller 1, but the channel request is
> done for 0x21.
>
>> Controller/PLCI/NCCI            = 0x21
>
> Please use current SVN trunk and create a log with
>   set verbose 5
>   capi debug

Here you go. I'm also pasting my capi.conf.

--------------------------------------------------------
[general]
language=de
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

; interface sections ...

[ISDN1]          ;this example interface gets name 'ISDN1' and may be  
any
                  ;name not starting with 'g' or 'contr'.
;ntmode=yes      ;if isdn card operates in nt mode, set this to yes
isdnmode=msn     ;'MSN' (point-to-multipoint) or 'DID' (direct inward  
dial)
                  ;when using NT-mode, 'DID' should be set in any case
incomingmsn=*    ;allow incoming calls to this list of MSNs/DIDs, * =  
any
;defaultcid=123  ;set a default caller id to that interface for dial- 
out,
                  ;this caller id will be used when dial option 'd' is  
set.
;controller=0    ;ISDN4BSD default
;controller=7    ;ISDN4BSD USB default
controller=1     ;capi controller number to use
group=1          ;dialout group
;prefix=0        ;set a prefix to calling number on incoming calls
softdtmf=on      ;enable/disable software dtmf detection, recommended  
for AVM cards
relaxdtmf=on     ;in addition to softdtmf, you can use relaxed dtmf  
detection
accountcode=     ;Asterisk accountcode to use in CDRs
context=capi-in  ;context for incoming calls
holdtype=hold    ;when Asterisk puts the call on hold, ISDN HOLD will  
be used. If
                  ;set to 'local' (default value), no hold is done and  
Asterisk may
                  ;play MOH.
;immediate=yes   ;DID: immediate start of pbx with extension 's' if no  
digits were
                  ;     received on incoming call (no destination  
number yet)
                  ;MSN: start pbx on CONNECT_IND and don't wait for  
SETUP/SENDING-COMPLETE.
                  ;     info like REDIRECTINGNUMBER may be lost, but  
this is necessary for
                  ;     drivers/pbx/telco which does not send SETUP or  
SENDING-COMPLETE.
;echosquelch=1   ;_VERY_PRIMITIVE_ echo suppression
echocancel=yes  ;EICON DIVA SERVER (CAPI) echo cancelation
                  ;(possible values: 'no', 'yes', 'force', 'g164',  
'g165')
;echocancelold=yes;use facility selector 6 instead of correct 8  
(necessary for older eicon drivers)
;echotail=64     ;echo cancel tail setting
;bridge=yes      ;native bridging (CAPI line interconnect) if available
;callgroup=1     ;Asterisk call group
devices=2        ;number of concurrent calls on this controller
                  ;(2 makes sense for single BRI, 30 for PRI)

------------------------------------------------------------------------


fon*CLI> set verbose 5
Verbosity was 10 and is now 5
The 'set verbose' command is deprecated and will be removed in a  
future release. Please use 'core set verbose' instead.
fon*CLI> capi debug
CAPI Message Debugging Enabled
     -- Registered IAX2 'jens' (AUTHENTICATED) at 192.168.168.10:4569
     -- Accepting AUTHENTICATED call from 192.168.168.10:
        > requested format = ulaw,
        > requested prefs = (),
        > actual format = ulaw,
        > host prefs = (ulaw|gsm),
        > priority = mine
     -- Executing [2015 at privileged:1] capicommand("IAX2/jens-3", "chat| 
meeting||1") in new stack
     -- capicommand: 'chat' 'meeting||1'
     -- capi chat: IAX2/jens-3: roomname=meeting options= controller=1  
(0x1)
        > capi_mknullif: find controller for mask 0x1
CONNECT_REQ                ID=002 #0x0005 LEN=0044
   Controller/PLCI/NCCI            = 0x1
   CIPValue                        = 0x0
   CalledPartyNumber               = default
   CallingPartyNumber              = default
   CalledPartySubaddress           = default
   CallingPartySubaddress          = default
   BProtocol
    B1protocol                     = 0x1
    B2protocol                     = 0x1
    B3protocol                     = 0x0
    B1configuration                = default
    B2configuration                = default
    B3configuration                = default
    GlobalConfiguration            = default
   BC                              = default
   LLC                             = default
   HLC                             = default
   AdditionalInfo
    BChannelinformation            = <03 00 00 00 00 00 00>
    Keypadfacility                 = default
    Useruserdata                   = default
    Facilitydataarray              = default
    SendingComplete                = default

        > IAX2/jens-3-NULLPLCI: created null-interface on controller 1.
IAX2/jens-3-NULLPLCI: wait for b3 up.
CAPI: ApplId=0x0002 Command=0x02 SubCommand=0x81 MsgNum=0x0005  
NCCI=0x00000201
CONNECT_CONF               ID=002 #0x0005 LEN=0014
   Controller/PLCI/NCCI            = 0x201
   Info                            = 0x0

     -- IAX2/jens-3-NULLPLCI: received CONNECT_CONF PLCI = 0x201
CAPI: ApplId=0x0002 Command=0x08 SubCommand=0x82 MsgNum=0x0000  
NCCI=0x00000201
INFO_IND                   ID=002 #0x0000 LEN=0015
   Controller/PLCI/NCCI            = 0x201
   InfoNumber                      = 0x8007
   InfoElement                     = default

INFO_RESP                  ID=002 #0x0000 LEN=0012
   Controller/PLCI/NCCI            = 0x201

     -- IAX2/jens-3-NULLPLCI: info element CONNECT
CAPI: ApplId=0x0002 Command=0x03 SubCommand=0x82 MsgNum=0x0002  
NCCI=0x00000201
CONNECT_ACTIVE_IND         ID=002 #0x0002 LEN=0015
   Controller/PLCI/NCCI            = 0x201
   ConnectedNumber                 = default
   ConnectedSubaddress             = default
   LLC                             = default

CONNECT_ACTIVE_RESP        ID=002 #0x0002 LEN=0012
   Controller/PLCI/NCCI            = 0x201

FACILITY_REQ               ID=002 #0x0006 LEN=0023
   Controller/PLCI/NCCI            = 0x201
   FacilitySelector                = 0x5
   FacilityRequestParameter        = <01 00 05 0c 00 00 00 00>

CONNECT_B3_REQ             ID=002 #0x0007 LEN=0013
   Controller/PLCI/NCCI            = 0x201
   NCPI                            = default

     -- IAX2/jens-3-NULLPLCI: sent CONNECT_B3_REQ PLCI=0x201
CAPI: ApplId=0x0002 Command=0x80 SubCommand=0x81 MsgNum=0x0006  
NCCI=0x00000201
FACILITY_CONF              ID=002 #0x0006 LEN=0023
   Controller/PLCI/NCCI            = 0x201
   Info                            = 0x0
   FacilitySelector                = 0x5
   FacilityConfirmationParameter   = <01 00 03 00 00 00>

CAPI: ApplId=0x0002 Command=0x82 SubCommand=0x81 MsgNum=0x0007  
NCCI=0x000d0201
CONNECT_B3_CONF            ID=002 #0x0007 LEN=0014
   Controller/PLCI/NCCI            = 0xd0201
   Info                            = 0x0

CAPI: ApplId=0x0002 Command=0x83 SubCommand=0x82 MsgNum=0x0003  
NCCI=0x000d0201
CONNECT_B3_ACTIVE_IND      ID=002 #0x0003 LEN=0013
   Controller/PLCI/NCCI            = 0xd0201
   NCPI                            = default

CONNECT_B3_ACTIVE_RESP     ID=002 #0x0003 LEN=0012
   Controller/PLCI/NCCI            = 0xd0201

     -- chan_capi queue frame: [ TYPE: Control (4) SUBCLASS: Answer  
(4) ] [IAX2/jens-3-NULLPLCI]
IAX2/jens-3-NULLPLCI: found and signal for b3 up state.
IAX2/jens-3-NULLPLCI: cond signal received for b3 up.
     -- IAX2/jens-3-NULLPLCI: added new chat member to room  
'meeting' (1)
     -- Executing [2015 at privileged:1] capicommand("SIP/s75-09bd9ce0",  
"chat|meeting||1") in new stack
     -- capicommand: 'chat' 'meeting||1'
     -- capi chat: SIP/s75-09bd9ce0: roomname=meeting options=  
controller=1 (0x1)
        > capi_mknullif: find controller for mask 0x1
CONNECT_REQ                ID=002 #0x023b LEN=0044
   Controller/PLCI/NCCI            = 0x21
   CIPValue                        = 0x0
   CalledPartyNumber               = default
   CallingPartyNumber              = default
   CalledPartySubaddress           = default
   CallingPartySubaddress          = default
   BProtocol
    B1protocol                     = 0x1
    B2protocol                     = 0x1
    B3protocol                     = 0x0
    B1configuration                = default
    B2configuration                = default
    B3configuration                = default
    GlobalConfiguration            = default
   BC                              = default
   LLC                             = default
   HLC                             = default
   AdditionalInfo
    BChannelinformation            = <03 00 00 00 00 00 00>
    Keypadfacility                 = default
    Useruserdata                   = default
    Facilitydataarray              = default
    SendingComplete                = default

[Mar 23 11:41:43] ERROR[24086]: chan_capi_utils.c:321  
log_capi_error_message: CAPI error sending CONNECT_REQ                 
ID=002 #0x023b LEN=0044
   Controller/PLCI/NCCI            = 0x21
   CIPValue                        = 0x0
   CalledPartyNumber               = default
   CallingPartyNumber              = default
   CalledPartySubaddress           = default
   CallingPartySubaddress          = default
   BProtocol
    B1protocol                     = 0x1
    B2protocol                     = 0x1
    B3protocol                     = 0x0
    B1configuration                = default
    B2configuration                = default
    B3configuration                = default
    GlobalConfiguration            = default
   BC                              = default
   LLC                             = default
   HLC                             = default
   AdditionalInfo
    BChannelinformation            = <03 00 00 00 00 00 00>
    Keypadfacility                 = default
    Useruserdata                   = default
    Facilitydataarray              = default
    SendingComplete                = default
  (NCCI=0x21) (error=0x1108 OS Resource error (no memory ?))
        > SIP/s75-09bd9ce0-NULLPLCI: created null-interface on  
controller 33.
SIP/s75-09bd9ce0-NULLPLCI: wait for b3 up.
[Mar 23 11:41:45] WARNING[24086]: chan_capi.c:296 capi_wait_for_b3_up:  
SIP/s75-09bd9ce0-NULLPLCI: timed out waiting for b3 up.
        > SIP/s75-09bd9ce0-NULLPLCI: removed null-interface from  
controller 33.
     -- Executing [2015 at privileged:2] Hangup("SIP/s75-09bd9ce0", "")  
in new stack
   == Spawn extension (privileged, 2015, 2) exited non-zero on 'SIP/ 
s75-09bd9ce0'
     -- IAX2/jens-3-NULLPLCI: chat: no frame, hangup.
     -- IAX2/jens-3-NULLPLCI: removed chat member from room  
'meeting' (1)
     -- IAX2/jens-3-NULLPLCI: activehangingup (cause=0) for PLCI=0x201
DISCONNECT_B3_REQ          ID=002 #0x0422 LEN=0013
   Controller/PLCI/NCCI            = 0xd0201
   NCPI                            = default

     -- Hungup 'IAX2/jens-3'
CAPI: ApplId=0x0002 Command=0x84 SubCommand=0x81 MsgNum=0x0422  
NCCI=0x000d0201
DISCONNECT_B3_CONF         ID=002 #0x0422 LEN=0014
   Controller/PLCI/NCCI            = 0xd0201
   Info                            = 0x0

CAPI: ApplId=0x0002 Command=0x84 SubCommand=0x82 MsgNum=0x0421  
NCCI=0x000d0201
DISCONNECT_B3_IND          ID=002 #0x0421 LEN=0015
   Controller/PLCI/NCCI            = 0xd0201
   Reason_B3                       = 0x0
   NCPI                            = default

DISCONNECT_B3_RESP         ID=002 #0x0421 LEN=0012
   Controller/PLCI/NCCI            = 0xd0201

DISCONNECT_REQ             ID=002 #0x0423 LEN=0013
   Controller/PLCI/NCCI            = 0x201
   AdditionalInfo                  = default

CAPI: ApplId=0x0002 Command=0x04 SubCommand=0x81 MsgNum=0x0423  
NCCI=0x00000201
DISCONNECT_CONF            ID=002 #0x0423 LEN=0014
   Controller/PLCI/NCCI            = 0x201
   Info                            = 0x0

CAPI: ApplId=0x0002 Command=0x04 SubCommand=0x82 MsgNum=0x0423  
NCCI=0x00000201
DISCONNECT_IND             ID=002 #0x0423 LEN=0014
   Controller/PLCI/NCCI            = 0x201
   Reason                          = 0x3303

DISCONNECT_RESP            ID=002 #0x0423 LEN=0012
   Controller/PLCI/NCCI            = 0x201

        > IAX2/jens-3-NULLPLCI: CAPI INFO 0x3303: Protocol error layer 3
   == IAX2/jens-3-NULLPLCI: Interface cleanup PLCI=0x201
        > IAX2/jens-3-NULLPLCI: set interface task to 1
        > IAX2/jens-3-NULLPLCI: removed null-interface from controller  
1.
fon*CLI>





More information about the Chan-capi-users mailing list