system configuration problems

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

system configuration problems

Postby ghemping » Tue Dec 22, 2015 10:19 am

We have Asterisk 13.6.0 built and running on a CentOS VM. Network Adapter 1 is NAT. Network Adapter 2 is a Bridge. The machine is on an isolated network with two laptops using a small generic switch. They are on the same subnet and there is no connectivity to the internet.
We can ping the laptops from the server and vice versa.

Users bob and alice are setup in sip.conf, pjsip.conf and extensions.conf are setup as they are in the Creating SIP accounts wiki page. We are using Zoiper phones on the two laptops. When we try to create the users - using bob/alice, their password and the ip address the server we are not able to register the users.

There are no messages in the CLI window, just generic can not create the user error in the Zoiper application. The "dialplan show from-internal" command show bob and alice at 6001 & 6002.

We have tried using a similar VM with openSIPS and have been successful in making calls with the Zoiper phones - through the server.


What are we missing?

Sip.conf
Code: Select all
[general]
transport=udp

[friends_internal](!)
type=friend
host=dynamic
context=from-internal
disallow=all
allow=ulaw

[alice](friends_internal)
secret=password

[bob](friends_internal)
secret=password


pjsip.conf

Code: Select all
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

;Templates for the necessary config sections

[endpoint_internal](!)
type=endpoint
context=from-internal
disallow=all
allow=ulaw

[auth_userpass](!)
type=auth
auth_type=userpass

[aor_dynamic](!)
type=aor
max_contacts=1

;Definitions for our phones, using the templates above

[alice](endpoint_internal)
auth=alice
aors=alice
[alice](auth_userpass)
password=password
username=alice
[alice](aor_dynamic)

[bob](endpoint_internal)
auth=bob
aors=bob
[bob](auth_userpass)
password=password
username=bob
[bob](aor_dynamic)


extensions.conf
Code: Select all
[from-internal]

exten=>6001,1,Dial(SIP/alice,20) ; or PJSIP vs SIP
exten=>6002,1,Dial(SIP/bob,20)
ghemping
Newsterisk
 
Posts: 8
Joined: Tue Nov 10, 2015 11:08 am

Re: system configuration problems

Postby jcolp » Wed Dec 23, 2015 6:04 am

You need to pick a SIP channel driver and stick to it, as it is the configuration has both chan_sip and chan_pjsip conflicting - so the one that loads first will win. It's PROBABLY chan_pjsip.

You should also ensure that traffic is reaching your system by using "pjsip set logger on" to look at incoming traffic, or in the case of chan_sip "sip set debug on". If traffic shows as arriving then I'd suggest posting with the output so we can see what's going on. If it doesn't show as arriving then you need to look outside of Asterisk.
Joshua Colp
Digium, Inc. | Senior Software Developer
jcolp
Oldsterisk
 
Posts: 248
Joined: Tue May 19, 2015 6:59 am

Re: system configuration problems

Postby ghemping » Wed Dec 23, 2015 11:31 am

Thanks Joshua,
I tried just using sip.conf. I can register a user via Zoiper when I run Zoiper inside the VM that contains Asterisk. From the laptops connected to the same network, I can ping and ssh the IP on the VM but attempts to register a user fail - with no debug printed from Asterisk. So it's like although ping and ssh can see the VM, Zoiper can't.
ghemping
Newsterisk
 
Posts: 8
Joined: Tue Nov 10, 2015 11:08 am


Return to Asterisk Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest