[asterisk-users] how to indicate an non-existent number?

Louis-David Mitterrand vindex+lists-asterisk-users at apartia.org
Wed Nov 8 07:41:23 MST 2006


On Mon, Nov 06, 2006 at 06:47:01PM -0600, Eric ManxPower Wieling wrote:
> Louis-David Mitterrand wrote:
> >Hello,
> >
> >Using a PRI (E1) with the euroisdn protocol, I don't seem to get any 
> >specific message from the telco when attempting to dial a non-existent 
> >number. Asterisk returns a busy/congested code, but nothing indicating 
> >the number's real status.
> >
> >How do you guys manage that issue? Do you record a message ("sorry, the 
> >number dialed can't be completed") and play it when the PRI or BRI 
> >returns a specific code? And what code is that?
> 
> We check the value of HANGUPCAUSE.  DIALSTATUS is a VERY generic 
> indication of the disposition of the call.

It seems PRI and BRI here always return 3 as HANGUPCAUSE

>From the wiki:

#define AST_CAUSE_NO_ROUTE_DESTINATION 3 

This is less than explicit regarding an unallocated number (basically I 
testes by dialling "impossibles" numbers).


More information about the asterisk-users mailing list