Hi,
before all, excuse me for my bad english 
Iām trying to configure asterisk with an italian SIP provider called Skypho.
This provider use the same host for incoming and outgoing calls (voip.eutelia.it).
Iāve configured a peer like this
[myprovider-out]
username
secret
host voip.eutelia.it
nat
etc
and a register line.
SIP SHOW REGISTRY tells that asterisk is connected to receive incoming calls from voip.eutelia.it and in fact, it does.
outgoing calls work very well.
But when I receive a call from outside there is a problem⦠incoming call is redirect (i think) another time to my voip provider throught myprovider-out peer 
So I canāt catch incoming calls by dialplane extensions. Caller receives an occupied tone and nothing else.
SIP DEBUG reports:
[code]<ā SIP read from 83.211.227.21:5060 ā>
INVITE sip:9999@NET.NET.NET.MYIP SIP/2.0
Record-Route: sip:83.211.227.21;ftag=3149D7E4-1DD9;lr=on
Record-Route: sip:83.211.227.13;ftag=3149D7E4-1DD9;lr=on
Via: SIP/2.0/UDP 83.211.227.21;branch=0
Via: SIP/2.0/UDP 83.211.227.13;branch=z9hG4bK71b6.1b070b62.0
Via: SIP/2.0/UDP 62.94.88.138:5060;branch=z9hG4bK15D316115D
From: sip:33975*****@62.94.88.138;tag=3149D7E4-1DD9
To: sip:04441837XXX@voip.eutelia.it
Call-ID: DD8E9292-3C211DC-99F9A8A4-2570551E@62.94.88.138
Supported: rel1xx,timer,replaces
CSeq: 102 INVITE
Max-Forwards: 8
Remote-Party-ID: sip:33975*****@62.94.88.138;party=calling;screen=yes;privacy=off
Contact: sip:33975*****@62.94.88.138:5060
Expires: 180
Content-Type: application/sdp
Content-Length: 448
v=0
o=CiscoSystemsSIP-GW-UserAgent 8937 3170 IN IP4 62.94.88.138
s=SIP Call
c=IN IP4 62.94.88.139
t=0 0
m=audio 17686 RTP/AVP 18 8 0 4 3 125 101 19
c=IN IP4 62.94.88.139
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=yes
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:4 G723/8000
a=fmtp:4 annexa=no
a=rtpmap:3 GSM/8000
a=rtpmap:125 X-CCD/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:19 CN/8000
a=direction:passive
<------------->
ā (17 headers 19 lines) ā
Sending to 83.211.227.21 : 5060 (NAT)
Using INVITE request as basis request - DD8E9292-3C211DC-99F9A8A4-2570551E@62.94.88.138
Found peer ā04441837XXX-outā
<ā Reliably Transmitting (NAT) to 83.211.227.21:5060 ā>
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 83.211.227.21;branch=0;received=83.211.227.21
Via: SIP/2.0/UDP 83.211.227.13;branch=z9hG4bK71b6.1b070b62.0
Via: SIP/2.0/UDP 62.94.88.138:5060;branch=z9hG4bK15D316115D
From: sip:33975*****@62.94.88.138;tag=3149D7E4-1DD9
To: sip:04441837XXX@voip.eutelia.it;tag=as6f10dd32
Call-ID: DD8E9292-3C211DC-99F9A8A4-2570551E@62.94.88.138
CSeq: 102 INVITE
User-Agent: Asterisk_Eut
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Proxy-Authenticate: Digest algorithm=MD5, realm=āvoip.eutelia.itā, nonce="6465c8c6"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog āDD8E9292-3C211DC-99F9A8A4-2570551E@62.94.88.138ā in 32000 ms (Method: INVITE)
webdevCLI>
webdevCLI>
<ā SIP read from 83.211.227.21:5060 ā>
ACK sip:9999@NET.NET.NET.MIOIP SIP/2.0
Max-Forwards: 15
Record-Route: sip:83.211.227.21;ftag=3149D7E4-1DD9;lr=on
Via: SIP/2.0/UDP 83.211.227.21;branch=0
Via: SIP/2.0/UDP 83.211.227.13;branch=z9hG4bK71b6.1b070b62.0
From: sip:33975*****@62.94.88.138;tag=3149D7E4-1DD9
Call-ID: DD8E9292-3C211DC-99F9A8A4-2570551E@62.94.88.138
To: sip:04441837XXX@voip.eutelia.it;tag=as6f10dd32
CSeq: 102 ACK
Content-Length: 0[/code]
Note: If i change myprovider-out from peer to user incoming calls work perfectly but I canāt initiate an outgoing call (user canāt be used to connect to my provider).
Any help would be appreciated
Thank you!
Giulio
edit: debian testing - asterisk (1:1.2.13~dfsg-2)
) but why when I set peer to user my context/dialplane works perfectly? 