[Asterisk-Users] SIP SPA-3k & * Configuration

Jeff owen owenj at surfree.net
Sat Oct 9 07:10:51 MST 2004


This has finally broken me.  I can't seem to figure out how to configure a
SPA-3k to connect to a * host.

 

The SPA is running 2.0.10(GWf) and * is v1.0.1.

 

I have a SPA-2k running fine.

 

I am trying to have the 3k work as a FXO and FXS truly off the * host.  The
machines are behind a NAT and * is handling a BV connection via NAT.

 

The error that the PSTN Line keeps encountering is:

 

Oct  8 22:05:11 NOTICE[6150]: chan_sip.c:4860 register_verify: Peer 'pstn'
is trying to register, but not configured as host=dynamic

Oct  8 22:05:11 NOTICE[6150]: chan_sip.c:7532 handle_request: Registration
from '<sip:pstn at 192.168.234.111>' failed for '192.168.234.21'

 

The entries I have in the SIP.conf are:

 

[general]

context=default

port=5060

bindaddr=192.168.234.111

maxexpirey=180

defaultexpirey=160

tos=0x08

nat=no

srvlookup=yes

videosupport=no

dtmfmode=inband

disallow=all ; Disallow all codecs

;allow=gsm

allow=ulaw

;allow=ilbc

;allow=alaw

language=en

externip=DYNDNSentry

localnet=192.168.234.0/255.255.255.0

 

[pstn] SPA-3k PSTN Line

type=peer

context=default

secret=supersecretpassword

port=5061

host=192.168.234.21

dtmfmode=rfc2833

canreinvite=no

nat=no

 

[2200] ; SPA-3k Line 1

type=friend

context=default

port=5060

host=dynamic

secret=supersecretpassword2

callerid="Cordless" <2200>

mailbox=2200

dtmfmode=rfc2833

;canreinvite=no

nat=no

 

For extensions.conf:

 

[global]

PHONES3=SIP/2200

 

PHONES4=SIP/pstn

 

[local]

exten => _9NXXXXXXXXX,1,Dial(SIP/${EXTEN:2}@pstn,60,tr)

 

[default]

include=>local

exten => pstn,1,Macro(stdexten,2201,${PHONES4}) ; SPA-3k PSTN Line

exten => 2200,1,Macro(stdexten,2200,${PHONES3}) ; SPA-3k Line 1

 

Thanks,

 

Jeff

As        

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041009/120b91e6/attachment.htm


More information about the asterisk-users mailing list