[Asterisk-Users] SIP.Conf help? (srvlookup)
Kristian Kielhofner
kris at krisk.org
Tue Nov 30 00:17:28 MST 2004
Todd Duffin wrote:
> I am trying to get FWD to work with SIP (Since IAX has become very flakey)
>
> ~~~~~~~~
> sip.conf
> ~~~~~~~~
> [general]
> srvlookup=yes
> register => XXXXXX:<password>@fwd.pulver.com/XXXXXX
>
> [FreeWorldDialup]
> context=sip-in
> type=user
> hostname=fwd.pulver.com
> insecure=very
>
> [fwd-out]
> type=peer
> secret=XXXX
> username=XXXXXX
> fromuser=XXXXXX
> host=fwd.pulver.com
> My problem is that when I reload I get:
> Nov 29 22:43:24 WARNING[1089768368]: chan_sip.c:1375 create_addr: No
> such host: fwd.pulver.com
>
> This can be "fix" by setting srvlookup=no...or naming my "[fwd-out]"
> section "[fwd.pulver.com]" but things are still very funny...such as I
> never get incoming calls even though "sip show registration" shows:
> fwd.pulver.com:5060 XXXXXX 105 Registered
> ...is this for outbound calls only?
>
> If anyone has a working FWD SIP.conf can you please post it or email it
> to me? Thanks in advance.
>
> Todd
>
sip.conf:
[general]
srvlookup=yes (this is what I have in mine, so I know it will all work
for you)
register => username:password at fwd.pulver.com/700
[fwd-out]
type=peer
secret=password
username=username
disallow=all
allow=ulaw
host=fwd.pulver.com
dtmfmode=rfc2833
context=voip-out
qualify=no
extensions.conf:
[voip-out]
exten => _XXXXXX,1,Dial(SIP/${EXTEN}@fwd-out)
exten => _XXXXXX,2,Congestion
exten => _XXXXX,1,Dial(SIP/${EXTEN}@fwd-out)
exten => _XXXXX,2,Congestion
[default]
exten => 700,1,Goto(default,s,1)
That should get you working, but there might be better ways to do it. I
just use it so I can dial five or six digits and go out FWD... The only
time I ever used it was to call the welcome line and at Astricon I was
able to use a Pulver WiSIP phone (from the Pulver booth) to call into my
FWD number: 456999. Feel free to give it a try when you get up and
running - you should get my auto attendant.
--
Kristian Kielhofner
More information about the asterisk-users
mailing list