[asterisk-users] Chan_h323 isn`t dropping calls comming with wrong codecs

Andre Luiz Martins Rodrigues andreluizmar at gmail.com
Thu Feb 21 21:07:15 CST 2008


I` using chan_h323 on my asterisk-1.4 to receive incomings calls. I need 
to set just two codecs to receive this call (g723 and g729), but I`m using

disallow=all
allow=g729
allow=g723.1

In h323.conf, but when I received a call using codec g711 for example, 
the call is answered, but doesn`t have audio. I made a test today using just

disallow=all

In h323.conf, but the call was answered too!!

the log of this test:


[Feb 21 23:44:56] DEBUG[4264]: chan_h323.c:2112 setup_incoming_call: 
Setting up incoming call for ip$189.0.24.69:4020/28391
    -- Setting up Call
    --  CLI>    Call token:  [ip$189.0.24.69:4020/28391]
    --  CLI>    Calling party name:  [200]
    --  CLI>    Calling party number:  [200]
    --  CLI>    Called party name:  [30144588]
    --  CLI>    Called party number:  [30144588]
    --  CLI>    Calling party IP:  [189.0.24.69]
[Feb 21 23:44:56] DEBUG[4264]: chan_h323.c:1611 find_user: Could not 
find user by name 200 or address 189.0.24.69
[Feb 21 23:44:56] DEBUG[4264]: chan_h323.c:2177 setup_incoming_call: 
Sending 200 at 189.0.24.69 to context [ss7] extension 30144588
[Feb 21 23:44:56] DEBUG[4264]: chan_h323.c:2478 set_local_capabilities: 
Setting capabilities for connection ip$189.0.24.69:4020/28391
Setting capabilities to 0x0 (nothing)
Capabilities in preference order is ()
DTMF mode is 1
Allowed Codecs for ip$189.0.24.69:4020/28391 
(ip$201.7.99.242:1720):                                                                        
 

 Zap/33-1 answered H323/ip$189.0.24.69:4020/28391
[Feb 21 23:44:57] DEBUG[4264]: chan_h323.c:666 oh323_answer: Answering 
on H323/ip$189.0.24.69:4020/28391
        Answering call 
ip$189.0.24.69:4020/28391                                                                                            
 

Receiving RFC2833 on payload 101
Peer capability is G.711-uLaw-64k <1>
Found peer capability G.711-uLaw-64k <1>, Asterisk code is 4, frame size 
(in ms) is 20
Peer capability is G.711-ALaw-64k <2>
Found peer capability G.711-ALaw-64k <2>, Asterisk code is 8, frame size 
(in ms) is 20
Peer capabilities = 0xc (ulaw|alaw), ordered list is (ulaw|alaw)
[Feb 21 23:44:57] DEBUG[4264]: chan_h323.c:2448 set_peer_capabilities: 
Got remote capabilities from connection ip$189.0.24.69:4020/28391
[Feb 21 23:44:57] DEBUG[4264]: chan_h323.c:2462 set_peer_capabilities: 
prefs[0]=ulaw:20
[Feb 21 23:44:57] DEBUG[4264]: chan_h323.c:2462 set_peer_capabilities: 
prefs[1]=alaw:20
=-= In OnConnectionEstablished for call 28391
    -- Connection Established with "200 [189.0.24.69]"
[Feb 21 23:44:57] DEBUG[4264]: chan_h323.c:2055 connection_made: Call 
ip$189.0.24.69:4020/28391 answered                                     


Some one knows why isn`t asterisk droping the call?

Andre Luiz Martins




More information about the asterisk-users mailing list