time conditions to extensions

Discussion in 'General' started by telecomtechnician, Aug 31, 2008.

  1. telecomtechnician

    Joined:
    Jan 8, 2008
    Messages:
    422
    Likes Received:
    0
    hi there

    I want to configure a time condition on a context/extension basis. I want that all outbound or inbound calls be automaticly off hooked or terminated after a certain period of time. Of course this will be on certain contexts or extensions.

    Waiting for your comments

    David Medina
     
  2. DaveD

    Joined:
    Nov 12, 2007
    Messages:
    597
    Likes Received:
    0
    Why not use the day night module in freepbx to do what want.
     
  3. telecomtechnician

    Joined:
    Jan 8, 2008
    Messages:
    422
    Likes Received:
    0
    Thanks for answering. It would be nice if you could be more specific, for example, how do I apply a time condition to the context?, free pbx does not have in their option the length of the call.
    Waiting for your comments

    David Medina
     
  4. busster8

    Joined:
    Apr 13, 2008
    Messages:
    50
    Likes Received:
    0
    Just to be clear, you want an outbound or inbound call to terminate after a certain length of time. So basically if you applied a limitation of 15 min to extension 123, they could no make or get a call longer than 15 minutes.
     
  5. telecomtechnician

    Joined:
    Jan 8, 2008
    Messages:
    422
    Likes Received:
    0
    Hi there, for both I want to control the time of the call. But it should be on a context basis. Because I have toll restrictions on certain contexts, and the time of the call will be another toll control for the extensions on this contexts.
     
  6. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    This line would limit users to 15 minutes on outboud calls. Should be before the dialout macro

    exten => _NXXXXXX,N,Set(TRUNK_OPTIONS=tTwWL(900000:15000))

    Regards

    Rafael
     
  7. telecomtechnician

    Joined:
    Jan 8, 2008
    Messages:
    422
    Likes Received:
    0
    Hola Rafael
    Gracias por responder, especificamente en que parte esta el dial out macro?. recuerda que tengo varias contextos.

    Gracias

    David Medina
     
  8. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Hola David,

    Te mando un archivo extension_custom.conf para que te sirva de referencia:

    ----------------------------------------------
    [gerencias]
    include => interno
    include => outrt-003-local
    include => outrt-004-nacional
    include => outrt-005-celular
    include => outrt-006-internacional
    include => outrt-009-privadoJefe

    [coordinacion]
    include => interno
    ; LOCALES 15 MINUTOS
    exten => _NXXXXXX,1,Macro(pinsets,1,1)
    exten => _NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _NXXXXXX,n,Macro(outisbusy,)
    ; NACIONALES 15 MINUTOS
    exten => _03NXXXXXX,1,Macro(pinsets,2,1)
    exten => _03NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _03NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _03NXXXXXX,n,Macro(outisbusy,)
    exten => _04NXXXXXX,1,Macro(pinsets,2,1)
    exten => _04NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _04NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _04NXXXXXX,n,Macro(outisbusy,)
    exten => _05NXXXXXX,1,Macro(pinsets,2,1)
    exten => _05NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _05NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _05NXXXXXX,n,Macro(outisbusy,)
    exten => _06NXXXXXX,1,Macro(pinsets,2,1)
    exten => _06NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _06NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _06NXXXXXX,n,Macro(outisbusy,)
    exten => _07NXXXXXX,1,Macro(pinsets,2,1)
    exten => _07NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _07NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _07NXXXXXX,n,Macro(outisbusy,)
    ; CELULARES 5 MINUTOS
    exten => _08XXXXXXX,1,Macro(pinsets,3,1)
    exten => _08XXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(300000:15000))
    exten => _08XXXXXXX,n,Macro(dialout-trunk,5,${EXTEN},,)
    exten => _08XXXXXXX,n,Macro(dialout-trunk,8,${EXTEN},,)
    exten => _08XXXXXXX,n,Macro(outisbusy,)
    exten => _09XXXXXXX,1,Macro(pinsets,3,1)
    exten => _09XXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(300000:15000))
    exten => _09XXXXXXX,n,Macro(dialout-trunk,5,${EXTEN},,)
    exten => _09XXXXXXX,n,Macro(dialout-trunk,8,${EXTEN},,)
    exten => _09XXXXXXX,n,Macro(outisbusy,)

    ; FIN COORDINACION

    [oficial]
    include => interno
    ; LOCALES 15 MINUTOS
    exten => _NXXXXXX,1,Macro(pinsets,1,1)
    exten => _NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _NXXXXXX,n,Macro(outisbusy,)
    ; LLAMADAS AL 1999119
    exten => 1999119,1,Macro(pinsets,1,1)
    exten => 1999119,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => 1999119,n,Macro(outisbusy,)
    ; NACIONALES 15 MINUTOS
    exten => _03NXXXXXX,1,Macro(pinsets,2,1)
    exten => _03NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _03NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _03NXXXXXX,n,Macro(outisbusy,)
    exten => _04NXXXXXX,1,Macro(pinsets,2,1)
    exten => _04NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _04NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _04NXXXXXX,n,Macro(outisbusy,)
    exten => _05NXXXXXX,1,Macro(pinsets,2,1)
    exten => _05NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _05NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _05NXXXXXX,n,Macro(outisbusy,)
    exten => _06NXXXXXX,1,Macro(pinsets,2,1)
    exten => _06NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _06NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _06NXXXXXX,n,Macro(outisbusy,)
    exten => _07NXXXXXX,1,Macro(pinsets,2,1)
    exten => _07NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _07NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _07NXXXXXX,n,Macro(outisbusy,)

    [oficial-1]
    include => interno
    ; LOCALES 15 MINUTOS
    exten => _NXXXXXX,1,Macro(pinsets,1,1)
    exten => _NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _NXXXXXX,n,Macro(outisbusy,)

    [guardiania]
    include => interno

    [control-interno]
    include => interno
    ; LOCALES 15 MINUTOS
    exten => _NXXXXXX,1,Macro(pinsets,1,1)
    exten => _NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _NXXXXXX,n,Macro(outisbusy,)
    ; LLAMADAS AL 1999119
    exten => 1999119,1,Macro(pinsets,1,1)
    exten => 1999119,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => 1999119,n,Macro(outisbusy,)
    ; NACIONALES 15 MINUTOS
    exten => _03NXXXXXX,1,Macro(pinsets,2,1)
    exten => _03NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _03NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _03NXXXXXX,n,Macro(outisbusy,)
    exten => _04NXXXXXX,1,Macro(pinsets,2,1)
    exten => _04NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _04NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _04NXXXXXX,n,Macro(outisbusy,)
    exten => _05NXXXXXX,1,Macro(pinsets,2,1)
    exten => _05NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _05NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _05NXXXXXX,n,Macro(outisbusy,)
    exten => _06NXXXXXX,1,Macro(pinsets,2,1)
    exten => _06NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _06NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _06NXXXXXX,n,Macro(outisbusy,)
    exten => _07NXXXXXX,1,Macro(pinsets,2,1)
    exten => _07NXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(900000:15000))
    exten => _07NXXXXXX,n,Macro(dialout-trunk,2,${EXTEN},,)
    exten => _07NXXXXXX,n,Macro(outisbusy,)
    ; CELULARES 5 MINUTOS
    exten => _08XXXXXXX,1,Macro(pinsets,3,1)
    exten => _08XXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(300000:15000))
    exten => _08XXXXXXX,n,Macro(dialout-trunk,5,${EXTEN},,)
    exten => _08XXXXXXX,n,Macro(dialout-trunk,8,${EXTEN},,)
    exten => _08XXXXXXX,n,Macro(outisbusy,)
    exten => _09XXXXXXX,1,Macro(pinsets,3,1)
    exten => _09XXXXXXX,2,Set(TRUNK_OPTIONS=tTwWL(300000:15000))
    exten => _09XXXXXXX,n,Macro(dialout-trunk,5,${EXTEN},,)
    exten => _09XXXXXXX,n,Macro(dialout-trunk,8,${EXTEN},,)
    exten => _09XXXXXXX,n,Macro(outisbusy,)
    ; INTERNACIONAL SIN TIEMPO
    include => outrt-006-internacional

    [interno]
    include => app-dnd-off
    include => app-dictate-record
    include => app-dictate-send
    include => ext-meetme
    include => app-pbdirectory
    include => app-callwaiting-cwoff
    include => app-callwaiting-cwon
    include => app-recordings
    include => app-cf-busy-off
    include => app-cf-busy-off-any
    include => app-cf-busy-on
    include => app-cf-off
    include => app-cf-off-any
    include => app-cf-on
    include => app-cf-unavailable-off
    include => app-cf-unavailable-on
    include => app-calltrace
    include => app-directory
    include => app-echo-test
    include => app-speakextennum
    include => app-speakingclock
    include => ext-queues
    include => ext-group
    include => parkedcalls
    include => park-dial
    include => grps
    include => app-speeddial
    include => app-dialvm
    include => app-vmmain
    include => ext-findmefollow
    include => fmgrps
    include => app-userlogonoff
    include => app-pickup
    #include => app-zapbarge
    include => ext-local
    include => app-miscapps-1
    include => app-miscapps-2
    include => ext-miscdests
    include => outrt-001-emergencia
    include => outrt-002-servicios-andinatel
    include => outrt-007-haciaGuayaquil
    exten => h,1,Hangup
    ---------------------------------------

    Saludos,

    Rafael
     
  9. atrivenoz

    Joined:
    May 20, 2011
    Messages:
    5
    Likes Received:
    0
    Re: Re:time conditions to extensions

    Puedo contralar el tiempo por anexo cuando hago una llamada por la operadora y cuando hacen una llamada externa tambien por la operadora ( Transferencia de llamadas)

    Beto
     

Share This Page