The pfSense Store

Author Topic: Asterisk 1.8 package  (Read 47746 times)

0 Members and 2 Guests are viewing this topic.

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 9954
    • View Profile
Re: Asterisk 1.8 package
« Reply #15 on: March 23, 2012, 04:49:46 pm »
In theory backup box will not be able to register as it will not have the configured ip on it.

Offline robi

  • Sr. Member
  • ****
  • Posts: 313
    • View Profile
Re: Asterisk 1.8 package
« Reply #16 on: March 23, 2012, 07:03:17 pm »
I'd love to. Is there a tutorial somewhere about this, as I'm not familiar about it at all.

try this micro how to for pfsense's github repo

http://forum.pfsense.org/index.php/topic,44686.msg232239.html#msg232239

I made changes, comitted, named "Updated asterisk package to remove errors in the log, cosmetic GUI fixes". The question is, when will they appear when reinstalling the package?

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 9954
    • View Profile
Re: Asterisk 1.8 package
« Reply #17 on: March 23, 2012, 07:08:59 pm »
Did you did a pull request for this?

there is no alerts on https://github.com/bsdperimeter/pfsense-packages notifications

Offline robi

  • Sr. Member
  • ****
  • Posts: 313
    • View Profile
Re: Asterisk 1.8 package
« Reply #18 on: March 24, 2012, 04:25:43 pm »
Sorry please try now.

Offline robi

  • Sr. Member
  • ****
  • Posts: 313
    • View Profile
Re: Asterisk 1.8 package
« Reply #19 on: March 24, 2012, 04:37:23 pm »
I made two more fixes, comitted etc. and when trying to send a new pull request it says "Oops! There's already a pull request for nagyrobi:master"  ??? ??? ???

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 9954
    • View Profile
Re: Asterisk 1.8 package
« Reply #20 on: March 24, 2012, 05:06:25 pm »
You need to wait the commit or cancel your current pull request and push another

Offline robi

  • Sr. Member
  • ****
  • Posts: 313
    • View Profile
Re: Asterisk 1.8 package
« Reply #21 on: March 24, 2012, 05:17:15 pm »
In this case please pull the first one in, I'll do some tests, and afterwards I'll push next ones if needed following.

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 9954
    • View Profile
Re: Asterisk 1.8 package
« Reply #22 on: March 24, 2012, 10:42:27 pm »
Ok, I'll do it sunday.

I'm on smartphone now.

Offline robi

  • Sr. Member
  • ****
  • Posts: 313
    • View Profile
Re: Asterisk 1.8 package
« Reply #23 on: March 25, 2012, 05:03:38 pm »
I discovered further issues related to the package approach, but cannot go further until commits are pulled in (to see if I'm on the right track or not).

I need to learn about how daemon's logging works in pfSense - maybe we should use a similar approach in asterisk's case.

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 9954
    • View Profile
Re: Asterisk 1.8 package
« Reply #24 on: March 25, 2012, 06:50:50 pm »
Your pull request is marked as This pull request cannot be automatically merged..

I'm going to merge your changes by hand but module template and sip.conf forced is not a good idea. :(

for example:

res_timing_pthread.so is essential for audio quality(timing source) as dahdi is not installed.
chan_iax2.so is an excelent option for trunking and nat.
app_db.so is a very fast built in db for dialplans

I know it´s not that simple but I think it's better trying to include a gui like asterisknow or freepbx instead of forcing configurations.
« Last Edit: March 25, 2012, 08:24:11 pm by marcelloc »

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 9954
    • View Profile
Re: Asterisk 1.8 package
« Reply #25 on: March 26, 2012, 01:45:47 am »
Good news!

I could get asterisk-gui 2.0 running on pfsense. ;D

Next step is adjust some gui options to have a full funcional asterisk package for pfsense.

Status from robi, gui configuration from digium, compilation and joining by me.
« Last Edit: March 26, 2012, 01:48:03 am by marcelloc »

Offline robi

  • Sr. Member
  • ****
  • Posts: 313
    • View Profile
Re: Asterisk 1.8 package
« Reply #26 on: March 26, 2012, 03:50:18 am »
That sounds good. My approach was simplistic.

modules:
For example app_db is problematic on nanobsd, as it cannot be saved on a read-only filesystem. Iax is a good thing, but rarely used nowdays, as it's not properly route-able protocol. timing_pthread - I'll have to look at this, but I remember having dependency problems on pfSense install. Disabling non-used modules saves memory too.
I'm using it flawlessly with 2 SIP phones and 4 SIP registrar accounts like this and never had any sound or whatever problems so far.

sip.conf:
Has specific recommendations for working properly on pfSense. Plus the original sip.conf is huge and over commented, not speaking that each .conf file is installed twice - keeping only one fully commented is more than enough.

But having a full-blown asterisk-GUI indeed implies to solve all the dependency problems properly - and after all, renders the simple status GUI useless, as all the functions I wrote I suppose, are present in the big GUI.

I'd love that too - but requires lots of work, I guess...
« Last Edit: March 26, 2012, 03:53:11 am by robi »

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 9954
    • View Profile
Re: Asterisk 1.8 package
« Reply #27 on: March 26, 2012, 06:26:22 am »
The simple gui will continue as many people like doing their own dialplan for custom and/or small instalation.

I'll publish your changes as well try to fix nanobsd erros, but config options must be something easy to change.


Offline Advoc8tr

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Asterisk 1.8 package
« Reply #28 on: March 28, 2012, 03:59:34 am »
Can someone fill me in on how to configure asterix once it is installed?  The service is running and the status page shows up but can't work out where / how to configure settings (SIP servers, IPs etc..)

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 9954
    • View Profile
Re: Asterisk 1.8 package
« Reply #29 on: March 28, 2012, 06:46:00 am »
In current version, you need to edit asterisk files

status-> asterisk -> edit configuration

sip.conf # define trunks,extensions and sip settings
extensions.conf # define dialplan

I'm planning to include asterisk-gui on this package but I need more time to finish it.