Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] subscriber state before dial


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ethy.brito at inexo.co...
Guest





PostPosted: Tue Nov 24, 2015 7:20 am    Post subject: [asterisk-users] subscriber state before dial Reply with quote

Hi All

After a Dial() I get:

WARNING[7964][C-000075a8]: app_dial.c:2437 dial_exec_full: Unable to create
channel of type 'SIP' (cause 20 - Subscriber absent)

if the subscriber is not registered.

Is there a way from dialplan to know, *before* Dial(), if a destination
Subscriber is
a) not registered or
b) busy ?

I need to redirect a call to some other Subscriber if (s)he is not there like this: Dial(SIP/1&SIP/2&SIP/3).
So if "2" is not registered (or is busy) then Dial(SIP/1&SIP/5&SIP/3).

Regards

--

Ethy H. Brito /"\
InterNexo Ltda. \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
+55 (12) 3797-6860 X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
S.J.Campos - Brasil / \

PGP key: http://www.inexo.com.br/~ethy/0xC3F222A0.asc

--
_____________________________________________________________________
-- 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
Back to top
barryf-lists at flanag...
Guest





PostPosted: Tue Nov 24, 2015 7:39 am    Post subject: [asterisk-users] subscriber state before dial Reply with quote

On 24 November 2015 at 12:20, Ethy H. Brito <ethy.brito@inexo.com.br (ethy.brito@inexo.com.br)> wrote:
Quote:

Hi All

After a Dial() I get:

WARNING[7964][C-000075a8]: app_dial.c:2437 dial_exec_full: Unable to create
channel of type 'SIP' (cause 20 - Subscriber absent)

if the subscriber is not registered.

Is there a way from dialplan to know, *before* Dial(), if a destination
Subscriber is
        a) not registered or
        b) busy ?

I need to redirect a call to some other Subscriber if (s)he is not there like this: Dial(SIP/1&SIP/2&SIP/3).
So if "2" is not registered (or is busy) then Dial(SIP/1&SIP/5&SIP/3).



Perhaps CHANISAVAIL will do what you need: http://www.voip-info.org/wiki/view/Asterisk+cmd+ChanIsAvail


Hope this helps.


-Barry Flanagan
Back to top
ethy.brito at inexo.co...
Guest





PostPosted: Tue Nov 24, 2015 9:57 am    Post subject: [asterisk-users] subscriber state before dial Reply with quote

On Tue, 24 Nov 2015 12:39:01 +0000
Barry Flanagan <barryf-lists@flanagan.ie> wrote:

Quote:
On 24 November 2015 at 12:20, Ethy H. Brito <ethy.brito@inexo.com.br> wrote:

Quote:

Hi All

After a Dial() I get:

WARNING[7964][C-000075a8]: app_dial.c:2437 dial_exec_full: Unable to create
channel of type 'SIP' (cause 20 - Subscriber absent)

if the subscriber is not registered.

Is there a way from dialplan to know, *before* Dial(), if a destination
Subscriber is
a) not registered or
b) busy ?

I need to redirect a call to some other Subscriber if (s)he is not there
like this: Dial(SIP/1&SIP/2&SIP/3).
So if "2" is not registered (or is busy) then Dial(SIP/1&SIP/5&SIP/3).


Perhaps CHANISAVAIL will do what you need:
http://www.voip-info.org/wiki/view/Asterisk+cmd+ChanIsAvail

Hope this helps.

Thank you.

I'll give it a try and let you know.

cheers

Ethy

Quote:

-Barry Flanagan


--

Ethy H. Brito /"\
InterNexo Ltda. \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
+55 (12) 3797-6860 X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
S.J.Campos - Brasil / \

PGP key: http://www.inexo.com.br/~ethy/0xC3F222A0.asc

--
_____________________________________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services