Having trouble setting up asterisk with ekiga.net

Hi all

I’ve been using the wiki as a guide here…

wiki.ekiga.org/index.php/Connect … _ekiga.net

I’ve also tried various permutations, combinations and contortions but nada.

below is my extensions.conf

***** begin 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_meyamma_in,1,Macro(voicemail,SIP/101)
;exten => ekiga_meyamma_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 => _9.,1,Dial(SIP/ekiga_meyamma_out/${EXTEN:1},20,r))
exten => _9.,n,Hangup()

[home]
include => internal_calls
include => outgoing_calls
***** end extensions.conf ****

below is my sip.conf

**** begin 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 2345 at sip provider 'sip_proxy'.  Calls from this provider
;    connect to local extension 1234 in extensions.conf, default context,
;    unless you configure a [sip_proxy] section below, and configure a
;    context.
;    Tip 1: Avoid assigning hostname to a sip.conf section like [provider.com]
;    Tip 2: Use separate type=peer and type=user sections for SIP providers
;           (instead of type=friend) if you have calls in both directions
register => meyamma:meyamma@ekiga.net/101

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_meyamma_out]
type=peer
username=meyamma
secret=meyamma
host=ekiga.net
canreinvite=no
qualify=300
insecure=port,invite

;ekiga.net
;[ekiga_meyamma_in]
;type=user
;username=meyamma
;secret=meyamma
;host=ekiga.net
;canreinvite=no
;qualify=300
;context=incoming_calls
;insecure=port,invite

**** end sip.conf ****

The above gives me cannot find extension 101 (this error is printed out to the asterisk console) even though I have 101 defined above.

I also tried changing the register clause in sip.conf

to

register => meyamma:meyamma@ekiga.net/ekiga_meyamma_in

and uncommenting the [incoming calls] section as well as the [ekiga_meyamma_in] section

Calls are then acutally recived but something goes wrong where after a couple of seconds like (15 secs) the call automatically disconnects.

Can anyone assist?

Thanks.

some more information…

my ekiga account calling in is lets say barneybear@ekiga.net

when I call into asterisk from a softphone (caller) that connects directly to ekiga.net to make a call it shows up on my other softphone registered with asterisk (callee) as barneybear@ipofasteriskmachine. I am able to answer the call and it times out in about 20 secs or so…

the log from asterisk shows this …

    -- Executing [ekiga_101_in@incoming_calls_101:1] Macro("SIP/barbarabear-0a000fd0", "voicemail|SIP/101") in new stack
    -- Executing [s@macro-voicemail:1] Dial("SIP/barbarabear-0a000fd0", "SIP/101|20") in new stack
    -- Called 101
    -- SIP/101-0a0088b0 is ringing
    -- SIP/101-0a0088b0 answered SIP/barbarabear-0a000fd0
[Dec 28 13:02:11] WARNING[6188]: chan_sip.c:1958 retrans_pkt: Maximum retries exceeded on transmission M2M4MGM2MDJjNTJiZGE0MDcxZjE4ZTZhMWU0NjA4NmE. for seqno 1 (Critical Response) -- See doc/sip-retransmit.txt.
[Dec 28 13:02:11] WARNING[6188]: chan_sip.c:1980 retrans_pkt: Hanging up call M2M4MGM2MDJjNTJiZGE0MDcxZjE4ZTZhMWU0NjA4NmE. - no reply to our critical packet (see doc/sip-retransmit.txt).
  == Spawn extension (macro-voicemail, s, 1) exited non-zero on 'SIP/barbarabear-0a000fd0'

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