Kazoo v4, PBX Connector & FreePBX

665 views
Skip to first unread message

xcabar

unread,
Mar 14, 2017, 4:33:01 PM3/14/17
to 2600hz-dev
Hi Everyone,

Hope someone can help me out here.

I am testing out a single server kazoo installation and trying to use PBX connector to connect a number of my client's PBX so as to get inbound and outbound working, using Kazooas an SBC until I am fully content and comfortable with registering all my SIP devices directly to the server.

I have some clients with static IPs and some with Dynamic. For the dymanic ones, I am tryign to use a username and password to register the FreePBX systems to Kazoo.

My problem is that the trunk continues to fail to register. I have been using the follwoign two resources as my guide for configuring the trunk on freepbx. The registration keeps getting rejected from the kazoo side:



Any help would be greatly appreciated!

xcabar

unread,
Mar 15, 2017, 7:23:35 PM3/15/17
to 2600hz-dev
Got it finally working by adding the "fromdomain=" settings and credentials for registering.

Darren Schreiber

unread,
Mar 15, 2017, 7:25:33 PM3/15/17
to 2600h...@googlegroups.com

Can you post the full config? (minus creds)

 

We really should post one, we get asked this a lot.

 

Thanks in advance!

--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Matt - nurango (VCCS)

unread,
Mar 16, 2017, 3:44:25 PM3/16/17
to 2600hz-dev
I'll chime in. asterisk 1.8 and up.

host={sip.proxy}
username={user_xxx}
secret={supersecretfuntime}
fromdomain={your.realm}
context=from-pstn (per your own config)
type=peer
qualify=yes
disallow=all
allow=ulaw
nat=(depends on you)


By the way Darren, what would it take to get auth by IP going? Since the IP lives in the trunkstore doc and FS has the logic built, have you thought of the logic in which the fetch agent could grab that info?

thx

On Tuesday, March 14, 2017 at 4:33:01 PM UTC-4, xcabar wrote:

Arek Fryz

unread,
Mar 16, 2017, 10:05:44 PM3/16/17
to 2600h...@googlegroups.com
In multi-server setup you will probably need to create config for each kamailio/proxy server. Only one will register, but others need to be added in order to authenticate incoming calls.
Also, if your sip.proxy has multiple A records you will need to create one for each IP address. From what I see asterisk will not handle multiple IPs on single domain correctly.


Had bad experience with PJSIP too.. this one sometimes just wont re-register after registration timeout or will do it 10-20 seconds later causing "unregistered device" alerts. 


Regards,
Arek Fryz



REMAC ENTERPRISES, LTD.




--
You received this message because you are subscribed to the Google Groups "2600hz-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+unsubscribe@googlegroups.com.

Matt - nurango (VCCS)

unread,
Mar 17, 2017, 6:59:05 AM3/17/17
to 2600hz-dev
I've seen that behavior from Zoiper as well. 

You are correct in that asterisk doesn't parse multiple IP's from DNS or handle multiple IP's properly. To work around this I wrote a blog post about it last year if anyone's interested - https://www.nurango.ca/blog/asterisk-and-multiple-inbound-carrier-ips/ 
To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.

Darren Schreiber

unread,
Mar 17, 2017, 10:03:16 AM3/17/17
to 2600h...@googlegroups.com

Is this the complete config? Perhaps you also have a sample context + dialplan entry we can use for inbound and outbound?

 

Re: Auth by IP we are moving that to Kamailio, in talks about it now.

 

 

From: <2600h...@googlegroups.com> on behalf of "Matt - nurango (VCCS)" <vccst...@gmail.com>
Reply-To: "2600h...@googlegroups.com" <2600h...@googlegroups.com>
Date: Thursday, March 16, 2017 at 12:39 PM
To: 2600hz-dev <2600h...@googlegroups.com>
Subject: Re: Kazoo v4, PBX Connector & FreePBX

 

I'll chime in. asterisk 1.8 and up.

--

fred

unread,
Mar 17, 2017, 10:48:40 AM3/17/17
to 2600hz-dev
chan_sip requires a separate entry for each IP.  chan_pjsip will resolve all IP's for a domain.  PJSIP on Asterisk was not very stable up until around v13.10.  I think it is a lot more stable now.

To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+...@googlegroups.com.

Arek Fryz

unread,
Mar 17, 2017, 11:05:55 AM3/17/17
to 2600h...@googlegroups.com
Fred,

Wired, I deployed 13.12.1 last week and PJSIP was not able to resolve multiple IPs. At the end of the day I switched back to chan_sip which works pretty well with Kazoo v4


Regards,
Arek Fryz



REMAC ENTERPRISES, LTD.




To unsubscribe from this group and stop receiving emails from it, send an email to 2600hz-dev+unsubscribe@googlegroups.com.

VCCS Portal

unread,
Mar 17, 2017, 11:48:01 AM3/17/17
to 2600h...@googlegroups.com
It can resolve but in a round robin type of fashion. It will take one IP at random and the rest ill be rejected...unless you are experiencing something else. 

You received this message because you are subscribed to a topic in the Google Groups "2600hz-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/2600hz-dev/-NoO_52lUV0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 2600hz-dev+unsubscribe@googlegroups.com.

fred

unread,
Mar 17, 2017, 12:32:38 PM3/17/17
to 2600hz-dev, sup...@vccs.ca
That is for chan_sip.  It's not round robin as far as I know.  It just uses whatever IP is returned first from a dns lookup.  It only does a DNS lookup once per registration or one time for IP auth.  With multiple A records it could be random or round robin or weighted depending on how the DNS server is set up.  

As far as I know chan_pjsip will return all IP addresses.  From asterisk console > pjsip show endpoints.  You will see all available IP addresses for a given domain.  
You received this message because you are subscribed to a topic in the Google Groups "2600hz-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/2600hz-dev/-NoO_52lUV0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 2600hz-dev+...@googlegroups.com.

Matt - nurango (VCCS)

unread,
Mar 17, 2017, 12:40:25 PM3/17/17
to 2600hz-dev
Hi Fred, yea I meant round robin as in first IP given back from DNS.. I haven't tested with PJSIP as it was a hassle setting up opposed to chan_sip, plus familiarity. If it solved the issue though with multiple ACLs I will def be exploring it and updating my doc.

Cheers.


On Tuesday, March 14, 2017 at 4:33:01 PM UTC-4, xcabar wrote:
Reply all
Reply to author
Forward
0 new messages