Opened channel when starting asterisk

Hello,

When I start asterisk, there are directly 2 channels opened:
*CLI> sip show channels
Peer User/ANR Call ID Format Hold Last Message Expiry
204.11.192.34 177729XXXX 2d09c12e194c809 0x0 (nothing) No
212.27.52.5 095060XXXX 1ea829b4525179d 0x0 (nothing) No
2 active SIP dialogs

after few time I just have :
*CLI> sip show channels
Peer User/ANR Call ID Format Hold Last Message Expiry
204.11.192.23 1777296266 2d09c12e194c809 0x0 (nothing) No
1 active SIP dialog

I’m using asterisk-trunk from yesterday (an older trunk had the same problem, I upgraded and the problem still exists).

Here are some parts of my configuration files:

In extension.conf I have :

callcentric=SIP/callcentric-out 
 ... 
 exten => _7.,1,Dial(SIP/callcentric-out/00${EXTEN:1}); 
 exten => _7.,n,Hangup() 
 
 [from-callcentric] 
 exten => s,1,Dial(SIP/1000) 
 exten => s,n,Hangup() 

in sip.conf, I have 2 sip acount:

[code]
[geral]

context=default

register => XXXXXXX:XYXYXYXY@freephonie.net

context=from-callcentric
register => YYYYY:XXXXX@callcentric.com

[callcentric-out]
type=peer
context=from-callcentric
host=callcentric.com
username=17772962667
secret=XXXX
fromuser=17772962667
fromdomain=callcentric.com
insecure=very
nat=yes
[/code][/code]

What kind of phones you are using. I heard that Snom phones can cause this though they are not much to worry about.

I have a linksys PAP2T but it looks like it’s a channel between me and 2 of my SIP provider, not my local PAP2T

Okay, if I look at channels now! My PAP2T is there : 192.168.2.205
204.11.192.23 is from callcentric.

sip show channels
Peer             User/ANR    Call ID      Seq (Tx/Rx)  Format           Hold     Last Message
204.11.192.23    1777296266  0c2d8bde3c0  00312/00000  0x0 (nothing)    No
192.168.2.205    (None)      a9fdacb2-81  00101/44781  0x0 (nothing)    No       Rx: REGISTER

Well, I switched to asterisk 1.4 and inbound call works well even when “ghost” channels are already open but it fails with asterisk trunk. Is asterisk trunk still in 1.6 branch or even more unstable?

I’d like to use 1.6 because I’d like to test chan_mobile soon again and now the chan_mobile patch does not work anymore with asterisk 1.4, asterisk 1.6 is needed for that channel type.