Koozali.org: home of the SME Server

Custom Apps Not Working

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Custom Apps Not Working
« on: September 24, 2009, 06:37:01 PM »
I am using 2.3.2-12 and have just tried the custom app *901* to save backup files. I had to set the phone dialplan to accept *xxx* first and then the call went through, but instead of getting an email of backup files I got a message about call forwarding. I believe this has something to do with http://forums.contribs.org/index.php/topic,44549.0.html and the *xx codes implemented.

Changing the custom app to *991* I got an email to admin with the backup, but changing it back to *901* gave me the call forward voice announcement again.

I haven't tried the other custom apps but assume a similar problem.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Custom Apps Not Working
« Reply #1 on: September 24, 2009, 09:07:39 PM »
You are quite correct...

Unfortunately the *90nnnn NANPA code interferes with *901* (as you've spotted).   We'll take a look at it for you.  *90X* isn't part of SARK, it's just an example of how to build custom apps.  You can change *901* to anything you like.

Kind Regards



 

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Custom Apps Not Working
« Reply #2 on: September 24, 2009, 11:01:56 PM »
This has been fixed and will be included in the next out.

If you can't wait then here is a patch for you..

Using your favourite editor load the following template...

/etc/e-smith/templates/etc/asterisk/extensions.conf/90-presets

At or near line 208 find

Code: [Select]
       exten => _*90X.,1,agi(selintra,*22*$\{EXTEN:3\})
Replace it with

Code: [Select]
       exten => _*90XX.,1,agi(selintra,*22*$\{EXTEN:3\})
save it back and issue a commit from Globals Panel.

That should do it.

Kind Regards

S
« Last Edit: September 24, 2009, 11:05:04 PM by SARK devs »

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Re: Custom Apps Not Working
« Reply #3 on: September 25, 2009, 12:19:11 AM »
Thanks

I'll give it a go and let you know if it doesn't work