Page 1 of 1

Sip.conf

PostPosted: Fri Sep 15, 2006 9:00 am
by D
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.

PostPosted: Fri Sep 15, 2006 9:58 am
by enjay
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

PostPosted: Fri Sep 15, 2006 10:16 am
by kchung
Please use a more detailed subject line in the future.

SIP Softphone not connecting with Asterisk

PostPosted: Fri Sep 15, 2006 11:47 am
by D
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

PostPosted: Fri Sep 15, 2006 12:00 pm
by gerski
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.

PostPosted: Fri Sep 15, 2006 2:03 pm
by D
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.

PostPosted: Fri Sep 15, 2006 2:07 pm
by gerski
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..

PostPosted: Fri Sep 15, 2006 2:24 pm
by D
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