Koozali.org formerly Contribs.org

missing iax registrations (version 688)

Offline soprom

  • *
  • 589
    • www.logiciel-libre.org
missing iax registrations (version 688)
« on: December 28, 2008, 07:10:13 PM »
Hi,
Version sail-2.2.1-688 brings a problem.
I have 5 iax trunks but only one shows up in iax.conf

If I manually add the missing ones in iax.conf and reload iax, then registrations re-appear iax2 registry.
« Last Edit: December 28, 2008, 07:19:29 PM by soprom »
Sophie from Montréal

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: missing iax registrations (version 688)
« Reply #1 on: December 28, 2008, 07:18:32 PM »
Hi Sophie

Can you explain a little further please?

Did they disappear after the upgrade?

What did you upgrade from (which release)?

If you look at iax.conf (in general edit) do they appear?

Is it the trunk + registration or just the registration which is missing?

 

Thanks

S



« Last Edit: December 28, 2008, 07:20:40 PM by selintra »

Offline soprom

  • *
  • 589
    • www.logiciel-libre.org
Re: missing iax registrations (version 688)
« Reply #2 on: December 28, 2008, 07:31:10 PM »
I'm running sme7.4 and updated from 684 (working) to 688 (missing iax's)

General Edit shows the ones I entered manually
Trunks are missing for all accounts
Registrations are missing for all but one
Sophie from Montréal

Offline soprom

  • *
  • 589
    • www.logiciel-libre.org
Re: missing iax registrations (version 688)
« Reply #3 on: December 28, 2008, 07:34:11 PM »
sorry, trunks are not missing
Sophie from Montréal

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: missing iax registrations (version 688)
« Reply #4 on: December 28, 2008, 07:48:49 PM »
so...  just to clarify

the trunks are OK but the registrations are missing on most of them?

Is this correct?

Can you tell me which carriers it was please.

Thanks

S

Offline soprom

  • *
  • 589
    • www.logiciel-libre.org
Re: missing iax registrations (version 688)
« Reply #5 on: December 28, 2008, 07:50:50 PM »
using config show, I see a difference between a broken registration and the one working...

Working iax has:
Code: [Select]
    opengreet=None
    openroute=annoncermarie
    opensibling=None
    password=2222
    pat=
    provision=
    queue=None
    register=5145550610:2222@iax09.unlimitel.ca
    remotenum=5145550610
    sipiaxpeer=type=peer

Broken iax:
Code: [Select]
    opengreet=None
    openroute=5214
    opensibling=None
    password=2222
    pat=
    postdial=
    predial=
    provision=
    queue=None
    register=
    remotenum=5145554017
    sipiaxpeer=type=peer

Sophie from Montréal

Offline soprom

  • *
  • 589
    • www.logiciel-libre.org
Re: missing iax registrations (version 688)
« Reply #6 on: December 28, 2008, 07:55:41 PM »
Can you tell me which carriers it was please

Yes, only registrations are missing
Carrier is custom :
Unlimitel_IAX2=Carrier
    carrier=Unlimitel_IAX2
    carriertype=VOIP
    desc=Unlimitel IAX2
    host=
    md5encrypt=NO
    register=
    sipiaxpeer=type=peer
host=
qualify=3000
canreinvite=no
username=
fromuser=
secret=
    sipiaxuser=type=user
context=mainmenu
    technology=IAX2
    zzeor=EOR

Host is defined in each trunk (not as a default host value in carrier)
Sophie from Montréal

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: missing iax registrations (version 688)
« Reply #7 on: December 28, 2008, 08:15:52 PM »
Thankyou Sophie,

We made some major changes in this area in the 68x builds. 

We will be back to you shortly.

Kind Regards

S

Offline soprom

  • *
  • 589
    • www.logiciel-libre.org
Re: missing iax registrations (version 688)
« Reply #8 on: December 28, 2008, 08:24:47 PM »
Doing some tests...

1) I created a fresh trunk and compared with the existing ones.
The newly created trunk has more variables:
Code: [Select]
peername|5145557975peer
privileged|NO

2) I created an other trunk with generic iax with same results

3) I created a new carrier with specific host and a new trunk with this carrier. Same results.
Sophie from Montréal

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: missing iax registrations (version 688)
« Reply #9 on: December 28, 2008, 08:39:25 PM »
Thanks

this helps a lot with a problem like this.

Kind Regards

S

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: missing iax registrations (version 688)
« Reply #10 on: December 29, 2008, 10:38:47 PM »
Hello Sophie,

We think we've found your problem and we will release a new build shortly.  If you cannot wait until then, here is a small patch for you to try...

edit the module /etc/e-smith/web/functions/sarktrunk

At or around line 807 find the following...

Code: [Select]
          if ($technology eq "SIP" || $technology eq "IAX") {
Replace it with...

Code: [Select]
          if ($technology eq "SIP" || $technology eq "IAX2") {
This should bring back your lost registration strings.


Kind Regards

S

Offline soprom

  • *
  • 589
    • www.logiciel-libre.org
Re: missing iax registrations (version 688)
« Reply #11 on: December 30, 2008, 12:16:49 AM »
I'm not sure it did it.
I did a commit after as simple change in a trunk with no changes.
Sophie from Montréal

Offline soprom

  • *
  • 589
    • www.logiciel-libre.org
Re: missing iax registrations (version 688)
« Reply #12 on: December 30, 2008, 02:10:53 AM »
I found the problem:

In each trunk form, the field "Registration String:" was blank except for one.

After re-filling these fields, registration lines show up in iax.conf.

The patch you provided in your post displays this field, but it was empty, or I committed with empty fields.

In my understanding, the version update did not carry over all values for this field.
« Last Edit: December 30, 2008, 04:47:30 AM by soprom »
Sophie from Montréal