[Asterisk-Users] More beginner questions

Joe Dennick joe at dennick.net
Sat Dec 20 11:47:03 MST 2003


Once the connection is made between your * and FWD, your * passes it off
so its really just a connection between your soft-phone and FWD.  So,
your soft-phone needs to be properly NATed, and the appropriate ports TO
your soft-phone need to be opened.  Each SIP phone will attempt to use
different ports (usually UDP), so you need to find out what those ports
are and make sure they are opened and NATed to your soft-phone.  I've
never gotten it to work because I wasn't willing to open up my
soft-phone that much to the Internet.

I have experienced, however, a great deal of luck using IAX to
communicate between two (actually three) * systems in different
locations.  The only port that needs to be opened is UDP 5036 for IAX,
or UDP 4569 for IAX2.

Good luck!

Joe

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Jon Creasey
Sent: Saturday, December 20, 2003 12:00 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] More beginner questions


Using DIAX softphone which seems to be working OK can get to VM/echotest
etc in the demo context

Am trying to setup FWD but get the following problems

Can hear it ringing when dialing FWD no 612 for time.  Connects but no
sound from remote end.

Does anyone have any suggestions.

Softphone on 192.168.0.2 asterisk on 192.168.0.3 Netgear RP114 doing NAT
to the internet port 5060 being forwarded to the asterisk box.

This seems to be quite useful software but it's frustratingly difficult
to get running.

Jon

SIP debug shows following

mrpenguin*CLI>
    -- Registered '2203' (AUTHENTICATED) at 192.168.0.2:5036
    -- Accepting AUTHENTICATED call from 192.168.0.2, requested format =
2, actu al format = 2
    -- Executing SetCallerID("IAX[2203 at 2203]/9", "91184") in new stack
    -- Executing SetCIDName("IAX[2203 at 2203]/9", "calisto") in new stack
    -- Executing Dial("IAX[2203 at 2203]/9", "SIP/612 at fwd.pulver.com") in
new stack We're at 82.38.193.149 port 16612 Answering with preferred
capability 4 Answering with preferred capability 2 Answering with
non-codec capability 1 11 headers, 10 lines Reliably Transmitting:
INVITE sip:612 at fwd.pulver.com SIP/2.0
Via: SIP/2.0/UDP 82.38.193.149:5060;branch=z9hG4bK42c80372
From: "calisto" <sip:91184 at 82.38.193.149>;tag=as1f0e4544
To: <sip:612 at fwd.pulver.com>
Contact: <sip:91184 at 82.38.193.149>
Call-ID: 4336592d02a1a1ba7173c842778e8b8e at 82.38.193.149
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Content-Type: application/sdp
Content-Length: 214

v=0
o=root 15141 15141 IN IP4 82.38.193.149
s=session
c=IN IP4 82.38.193.149
t=0 0
m=audio 16612 RTP/AVP 0 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
 (NAT) to 192.246.69.223:5060
    -- Called 612 at fwd.pulver.com
Sip read: CLI>
SIP/2.0 100 trying -- your call is important to us
Via: SIP/2.0/UDP 82.38.193.149:5060;branch=z9hG4bK42c80372
From: "calisto" <sip:91184 at 82.38.193.149>;tag=as1f0e4544
To: <sip:612 at fwd.pulver.com>
Call-ID: 4336592d02a1a1ba7173c842778e8b8e at 82.38.193.149
CSeq: 102 INVITE
Server: Free World Dialup (0.8.11rc3 (i386/linux))
Content-Length: 0


8 headers, 0 lines
Sip read: CLI>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 82.38.193.149:5060;branch=z9hG4bK42c80372
From: "calisto" <sip:91184 at 82.38.193.149>;tag=as1f0e4544
To: <sip:612 at fwd.pulver.com>;tag=as63b4567c
Call-ID: 4336592d02a1a1ba7173c842778e8b8e at 82.38.193.149
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Contact: <sip:612 at 65.39.205.112:5028>
Content-Length: 0


9 headers, 0 lines
    -- SIP/fwd.pulver.com-43fd is ringing
Sip read: CLI>
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 82.38.193.149:5060;branch=z9hG4bK42c80372
From: "calisto" <sip:91184 at 82.38.193.149>;tag=as1f0e4544
To: <sip:612 at fwd.pulver.com>;tag=as2046b5cb
Call-ID: 4336592d02a1a1ba7173c842778e8b8e at 82.38.193.149
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:30342 at 65.121.72.14>
Content-Length: 0


10 headers, 0 lines
    -- SIP/fwd.pulver.com-43fd is ringing
Sip read: CLI>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 82.38.193.149:5060;branch=z9hG4bK42c80372
Record-Route: <sip:612 at 192.246.69.223;ftag=as1f0e4544;lr=on>
From: "calisto" <sip:91184 at 82.38.193.149>;tag=as1f0e4544
To: <sip:612 at fwd.pulver.com>;tag=as2046b5cb
Call-ID: 4336592d02a1a1ba7173c842778e8b8e at 82.38.193.149
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:30342 at 65.121.72.14>
Content-Type: application/sdp
Content-Length: 212

