MoH while semi attended call transfer

General discussions about Asterisk.

Moderators: Moderator, Support

MoH while semi attended call transfer

Postby engiadina » Wed Dec 16, 2015 4:07 pm

hi all,

hope someone has a hint for me ...

At my system the MoH behaviour is not what I wanted to achieve. I understand it is the default behaviour.

Here is what happens:

Call comes in and is picked up at a phone.
Call should be transferred to another phone.
Press "hold" on the phone (Unify Openstage 60) and call is put in hold - caller hears moh
You dial the extension where the call should be transferred to and hang up.
Transfer phone rings until someone picks up - caller hears ringing during that time

I would like to have moh played all time.

What i know is, that when you dial the extension, the dialplan of the calling phone is used. After hangup the caller is being put in that position and hears the ringing.

I played with variables and inheritance with no success. As I understand the logic, when the call is put into hold, it is still existing. When you then call the number of the transfer extension this starts a new call - no inheritance works.

Is there any way do detect that this extension has a call in hold and therefore uses a different context for the second call?

Many thanks for your help,

engiadina
engiadina
Newsterisk
 
Posts: 6
Joined: Wed Dec 16, 2015 3:43 pm

Re: MoH while semi attended call transfer

Postby engiadina » Thu Dec 17, 2015 7:13 am

Update:

I tried to set the variable TRANSFER_CONTEXT globally. No change.

I have two dialplans :

[internal]
exten => 6011,1,Dial(SIP/6011,60)
...

[transfercontext]
exten => 6011,1,Dial(SIP/6011,60,m)
...

So when I call the transfer-target (in this case 6011) the dialplan from the calling phone is taken.

When I hang up, this call is not transferred to the transfercontext.
engiadina
Newsterisk
 
Posts: 6
Joined: Wed Dec 16, 2015 3:43 pm

Re: MoH while semi attended call transfer

Postby navaismo » Thu Dec 17, 2015 9:49 am

You can use the m option in the dial command to always hear music instead the ringtone, or maybe you need a queue. *shrugs* :roll:
navaismo
Salt of the Asterisk
 
Posts: 1610
Joined: Mon Dec 07, 2009 1:30 pm
Location: Mexico City, Mexico

Re: MoH while semi attended call transfer

Postby engiadina » Thu Dec 17, 2015 10:07 am

navaismo wrote:You can use the m option in the dial command to always hear music instead the ringtone, or maybe you need a queue. *shrugs* :roll:


That exactly is the solution I am using now. But I want to have a ringtone for internal calls and MoH for external calls waiting.
engiadina
Newsterisk
 
Posts: 6
Joined: Wed Dec 16, 2015 3:43 pm

Re: MoH while semi attended call transfer

Postby david55 » Sat Dec 19, 2015 4:20 am

Parameterise the option, based on the initial context.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: MoH while semi attended call transfer

Postby engiadina » Sat Dec 19, 2015 11:21 am

david55 wrote:Parameterise the option, based on the initial context.


Could you give me an example please?

The initial context is not easy to determine. I would like to know that a specific extension has a call in hold. And that call in hold should be after hangup of the transferring extension be put in a specific dialplan.

Thanks for you help,

Guido
engiadina
Newsterisk
 
Posts: 6
Joined: Wed Dec 16, 2015 3:43 pm

Re: MoH while semi attended call transfer

Postby david55 » Sat Dec 19, 2015 11:39 am

Dial(technology/address,,${MOption})

Set(Moption=m}

Set(Moption=) ; redundant

If you don't understand the initial context part, you need to do some basic reading.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: MoH while semi attended call transfer

Postby engiadina » Sat Dec 19, 2015 4:45 pm

Actually I debuged all contexts while transferring the call.

Call comes in and is handled in [incoming] context. Fine.

Now I take i.e. phone 1234 and answer the call. When I put that call on hold and call extension 5678 the context [dp1234] is used! Now I place the receiver of phone 1234 and the waiting caller is transferred to context [dp1234] and gets to hear the ringing.

My idea was that the waiting call gets transferred to some [transfer] context when I place down receiver of 1234. Basically the global variable TRANSFER_CONTEXT offers some sort of that function but only works if the transfer is done with #1 and not by the method described above. Unfortunately there this variable is simply ignored.

engiadina
engiadina
Newsterisk
 
Posts: 6
Joined: Wed Dec 16, 2015 3:43 pm

Re: MoH while semi attended call transfer

Postby david55 » Sat Dec 19, 2015 5:15 pm

With a SIP attended transfer, the call looks like a call on the phone's second line until you the REFER is sent. Asterisk has no idea it is a transfer when it starts the dialplan for it.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: MoH while semi attended call transfer

Postby engiadina » Sun Dec 20, 2015 11:03 am

david55 wrote:With a SIP attended transfer, the call looks like a call on the phone's second line until you the REFER is sent. Asterisk has no idea it is a transfer when it starts the dialplan for it.


Yep, that logical. But the moment the REFER is sent, everything is defined again. Now that IS a transfer. I'd expect Asterisk to transfer the whole stuff that moment to some [transfer] context if advised so, maybe via variable, config etc.

The transfer command exactly does that ... why not the attended transfer ?
engiadina
Newsterisk
 
Posts: 6
Joined: Wed Dec 16, 2015 3:43 pm


Return to Asterisk General

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest