From Fedora Project Wiki
Line 13: Line 13:


=== What I learned while getting this to work ===
=== What I learned while getting this to work ===
* Even to make inbound SIP calls to Fedora Talk you must be authenticated.
* Even to make inbound SIP calls to Fedora Talk, you must be authenticated.
** I am not sure if this is to prevent VOIP spam, just an oversight or something else.
** I am not sure if this is to prevent VOIP spam, just an oversight or something else.
** When using SIP clients you can do this by setting up fedoraproject.org as an outbound proxy.
** When using SIP clients you can do this by setting up fedoraproject.org as an outbound proxy.

Revision as of 06:50, 9 June 2009

Motivation

  • Being able to have developers call me with my fedoraproject.org SIP address.
  • Being able to call developers using my normal phones without a land line.
  • Being able to have other people call me using POTS through Fedora Talk.

Why Asterisk?

I have an analog tdm card that needs the dahdi driver as the zaptel driver will not work on the recent kernels. Callweaver in Fedora does not yet work with dahdi. I am not aware of other software that will work with my hardware, though there are some other choices if you are just going to use SIP.

Prerequisites

  • You need to have set up your VOIP account.
  • If you are using special hardware the dahdi drivers are not part of Fedora. Currently for Fedora F11 you need to build them from source. But in many cases 3rd party repos carry them. The issue is the drivers have not been upstreamed.
  • You need to have Asterisk installed. Though a lot of this will also apply to Callweaver which is a fork of Asterisk.

What I learned while getting this to work

  • Even to make inbound SIP calls to Fedora Talk, you must be authenticated.
    • I am not sure if this is to prevent VOIP spam, just an oversight or something else.
    • When using SIP clients you can do this by setting up fedoraproject.org as an outbound proxy.
  • That your password is supplied differently when using it in an auth command as opposed to a secret command. Using the secret command will work when registering (to have calls directed to your server) with the fedoraproject.org server, but not when using it as a proxy (to make calls to other developers).
  • Unless you use pedantic some short cuts are taken with loop checking that breaks some loopback testing.
  • The default registration time is only 2 minutes. For long time connections you can set this to an hour to reduce pinging the fedoraproject.org server.
  • If you run asterisk as root you create some log files owned by the wrong account that will break running it as a service. So use the service asterisk commands to start and stop the service during testing.
  • You can do interactive debugging using the asterisk -r command to attach to a running asterisk daemon. This you can run as root. help will give you a list of commands to play with.