Multiple SIP Accounts

Hi All,

I have had an asterisk 1.6 server running a single pennytel line for a couple of weeks now with no hassles. Today i had to ad 2 more accounts into the mix. After this change all the pennytel lines ring out fine but none of them receive calls via the pennytel or traditional numbers attached to the respective accounts. All the caller gets is the “user is currently unavailable” message.

Does anybody know what might be the problem with having multiple pennytel accounts through asterisk?

This is the contents of my sip.conf file

[general]
asterisk port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
context = from-sip-external ; Send unknown SIP callers to this context
callerid = Unknown
register=888XXXXXXX:xxxxxx@sip.pennytel.com/888XXXXXXX
register=888YYYYYYY:yyyyyy@sip.pennytel.com/888YYYYYYY
register=888ZZZZZZZ:zzzzzz@sip.pennytel.com/888ZZZZZZZ

[Phone4]
type=friend
host=dynamic
username=Phone4
secret=pppppp
dtmfmode=rfc2833
context=phones
callerid=“Phone4” <4>
canreinvite=no

[Phone5]
type = friend
host = dynamic
username=Phone5
secret=pppppp
dtmfmode = rfc2833
context = phones
callerid = “Phone4” <5>
canreinvite = no

[PennyTel]
username=888XXXXXXX
type=peer
secret=xxxxxx
qualify=yes
nat=yes
port=5060
insecure=very
host=sip.pennytel.com
disallow=all
allow=ulaw
allow=alaw
context=incoming-calls
canreinvite=no
canredirect=no
insecure=port,invite

[PennyTel-1]
username=888YYYYYYY
type=peer
secret=yyyyyy
qualify=yes
nat=yes
insecure=very
host=sip.pennytel.com
disallow=all
allow=ulaw
allow=alaw
context=incoming-calls2
canreinvite=no
canredirect=no
insecure=port,invite

[PennyTel-2]
username=888ZZZZZZZ
type=peer
secret=zzzzzz
qualify=yes
nat=yes
insecure=very
host=sip.pennytel.com
disallow=all
allow=ulaw
allow=alaw
context=incoming-calls3
canreinvite=no
canredirect=no
insecure=port,invite

Any input much appreciated

Cheers

Will

There is no need to have 3 registrations.
Can you forward 2 of those accounts to the 3rd one on the provider’s side?

Good old Pennytel :confused:

My most common cause of inbound calls getting rejected for me has been not having an extension in the dialplan in the correct context that can accept the call.

Connect to the CLI and turn up the verbose to max.

Dial in to the Pennytel number and see if you get a rejected connection becuase it can’t find a valid extension message. You’ll see it on a single line.

If thats the case, check out which context it is trying to connect to and which extension, chances are that is where your error is.

Good luck

Cheers
Chris