Koozali.org: home of the SME Server

[SAIL] add exten => i,1,....... to conferences context

guest22

[SAIL] add exten => i,1,....... to conferences context
« on: June 06, 2010, 06:48:15 PM »
Hi team,

how can I add the i (invalid) extensions or any other directive in default 'conferences' context of Sark please?

Thanks,
guest

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: [SAIL] add exten => i,1,....... to conferences context
« Reply #1 on: June 07, 2010, 01:27:12 AM »
You would need to modify the perl template which generates the conferences context into extensions.conf. This will effectively subvert your SAIL release. 

If you give us some background on why you want to change it then maybe we can help; either by putting it into the product or suggesting an alternative solution which doesn't involve changing the base code.
 
Kind Regards

S

guest22

Re: [SAIL] add exten => i,1,....... to conferences context
« Reply #2 on: June 07, 2010, 02:54:01 AM »
Fair enough,

1. One of the options of the IVR is to select 'conferencing'
2. Custom app askes for the conference number
3. Since the dial pattern is not being checked on the fly, any entered digits are being send (GoTo) the context 'conferences'
4. Conferences context does have the invalid 'extension/room', again not checked against a variable, but conference room digits caught in a variable
5. When not valid, send to the 'i' extension, say invalid and go back to 'please enter conference number' (loop)

By the way, how to 'jump' from any dial plan to a defined IVR in Sark?

I read on the wiki there are custom asterisk header/append dial plan fragments. Meetme.conf is just not 1 of them..

Hope it helps explaining it a bit more.

Regards,
guest

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: [SAIL] add exten => i,1,....... to conferences context
« Reply #3 on: June 07, 2010, 08:37:28 AM »
OK

You should be able to do it all within the app I think...
Code: [Select]
[myapp]
exten=>s,1,LetsDoSomeAsteriskCode()
.
.
exten=>s,n,goto(myconf1,1)

exten=>i,1,PlayBack(whatever)
exten=>i,n,GoTo(myapp,1)
.
.
exten,myconf1,1,Meetme(300,Mp)
exten,myconf1,n,Hangup


The above is just a sketch but you get the idea.


Quote
how to 'jump' from any dial plan to a defined IVR in Sark?

There is no direct entry point to IVRs in SAIL2.x, so you have to reference them indirectly

Create a dummy PTT_DiD trunk which routes to the IVR you want to invoke.  For example, lets say we've created a PTT_DiD with a DNID of 123456:-

Then, from your custom app you can do 

Code: [Select]
exten=>s,n,GoTo(mainmenu,123456,1)

Kind Regards

S


guest22

Re: [SAIL] add exten => i,1,....... to conferences context
« Reply #4 on: June 09, 2010, 06:44:30 AM »
Thanks