Sip.conf

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Sip.conf

Postby D » Fri Sep 15, 2006 9:00 am

Which field in sip.conf corresponds to the telecom provider's ip? There are 2 or 3 places where it asks for default or host ip.

Which field relates to the softphone ip in sip.conf?

Thanks for your feedback.
D
 
Posts: 87
Joined: Mon Jun 19, 2006 11:36 pm

Postby enjay » Fri Sep 15, 2006 9:58 am

Heres an article on how sip.conf works its really simple once you understand the layout.

http://www.voip-info.org/wiki-Asterisk+config+sip.conf

-enjay
enjay
 
Posts: 806
Joined: Mon Jun 19, 2006 12:40 pm
Location: Utah

Postby kchung » Fri Sep 15, 2006 10:16 am

Please use a more detailed subject line in the future.
kchung
 
Posts: 208
Joined: Fri Aug 04, 2006 5:28 pm

SIP Softphone not connecting with Asterisk

Postby D » Fri Sep 15, 2006 11:47 am

Thanks for your feedback. We are almost there...just need the phone to connect with Asterisk. We have tried using the information provided in the link and Scratch Install. I think our IP's are put in the wrong place. Whenever we try to connect our SIP softphone to our Asterisk server it gives an error an does not connect. Our phone does not ring either.

Please let us know where we should put our VOIP provider's IP and where we should put of Softphone's IP. Below is the Asterisk CLI that we get:

-Sep 14 18:34:45 NOTICE[4168]: chan_sip.c:9856
handle_response_peerpoke: Peer 'spa2001' is now REACHABLE! (77ms /
1000ms)
== Refreshing DNS lookups.
== Refreshing DNS lookups.


Below is our sip.conf setting:
[general]
port = 5060
bindaddr = 0.0.0.0
context = from-pstn
; register SIP account on remote machine if using SIP trunks
; register => testSIPtrunk:test@10.10.10.16:5060
;
; setup account for SIP trunking:
; [SIPtrunk]
; disallow=all
; allow=ulaw
; allow=alaw
; type=friend
; username=testSIPtrunk
; secret=test
; host=10.10.10.16
; dtmfmode=rfc2833
; qualify=yes

[gs102]
disallow=all
allow=ulaw
allow=alaw
type=peer
# username=gs102
# secret=test
host=ourtelecomproviderip
dtmfmode=inband
defaultip=ourtelecomproviderip
qualify=1000
mailbox=102
[spa2000]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=spa2000
secret=test
host=dynamic
dtmfmode=inband
defaultip=oursoftphoneip
qualify=1000
mailbox=2000
[spa2001]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=spa2001
secret=test
host=dynamic
dtmfmode=inband
defaultip=oursoftphoneip
qualify=1000
mailbox=2001

Please advice
D
 
Posts: 87
Joined: Mon Jun 19, 2006 11:36 pm

Postby gerski » Fri Sep 15, 2006 12:00 pm

as you've said this is both public ip right? as i said to your other post try deleting the defaultip, and use dtmfmode to rfc388 and see if connects, also try adding canreinvite=no... can you test it first to your local lan maybe your firewall must blocking it.
gerski
 
Posts: 432
Joined: Fri Jul 14, 2006 6:21 am

Postby D » Fri Sep 15, 2006 2:03 pm

Thanks for your prompt response. Yes, these are both public IP's coming from the same router. We are not behind firewall and our NAT is disabled.

We did try deleting the defaultip, and used dtmfmode to rfc388 along with canreinvite=no...same problem. Do we need to have the following in sip.conf:

; Register 2345@mysipprovider.com with authname 2345 at mysipprovider.com at sip provider as 1234 here:
register => 2345:password@mysipprovider.com/1234


Also, do we need to have our softphone's IP in sip.conf?

What does the Asterisk CLI indicate:
-Sep 14 18:34:45 NOTICE[4168]: chan_sip.c:9856
handle_response_peerpoke: Peer 'spa2001' is now REACHABLE! (77ms /
1000ms)
== Refreshing DNS lookups.
== Refreshing DNS lookups.
D
 
Posts: 87
Joined: Mon Jun 19, 2006 11:36 pm

Postby gerski » Fri Sep 15, 2006 2:07 pm

register is for your sip provider only...

have you tried it in LAN? and see if it works...

and in asterisk CLI type "sip show peers" and see if its connected..
gerski
 
Posts: 432
Joined: Fri Jul 14, 2006 6:21 am

Postby D » Fri Sep 15, 2006 2:24 pm

Ok. We will include the register line listed below in sip.conf since we have NOT done that yet. Do we need to mention anywhere in sip.conf about which ip is our softphone is on?

; Register 2345@mysipprovider.com with authname 2345 at mysipprovider.com at sip provider as 1234 here:
register => 2345:password@mysipprovider.com/1234

Will try it on LAN too. Thanks again
D
 
Posts: 87
Joined: Mon Jun 19, 2006 11:36 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 101 guests