v=0
o=root 11472 11472 IN IP4 65.121.72.14
s=session
c=IN IP4 65.121.72.14
t=0 0
m=audio 12268 RTP/AVP 3 0 101
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16

12 headers, 10 lines
Found audio format UNKN
Found audio format UNKN
Found audio format UNKN
Found description format GSM
Found description format PCMU
Found description format telephone-event
Capabilities: us - 6, them - 6/0, combined - 6
Non-codec capabilities: us - 1, them - 1, combined - 1
list_route: hop: <sip:612 at 192.246.69.223;ftag=as1f0e4544;lr=on>
list_route: hop: <sip:30342 at 65.121.72.14>
set_destination: Parsing <sip:612 at 192.246.69.223;ftag=as1f0e4544;lr=on>
for addr ess/port to send to
set_destination: set destination to 192.246.69.223, port 5060
Transmitting:
ACK sip:30342 at 65.121.72.14 SIP/2.0
Via: SIP/2.0/UDP 82.38.193.149:5060;branch=z9hG4bK42c80372
Route: <sip:30342 at 65.121.72.14>
From: "calisto" <sip:91184 at 82.38.193.149>;tag=as1f0e4544
To: <sip:612 at fwd.pulver.com>;tag=as2046b5cb
Contact: <sip:91184 at 82.38.193.149>
Call-ID: 4336592d02a1a1ba7173c842778e8b8e at 82.38.193.149
CSeq: 102 ACK
User-Agent: Asterisk PBX
Content-Length: 0

 (NAT) to 192.246.69.223:5060
    -- SIP/fwd.pulver.com-43fd answered IAX[2203 at 2203]/9
set_destination: Parsing <sip:612 at 192.246.69.223;ftag=as1f0e4544;lr=on>
for addr ess/port to send to
set_destination: set destination to 192.246.69.223, port 5060 Reliably
Transmitting: BYE sip:30342 at 65.121.72.14 SIP/2.0
Via: SIP/2.0/UDP 82.38.193.149:5060;branch=z9hG4bK42c80372
Route: <sip:30342 at 65.121.72.14>
From: "calisto" <sip:91184 at 82.38.193.149>;tag=as1f0e4544
To: <sip:612 at fwd.pulver.com>;tag=as2046b5cb
Contact: <sip:91184 at 82.38.193.149>
Call-ID: 4336592d02a1a1ba7173c842778e8b8e at 82.38.193.149
CSeq: 103 BYE
User-Agent: Asterisk PBX
Content-Length: 0

 (NAT) to 192.246.69.223:5060
  == Spawn extension (default, 7612, 3) exited non-zero on
'IAX[2203 at 2203]/9'
    -- Hungup 'IAX[2203 at 2203]/9'
Sip read: CLI>
SIP/2.0 200 OK
Via: SIP/2.0/UDP 82.38.193.149:5060;branch=z9hG4bK42c80372
Record-Route: <sip:30342 at 192.246.69.223;ftag=as1f0e4544;lr=on>
From: "calisto" <sip:91184 at 82.38.193.149>;tag=as1f0e4544
To: <sip:612 at fwd.pulver.com>;tag=as2046b5cb
Call-ID: 4336592d02a1a1ba7173c842778e8b8e at 82.38.193.149
CSeq: 103 BYE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER
Contact: <sip:30342 at 65.121.72.14>
Content-Length: 0


11 headers, 0 lines
mrpenguin*CLI>


SIP.CONF

mrpenguin:/etc/asterisk# more sip.conf
[general]
port = 5060                     ; Port to bind to
bindaddr = 0.0.0.0              ; Address to bind to
externip = [REMOVED]        ; Address that we're going to put in SIP
message
s if we're behind a NAT
context = default               ; Default for incoming calls
disallow=all                    ; Disallow all codecs
allow=ulaw
;allow=alaw
allow=gsm

register => 91184:[REMOVED]@fwd.pulver.com/2203



;[2203]
;type=friend
;username=2203
;host=dynamic
;defaultip=192.168.0.2
;dtmfmode=inband
;canreinvite=no

[fwd.pulver.com]
type=friend
secret=[REMOVED]
username=91184
host=fwd.pulver.com
nat=yes
canreinvite=no
reinvite=no


IAX.conf (for the DIAX softphone)
[general]
port=5036
bandwidth=low
allow=ulaw
allow=gsm
jitterbuffer=no
tos=lowdelay
[guest]
type=user
context=default
callerid="Guest IAX User"

[iaxtel]
type=user
context=default
auth=rsa
inkeys=iaxtel

[iaxtel2]
type=user
context=default
deny=0.0.0.0/0.0.0.0
permit=216.207.245.47/255.255.255.255

[demo]
type=peer
username=asterisk
secret=supersecret
host=216.207.245.47





[2203]
type=friend
host=dynamic
secret=mypassword
context=default
qualify=300
nat=yes



_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.550 / Virus Database: 342 - Release Date: 12/9/2003
 




More information about the asterisk-users mailing list