Additional information.
I’ve readjusted my sip and extensions conf file so i can actually recive the calls and they time out. I have addede a little diagram of the network layout.
I have also included wireshark captures running on each of the machines to attempt to detect what is going on.
Something funky seems to be going on in the caller as seen in caller.pcap below.
In line 5 of the capture I see a line that looks like this…
5 12.359411 192.168.254.2 86.64.162.35 SIP Request: ACK sip:ekiga_101_in@192.168.254.2:61154
The caller seems to be asking for an ACK from ekiga_101_in@192.168.254.2:61154, but ekiga_101_in is not located
the 192.168.254.2 network (the caller network) its located on the callee network which is at 192.168.1.0/24. I
am not sure if I am understanding this correclty but that seems incorrect? Why would it do that?
Thanks.
caller network
192.168.254.2 -> ROUTER -> INTERNET
Callee & Asterik Network
[192.168.1.55(callee), 192.168.1.54(asterisk)] -> ROUTER -> INTERNET
sip.conf
[general]
context=default
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
disallow=all
allow=ulaw
allow=alaw
allow=ilbc
allow=gsm
allow=h261
videosupport=yes
register => meyamma:meyamma@ekiga.net/ekiga_101_in
externhost=my.public.host
externrefresh=10
localnet=192.168.1.0/255.255.255.0
[authentication]
;setup
[101]
type=friend
username=101
secret=welcome
qualify=yes
nat=no
host=dynamic
canreinvite=no
context=home
;port=5061
;setup
[102]
type=friend
username=102
secret=welcome
qualify=yes
nat=no
host=dynamic
canreinvite=no
context=home
;port=5061
;ekiga.net
[ekiga_101_out]
type=peer
username=meyamma
secret=meyamma
host=ekiga.net
canreinvite=no
qualify=300
insecure=port,invite
;ekiga.net
[ekiga_101_in]
type=friend
username=meyamma
secret=meyamma
host=ekiga.net
canreinvite=no
qualify=300
context=incoming_calls
insecure=port,invite
extensions.conf
[general]
static = yes
writeprotect = no
autofallthrough = yes
clearglobalvars = no
[globals]
CONSOLE = Console/dsp ; Console interface for demo
IAXINFO = guest ; IAXtel username/password
TRUNK = Zap/G2 ; Trunk interface
TRUNKMSD = 1 ; MSD digits to strip (usually 1 or 0)
[default]
exten => s,1,Verbose(1|Unrouted call handler)
exten => s,n,Answer()
exten => s,n,Wait(1)
exten => s,n,Playback(tt-weasels)
exten => s,n,Hangup()
[macro-voicemail]
exten => s,1,Dial(${ARG1},20)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Voicemail(u${MACRO_EXTEN})
exten => s-NOANSWER,n,Hangup()
exten => s-BUSY,1,Voicemail(b${MACRO_EXTEN})
exten => s-BUSY,n,Hangup()
exten => _s-.,1,Goto(s-NOANSWER,1)
[incoming_calls]
exten => ekiga_101_in,1,Macro(voicemail,SIP/101)
exten => ekiga_101_in,n,Hangup()
[internal_calls]
exten => 101,1,Macro(voicemail,SIP/101)
exten => 101,n,Hangup()
exten => 102,1,Dial(SIP/102)
exten => 102,n,Hangup()
exten => 8,1,VoiceMailMain(s${CALLERIDNUM})
exten => 8,n,Hangup()
exten => 600,1,Answer()
exten => 600,n,Playback(demo-echotest)
exten => 600,n,Echo()
exten => 600,n,Playback(demo-echodone)
exten => 600,n,Hangup()
[outgoing_calls]
exten => _90.,1,Dial(SIP/ekiga_101_out/${EXTEN:2},20,r))
exten => _90.,n,Hangup()
[home]
include => internal_calls
include => outgoing_calls
caller.pcap
1 0.000000 192.168.254.2 86.64.162.35 SIP/SDP Request: INVITE sip:meyamma@ekiga.net, with session description
2 0.204451 86.64.162.35 192.168.254.2 SIP Status: 100 Giving a try
3 0.870788 86.64.162.35 192.168.254.2 SIP Status: 180 Ringing
4 12.138608 86.64.162.35 192.168.254.2 SIP/SDP Status: 200 OK, with session description
5 12.359411 192.168.254.2 86.64.162.35 SIP Request: ACK sip:ekiga_101_in@192.168.254.2:61154
6 12.673191 86.64.162.35 192.168.254.2 SIP/SDP Status: 200 OK, with session description
7 12.775105 192.168.254.2 86.64.162.35 SIP Request: ACK sip:ekiga_101_in@192.168.254.2:61154
8 12.936956 86.64.162.35 192.168.254.2 SIP/SDP Status: 200 OK, with session description
9 13.074256 192.168.254.2 86.64.162.35 SIP Request: ACK sip:ekiga_101_in@192.168.254.2:61154
10 13.709102 86.64.162.35 192.168.254.2 SIP/SDP Status: 200 OK, with session description
11 13.811168 192.168.254.2 86.64.162.35 SIP Request: ACK sip:ekiga_101_in@192.168.254.2:61154
12 15.320962 86.64.162.35 192.168.254.2 SIP/SDP Status: 200 OK, with session description
13 15.479331 192.168.254.2 86.64.162.35 SIP Request: ACK sip:ekiga_101_in@192.168.254.2:61154
14 18.508725 86.64.162.35 192.168.254.2 SIP/SDP Status: 200 OK, with session description
15 18.610590 192.168.254.2 86.64.162.35 SIP Request: ACK sip:ekiga_101_in@192.168.254.2:61154
16 22.506351 86.64.162.35 192.168.254.2 SIP/SDP Status: 200 OK, with session description
17 22.608408 192.168.254.2 86.64.162.35 SIP Request: ACK sip:ekiga_101_in@192.168.254.2:61154
18 52.235729 192.168.254.2 86.64.162.35 SIP Request: BYE sip:ekiga_101_in@192.168.254.2:61154
19 52.637653 192.168.254.2 86.64.162.35 SIP Request: BYE sip:ekiga_101_in@192.168.254.2:61154
20 53.643530 192.168.254.2 86.64.162.35 SIP Request: BYE sip:ekiga_101_in@192.168.254.2:61154
21 55.654984 192.168.254.2 86.64.162.35 SIP Request: BYE sip:ekiga_101_in@192.168.254.2:61154
22 59.678140 192.168.254.2 86.64.162.35 SIP Request: BYE sip:ekiga_101_in@192.168.254.2:61154
23 63.701243 192.168.254.2 86.64.162.35 SIP Request: BYE sip:ekiga_101_in@192.168.254.2:61154
24 67.724372 192.168.254.2 86.64.162.35 SIP Request: BYE sip:ekiga_101_in@192.168.254.2:61154
25 71.747564 192.168.254.2 86.64.162.35 SIP Request: BYE sip:ekiga_101_in@192.168.254.2:61154
26 75.770608 192.168.254.2 86.64.162.35 SIP Request: BYE sip:ekiga_101_in@192.168.254.2:61154
27 79.793732 192.168.254.2 86.64.162.35 SIP Request: BYE sip:ekiga_101_in@192.168.254.2:61154
28 82.454837 86.64.162.35 192.168.254.2 SIP Status: 408 Request Timeout
callee.pcap
4 3.199293 86.64.162.35 192.168.1.54 SIP/SDP Request: INVITE sip:ekiga_101_in@72.51.96.111, with session description
5 3.200563 192.168.1.54 86.64.162.35 SIP Status: 100 Trying
6 3.200599 192.168.1.54 86.64.162.35 SIP Status: 100 Trying
7 3.205218 192.168.1.54 192.168.1.55 SIP/SDP Request: INVITE sip:101@192.168.1.55:5061;transport=udp, with session description
8 3.206577 192.168.1.55 192.168.1.54 SIP Status: 100 Trying
9 3.207810 192.168.1.55 192.168.1.54 SIP Status: 100 Trying
10 3.592566 192.168.1.55 192.168.1.54 SIP Status: 100 Trying
11 3.593535 192.168.1.55 192.168.1.54 SIP Status: 100 Trying
12 3.657574 192.168.1.55 192.168.1.54 SIP Status: 180 Ringing
13 3.658560 192.168.1.55 192.168.1.54 SIP Status: 180 Ringing
14 3.659161 192.168.1.54 86.64.162.35 SIP Status: 180 Ringing
15 3.659183 192.168.1.54 86.64.162.35 SIP Status: 180 Ringing
16 10.397417 192.168.1.54 86.64.162.35 SIP Request: OPTIONS sip:ekiga.net
17 10.397456 192.168.1.54 86.64.162.35 SIP Request: OPTIONS sip:ekiga.net
18 10.398294 192.168.1.54 86.64.162.35 SIP Request: OPTIONS sip:ekiga.net
19 10.398313 192.168.1.54 86.64.162.35 SIP Request: OPTIONS sip:ekiga.net
20 10.410293 192.168.1.54 86.64.162.35 SIP Request: OPTIONS sip:ekiga.net
21 10.410313 192.168.1.54 86.64.162.35 SIP Request: OPTIONS sip:ekiga.net
22 10.595038 86.64.162.35 192.168.1.54 SIP Status: 200 OK
23 10.598923 86.64.162.35 192.168.1.54 SIP Status: 200 OK
24 10.613045 86.64.162.35 192.168.1.54 SIP Status: 200 OK
25 14.874332 192.168.1.55 192.168.1.54 SIP/SDP Status: 200 OK, with session description
26 14.875406 192.168.1.55 192.168.1.54 SIP/SDP Status: 200 OK, with session description
27 14.875524 192.168.1.54 192.168.1.55 SIP Request: ACK sip:101@192.168.1.55:5082;transport=udp
28 14.920308 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
29 14.920327 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
30 15.454167 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
31 15.454184 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
32 15.456217 192.168.1.54 192.168.1.55 SIP Request: OPTIONS sip:101@192.168.1.55:5061;transport=udp
33 15.457234 192.168.1.55 192.168.1.54 SIP Status: 200 OK
34 15.458448 192.168.1.55 192.168.1.54 SIP Status: 200 OK
35 15.715654 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
36 15.715656 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
37 16.490057 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
38 16.490072 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
39 18.096755 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
40 18.096769 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
41 21.290403 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
42 21.290420 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
43 25.291255 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
44 25.291276 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
45 29.295183 192.168.1.54 192.168.1.55 SIP Request: BYE sip:101@192.168.1.55:5082;transport=udp
asterisk.pcap
3 3.198948 86.64.162.35 192.168.1.54 SIP/SDP Request: INVITE sip:ekiga_101_in@72.51.96.111, with session description
4 3.199890 192.168.1.54 86.64.162.35 SIP Status: 100 Trying
5 3.204569 192.168.1.54 192.168.1.55 SIP/SDP Request: INVITE sip:101@192.168.1.55:5061;transport=udp, with session description
6 3.205287 192.168.1.55 192.168.1.54 SIP Status: 100 Trying
7 3.591208 192.168.1.55 192.168.1.54 SIP Status: 100 Trying
8 3.657176 192.168.1.55 192.168.1.54 SIP Status: 180 Ringing
9 3.658394 192.168.1.54 86.64.162.35 SIP Status: 180 Ringing
10 10.395233 192.168.1.54 86.64.162.35 SIP Request: OPTIONS sip:ekiga.net
11 10.395970 192.168.1.54 86.64.162.35 SIP Request: OPTIONS sip:ekiga.net
12 10.408179 192.168.1.54 86.64.162.35 SIP Request: OPTIONS sip:ekiga.net
13 10.593249 86.64.162.35 192.168.1.54 SIP Status: 200 OK
14 10.597128 86.64.162.35 192.168.1.54 SIP Status: 200 OK
15 10.611120 86.64.162.35 192.168.1.54 SIP Status: 200 OK
16 14.871681 192.168.1.55 192.168.1.54 SIP/SDP Status: 200 OK, with session description
17 14.872376 192.168.1.54 192.168.1.55 SIP Request: ACK sip:101@192.168.1.55:5082;transport=udp
18 14.883938 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
19 15.450915 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
20 15.453080 192.168.1.54 192.168.1.55 SIP Request: OPTIONS sip:101@192.168.1.55:5061;transport=udp
21 15.453840 192.168.1.55 192.168.1.54 SIP Status: 200 OK
22 15.690881 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
23 16.486609 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
24 18.092989 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
25 21.285719 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
26 25.286114 192.168.1.54 86.64.162.35 SIP/SDP Status: 200 OK, with session description
27 29.289231 192.168.1.54 192.168.1.55 SIP Request: BYE sip:101@192.168.1.55:5082;transport=udp