Come discriminare un numero occupato da uno inesistente o irragiungibile?

54 views
Skip to first unread message

Luca Gervasi

unread,
Feb 5, 2009, 12:36:59 PM2/5/09
to Asterisk-Ita
Salve a tutti,
ho un problema con asterisk: il mio routing di chiamata funziona bene
fino a quando non incontro un numero occupato o invalido (caso in cui
la chiamata semplicemente... muore).

La mia extension di uscita è questa:

[out-default]
ignorepat => 9
exten => _9.,1,Dial(SIP/${EXTEN:1}@voip.eutelia.it)

Mi chiedo se (e come) sia possibile simulare il suono di congestione o
il messaggio di numero inesistente.

Premetto che anche solo la discriminazione con "numero occupato" va
benissimo :D

Grazie a tutti

Lenz

unread,
Feb 5, 2009, 1:09:20 PM2/5/09
to asteri...@googlegroups.com


Devi intercettare lo status al termine del comando Dial(), e reagire di
conseguenza.
Ciao
l.


Dial sets DIALSTATUS to indicate its success or failure. However, under
some circumstances, execution will jump to priority n+101 in the current
context. This happens when:

All channels dialed were busy
There is exists something at n+101 in the current context
You are running asterisk 1.0.x, priorityjumping=yes is set in
extensions.conf, or the j option is specificed in the dial command

Note that in Asterisk v1.2+ priorityjumping is considered "off" by
default, which is a change from previous versions.

If the g option is specified, and the called party hangs up before the
calling party, then Dial continues execution at priority n+1.

Do Progress() before calling Dial() if you want asterisk to go in-band (in
order to use playtones configured in indications.conf etc.). In some cases
you may have to use Answer(), but that is to be avoided because it
"charges", prevents auto-redial, etc.

Note: The bristuff patches change the dial behaviour slightly and jump to
n+201 if the dialed destination isn't connected (e.g. a SIP softphone is
not up and running, or hasn't registered).

DIALSTATUS - For more details see Asterisk Variable DIALSTATUS

${DIALSTATUS} will be one of:

CHANUNAVAIL : Channel unavailable (for example in sip.conf, when using
qualify=, the SIP chan is unavailable)
BUSY : Returned busy
NOANSWER : No Answer (i.e SIP 480 or 604 response)
ANSWER : Call was answered
CANCEL : Call attempt cancelled (i.e user hung up before the call
connected)
DONTCALL : Privacy manager don't call
TORTURE : Privacy manager torture menu
CONGESTION : Means Congestion, or anything else (some other error setting
up the call)




On Thu, 05 Feb 2009 18:36:59 +0100, Luca Gervasi <luca.g...@gmail.com>
wrote:
--
Loway Research - Home of QueueMetrics
http://queuemetrics.com
Reply all
Reply to author
Forward
0 new messages