Dovid, thanks for clearing that up. I’m so close now -at least I think I am- I can taste the success.
If you can put up with my stupid questions for another round or two I think I’ll be ‘dialing’.
I fiddled with my setting a bit more and I can see that I’m closer now. It’s looking in the correct section of my dialplan for a rule matching the number I dialed. But then it doesnt go out. SO CLOSE!!!
So, I’m attaching my files and a bit of my debug output for you -in case you need it.
Oh, also FYI:
asterisk 1.2.7.1
freebsd 6.1
ports 1000-20000 on my dsl router/firewall forwarded to my asterisk server
dsl is also natting addresses outbound
asterisk server and phone on same local non-routable network
sip.conf
[general]
register => 785413:Zendar1a@fwd.pulver.com
bandwidth = low
disallow = lpc10
jitterbuffer = no
forcejitterbuffer= no
tos = lowdelay
externip = 74.226.83.67
localnet = 192.168.0.0/255.255.0.0
qualify = yes
diallow = all
allow = ulaw
allow = alaw
allow = gsm
;--------------------------------------
[out-fwd-785413]
type = peer
host = dynamic
username = 785413
secret = Zendar1a
auth = md5,plaintext
callerid = Cameron Walker
nat = no
canreinvite = no
insecure = very
context = outgoing
[Grandstream1]
type = friend
host = dynamic
username = testlogin
secret = testpassword
auth = md5,plaintext
callerid = Cameron Walker
nat = no
canreinvite = no
insecure = very
context = default
extensions.conf
[general]
static = yes
writeprotect = no
autofallthrough = yes
clearglobalvars = no
priorityjumping = no
qualify = yes
[default]
exten => s,1,Dial(SIP/Grandstream1,10,r)
exten => 55555,1,Dial(SIP/out-fwd-785413/${EXTEN})
[outgoing]
exten => 613,1,Dial(SIP/out-fwd-785413)
exten => 612,1,Dial(SIP/out-fwd-785413/612)
exten => 55555,1,Dial(SIP/out-fwd-785413/613)
debug output
<-- SIP read from 192.168.1.96:5060:
INVITE sip:55555@192.168.1.97 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.96;branch=z9hG4bK358592d6ee58c8ea
From: sip:testlogin@192.168.1.97;tag=75d7b25052177f43
To: sip:55555@192.168.1.97
Contact: sip:testlogin@192.168.1.96
Supported: replaces, timer
Call-ID: 51cc2d8e7341ca87@192.168.1.96
CSeq: 63426 INVITE
User-Agent: Grandstream GXP2000 1.1.0.5
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK
Content-Type: application/sdp
Content-Length: 257
v=0
o=testlogin 8000 8000 IN IP4 192.168.1.96
s=SIP Call
c=IN IP4 192.168.1.96
t=0 0
m=audio 5004 RTP/AVP 0 8 4 18 3
a=sendrecv
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=rtpmap:3 GSM/8000
a=ptime:20
— (13 headers 13 lines)—
Using INVITE request as basis request - 51cc2d8e7341ca87@192.168.1.96
Sending to 192.168.1.96 : 5060 (non-NAT)
Found no matching peer or user for '192.168.1.96:5060’
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 4
Found RTP audio format 18
Found RTP audio format 3
Peer audio RTP is at port 192.168.1.96:5004
Found description format PCMU
Found description format PCMA
Found description format G723
Found description format G729
Found description format GSM
Capabilities: us - 0x8000e (gsm|ulaw|alaw|h263), peer - audio=0x10f (g723|gsm|ulaw|alaw|g729)/video=0x0 (nothing), combined - (ulaw|alaw|gsm)
Non-codec capabilities: us - 0x1 (telephone-event), peer - 0x0 (nothing), combined - 0x0 (nothing)
Looking for 55555 in default (domain 192.168.1.97)
list_route: hop: sip:testlogin@192.168.1.96
Reliably Transmitting (no NAT) to 192.168.1.96:5060:
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.1.96;branch=z9hG4bK358592d6ee58c8ea;received=192.168.1.96
From: sip:testlogin@192.168.1.97;tag=75d7b25052177f43
To: sip:55555@192.168.1.97;tag=as072be54f
Call-ID: 51cc2d8e7341ca87@192.168.1.96
CSeq: 63426 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: sip:55555@192.168.1.97
Content-Length: 0
rcw2*CLI>
<-- SIP read from 192.168.1.96:5060:
ACK sip:55555@192.168.1.97 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.96;branch=z9hG4bK358592d6ee58c8ea
From: sip:testlogin@192.168.1.97;tag=75d7b25052177f43
To: sip:55555@192.168.1.97;tag=as072be54f
Contact: sip:testlogin@192.168.1.96
Call-ID: 51cc2d8e7341ca87@192.168.1.96
CSeq: 63426 ACK
User-Agent: Grandstream GXP2000 1.1.0.5
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK
Content-Length: 0
— (11 headers 0 lines)—
Destroying call ‘51cc2d8e7341ca87@192.168.1.96’