Re: [asterisk-users] subscriber absent

2015-01-29 Thread A J Stiles
On Wednesday 28 Jan 2015, Ethy H. Brito wrote:
 Hi all
 
 WE have some users that turns off their phones when they are not at home.
 
 We see the warning message:
 
   Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
 
 just after the Dial() command and a
 
   Everyone is busy/congested at this time
 
 message.
 
 Where is this unable - cause 20 status available in the dialplan?

This means the SIP endpoint is defined in sip.conf, but no device is 
registered; which is consistent with phones being turned off.

 Which variable holds this?
 
 We'd like to play something to the caller in case the user is absent.

It should be ${HANGUPCAUSE} .  So you can use something like

Gotoif($[${HANGUPCAUSE}=20]?subs_absent)

in your dialplan, and it will go to the label (subs_absent) if the Dial() 
fails for cause 20 - Subscriber Absent.  Then you can play a recorded 
announcement, or send them to voicemail.


-- 
AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


[asterisk-users] subscriber absent

2015-01-28 Thread Ethy H. Brito

Hi all

WE have some users that turns off their phones when they are not at home.

We see the warning message:

Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)

just after the Dial() command and a 

Everyone is busy/congested at this time

message.

Where is this unable - cause 20 status available in the dialplan? 
Which variable holds this?

We'd like to play something to the caller in case the user is absent.

Cheers

Ethy

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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