Hi Stefan,

I have done what you told me to do, but nothing changed. Always the same problem.

Here my extensions.conf

[originating_hind]
; Anonymous call
exten => _55tel_SIP.,1,Answer()
exten => _55tel_SIP.,2,SetCallerPres(prohib)
exten => _55tel_SIP.,3,Dial(SIP/${EXTEN:[EMAIL PROTECTED])
exten => _55tel_SIP.,4,Hangup()
 
[terminating_hind]
; Deny anonymous call
exten => _tel_SIP.,1,Goto(ivr_context,s,1)

[ivr_context]
exten => s,1,Answer()
exten => s,2,Set(caller={CALLERID(name)})
exten => s,n,GotoIf($["${caller}" = "Unknown"]?deny:allow)
exten => s,n(allow),Dial(SIP/${[EMAIL PROTECTED])
exten => s,n,Hangup()
exten => s,n(deny),Hangup()

Is there a problem in my file ?

Regards

Stefan Gofferje a écrit :
[EMAIL PROTECTED] schrieb:
  
Thanks for help, but I don't understand what you say.  How is it
possible to handle the error in the dialplan if my request  return a 482
after entering Asterisk, but before accessing the dialplan ?
    

Ok :). I meant, you should handle the whole thing in the dialplan
without creating a loop.
A loop is when a request is originating from the same PBX as it is
directed to.

Example:
Your Asterisk is at IP 192.168.1.1.
You have a phone context and an IVR context

[phones]
exten => 1234,1,Dial(SIP/[EMAIL PROTECTED]) ;Loop, VERY BAD!
exten => 4321,1,Goto(ivr_context,s,1)     ;This is how it should be

[ivr_context]
exten => s,1,Background (welcome)
...

Terve,
Stefan

  
--
Rémi Druilhe



_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to