How can divert the caller to mobile phone?

General discussions about Asterisk.

Moderators: Moderator, Support

How can divert the caller to mobile phone?

Postby mespio » Thu Feb 23, 2012 11:25 am

Hi
I want to impelement a simple scenario in Elastix with Extentions.
Suppose we have 2 extention: 100 and 101
we want to have this planing in our company: when some body called 100 extention, after 15 sec, if not answer, the caller is diverted to mobile phone of extention.
How can i do it?
Thanks.
with regards.Mojtaba
mespio
Oldsterisk
 
Posts: 63
Joined: Thu Feb 23, 2012 11:09 am

Re: How can divert the caller to mobile phone?

Postby woren » Fri Feb 24, 2012 9:12 am

mespio wrote:Hi
I want to impelement a simple scenario in Elastix with Extentions.
Suppose we have 2 extention: 100 and 101
we want to have this planing in our company: when some body called 100 extention, after 15 sec, if not answer, the caller is diverted to mobile phone of extention.
How can i do it?
Thanks.
with regards.Mojtaba


Code: Select all

see document [url]http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial[/url]

exten => 100,1,Dial(SIP/100,15,tTr)
exten => 100,1,Dial(SIP/98765432198,15)
woren
Newsterisk
 
Posts: 8
Joined: Sat Oct 08, 2011 3:11 am

Re: How can divert the caller to mobile phone?

Postby david55 » Fri Feb 24, 2012 9:46 am

woren,

Almost the right question, this time, although you missed the reference to Elsastix!

The answer is wrong, for raw Asterisk, as the second line should be priority 2. Also, tTr is not necessarily right for this user, and you would expect the same options on line 2. In particular, specifying "T" makes the system vulnerable to toll fraud.
david55
Moves Like Spencer
 
Posts: 11001
Joined: Fri Sep 26, 2008 5:03 am

Re: How can divert the caller to mobile phone?

Postby david55 » Fri Feb 24, 2012 10:02 am

Regarding tbe "T", the contexts might not actually allow an external caller to make an external call, but it still should not have been used blindly.

I also missed the fact that it would be a rather unusual configuration where SIP/98765432198 was valid, although it is not impossible; normally there would be a sip.conf section name in the middle. SIP/100 is quite likely to be valid, although it violates best current practice - device names should not be guessable.

There was no requirement to avoid going to mobile voicemail, so cutting off the call to the mobile after 15 seconds is a bit excessive.

None of this will be useful if the OP is trapped behind a GUI.
david55
Moves Like Spencer
 
Posts: 11001
Joined: Fri Sep 26, 2008 5:03 am

Re: How can divert the caller to mobile phone?

Postby TriStarGod » Mon Mar 05, 2012 1:47 pm

With this current setup, wouldn't two SIP lines be in use? The SIP line connecting the client to the PBX and then the SIP line connecting the PBX to cell phone.
TriStarGod
Newsterisk
 
Posts: 5
Joined: Mon Mar 05, 2012 1:10 pm

Re: How can divert the caller to mobile phone?

Postby david55 » Tue Mar 06, 2012 4:50 am

SIP lines are a commercial concept, which doesn't have very much physical significance.

If the SIP service provider allows it, and you don't use conflicting features, you can use "directmedia=yes" to have the media stream bypass Asterisk. This is actually the default.

You could also try using the Transfer application, rather than the second Dial. There is a good chance that your SIP service provider will not support this, and it is almost certain that they will not push a transfer back to the PSTN, as that would stop them blling for the call. If doing this, it is stronly advised not to Answer the call, as post answer redirections in Asterisk are flakey, particularly when they go wrong.
david55
Moves Like Spencer
 
Posts: 11001
Joined: Fri Sep 26, 2008 5:03 am


Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 5 guests