by mr_mcs » Fri Oct 01, 2010 1:48 am
Thanks williamconley.
Asterisk 1.4.27.1-vici
vicidial VERSION: 2.4-264 BUILD: 100720-1332
I run it with nat=no but problem not solve, i also installed dahdi (sangoma analog FXO ) its too not receiving calls,
here is some new conf & status
extension.conf
[sipcalls]
exten => s,1,Noop(in s)
exten => s,2,echo()
exten => s,3,hangup
exten => 999,1,Noop(In ext 999)
exten => 999,2,Answer
exten => 999,3,wait(1)
exten => 999,4,Hangup
sip-vicidial.conf
[cc101]
username=cc101
secret=test
accountcode=cc101
callerid="cc101" <101>
mailbox=101
context=default
type=friend
host=dynamic
nat=no
sip result
======
[Oct 1 11:34:52] NOTICE[3519]: chan_sip.c:15147 handle_request_invite: Call from 'cc101' to extension '999' rejected because extension not found.
Dahdi result (2FSX-2FXO)
=====================
[Oct 1 11:35:25] -- Starting simple switch on 'DAHDI/4-1'
[Oct 1 11:35:25] == Starting DAHDI/4-1 at sipcalls,s,1 failed so falling back to exten 's'
[Oct 1 11:35:25] == Starting DAHDI/4-1 at sipcalls,s,1 still failed so falling back to context 'default'
[Oct 1 11:35:25] WARNING[5419]: pbx.c:2456 __ast_pbx_run: Channel 'DAHDI/4-1' sent into invalid extension 's' in context 'default', but no invalid handler
[Oct 1 11:35:25] -- Hungup 'DAHDI/4-1'
[Oct 1 11:35:30] -- Starting simple switch on 'DAHDI/4-1'
[Oct 1 11:35:33] NOTICE[5431]: chan_dahdi.c:6846 ss_thread: Got event 18 (Ring Begin)...
[Oct 1 11:35:35] NOTICE[5431]: chan_dahdi.c:6846 ss_thread: Got event 2 (Ring/Answered)...
[Oct 1 11:35:35] == Starting DAHDI/4-1 at sipcalls,s,1 failed so falling back to exten 's'
[Oct 1 11:35:35] == Starting DAHDI/4-1 at sipcalls,s,1 still failed so falling back to context 'default'
[Oct 1 11:35:35] WARNING[5431]: pbx.c:2456 __ast_pbx_run: Channel 'DAHDI/4-1' sent into invalid extension 's' in context 'default', but no invalid handler
[Oct 1 11:35:35] -- Hungup 'DAHDI/4-1'
sip debug
=========
ccserver*CLI>
ccserver*CLI>
[Oct 1 11:47:43]
<--- SIP read from 192.168.0.164:60396 --->
INVITE sip:999@192.168.0.40 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.164:60396;branch=z9hG4bK-d8754z-cd0058527d14537a-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:cc101@192.168.0.164:60396>
To: "999"<sip:999@192.168.0.40>
From: "ccagent1"<sip:cc101@192.168.0.40>;tag=d9508f44
Call-ID: MWU1YTQ3MmVkZmUzNDAxYTVlMjA3NjFlMmJlMzlmNTE.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
User-Agent: X-Lite release 1104o stamp 56125
Content-Length: 267
v=0
o=- 9 2 IN IP4 192.168.0.164
s=CounterPath X-Lite 3.0
c=IN IP4 192.168.0.164
t=0 0
m=audio 40970 RTP/AVP 107 0 8 101
a=alt:1 1 : +G6JQkK8 irWgG9sR 192.168.0.164 40970
a=fmtp:101 0-15
a=rtpmap:107 BV32/16000
a=rtpmap:101 telephone-event/8000
a=sendrecv
<------------->
[Oct 1 11:47:43] --- (12 headers 11 lines) ---
[Oct 1 11:47:43] Sending to 192.168.0.164 : 60396 (NAT)
[Oct 1 11:47:43] Using INVITE request as basis request - MWU1YTQ3MmVkZmUzNDAxYTVlMjA3NjFlMmJlMzlmNTE.
[Oct 1 11:47:43]
<--- Reliably Transmitting (no NAT) to 192.168.0.164:60396 --->
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.0.164:60396;branch=z9hG4bK-d8754z-cd0058527d14537a-1---d8754z-;received=192.168.0.164;rport=60396
From: "ccagent1"<sip:cc101@192.168.0.40>;tag=d9508f44
To: "999"<sip:999@192.168.0.40>;tag=as0c890e28
Call-ID: MWU1YTQ3MmVkZmUzNDAxYTVlMjA3NjFlMmJlMzlmNTE.
CSeq: 1 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="655880d0"
Content-Length: 0
<------------>
[Oct 1 11:47:43] Scheduling destruction of SIP dialog 'MWU1YTQ3MmVkZmUzNDAxYTVlMjA3NjFlMmJlMzlmNTE.' in 32000 ms (Method: INVITE)
[Oct 1 11:47:43] Found user 'cc101'
[Oct 1 11:47:43]
<--- SIP read from 192.168.0.164:60396 --->
ACK sip:999@192.168.0.40 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.164:60396;branch=z9hG4bK-d8754z-cd0058527d14537a-1---d8754z-;rport
To: "999"<sip:999@192.168.0.40>;tag=as0c890e28
From: "ccagent1"<sip:cc101@192.168.0.40>;tag=d9508f44
Call-ID: MWU1YTQ3MmVkZmUzNDAxYTVlMjA3NjFlMmJlMzlmNTE.
CSeq: 1 ACK
Content-Length: 0
<------------->
[Oct 1 11:47:43] --- (7 headers 0 lines) ---
[Oct 1 11:47:43]
<--- SIP read from 192.168.0.164:60396 --->
INVITE sip:999@192.168.0.40 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.164:60396;branch=z9hG4bK-d8754z-ef736a7118503544-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:cc101@192.168.0.164:60396>
To: "999"<sip:999@192.168.0.40>
From: "ccagent1"<sip:cc101@192.168.0.40>;tag=d9508f44
Call-ID: MWU1YTQ3MmVkZmUzNDAxYTVlMjA3NjFlMmJlMzlmNTE.
CSeq: 2 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO
Content-Type: application/sdp
Proxy-Authorization: Digest username="cc101",realm="asterisk",nonce="655880d0",uri="sip:999@192.168.0.40",response="543895bd556173bd082ca0d612d8ae78",algorithm=MD5
User-Agent: X-Lite release 1104o stamp 56125
Content-Length: 267
v=0
o=- 9 2 IN IP4 192.168.0.164
s=CounterPath X-Lite 3.0
c=IN IP4 192.168.0.164
t=0 0
m=audio 40970 RTP/AVP 107 0 8 101
a=alt:1 1 : +G6JQkK8 irWgG9sR 192.168.0.164 40970
a=fmtp:101 0-15
a=rtpmap:107 BV32/16000
a=rtpmap:101 telephone-event/8000
a=sendrecv
<------------->
[Oct 1 11:47:43] --- (13 headers 11 lines) ---
[Oct 1 11:47:43] Sending to 192.168.0.164 : 60396 (NAT)
[Oct 1 11:47:43] Using INVITE request as basis request - MWU1YTQ3MmVkZmUzNDAxYTVlMjA3NjFlMmJlMzlmNTE.
[Oct 1 11:47:43] Found user 'cc101'
[Oct 1 11:47:43] Found RTP audio format 107
[Oct 1 11:47:43] Found RTP audio format 0
[Oct 1 11:47:43] Found RTP audio format 8
[Oct 1 11:47:43] Found RTP audio format 101
[Oct 1 11:47:43] Found unknown media description format BV32 for ID 107
[Oct 1 11:47:43] Found audio description format telephone-event for ID 101
[Oct 1 11:47:43] Capabilities: us - 0x6 (gsm|ulaw), peer - audio=0xc (ulaw|alaw)/video=0x0 (nothing), combined - 0x4 (ulaw)
[Oct 1 11:47:43] Non-codec capabilities (dtmf): us - 0x1 (telephone-event), peer - 0x1 (telephone-event), combined - 0x1 (telephone-event)
[Oct 1 11:47:43] Peer audio RTP is at port 192.168.0.164:40970
[Oct 1 11:47:43] Looking for 999 in default (domain 192.168.0.40)
[Oct 1 11:47:43]
<--- Reliably Transmitting (NAT) to 192.168.0.164:60396 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.0.164:60396;branch=z9hG4bK-d8754z-ef736a7118503544-1---d8754z-;received=192.168.0.164;rport=60396
From: "ccagent1"<sip:cc101@192.168.0.40>;tag=d9508f44
To: "999"<sip:999@192.168.0.40>;tag=as0c890e28
Call-ID: MWU1YTQ3MmVkZmUzNDAxYTVlMjA3NjFlMmJlMzlmNTE.
CSeq: 2 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Content-Length: 0
<------------>
[Oct 1 11:47:43] NOTICE[3519]: chan_sip.c:15147 handle_request_invite: Call from 'cc101' to extension '999' rejected because extension not found.
[Oct 1 11:47:43] Scheduling destruction of SIP dialog 'MWU1YTQ3MmVkZmUzNDAxYTVlMjA3NjFlMmJlMzlmNTE.' in 32000 ms (Method: INVITE)
[Oct 1 11:47:43]
<--- SIP read from 192.168.0.164:60396 --->
ACK sip:999@192.168.0.40 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.164:60396;branch=z9hG4bK-d8754z-ef736a7118503544-1---d8754z-;rport
To: "999"<sip:999@192.168.0.40>;tag=as0c890e28
From: "ccagent1"<sip:cc101@192.168.0.40>;tag=d9508f44
Call-ID: MWU1YTQ3MmVkZmUzNDAxYTVlMjA3NjFlMmJlMzlmNTE.
CSeq: 2 ACK
Content-Length: 0
<------------->
[Oct 1 11:47:43] --- (7 headers 0 lines) ---
ccserver*CLI>