[asterisk-users] Placing a SIP Call on Hold

Kevin P. Fleming kpfleming at digium.com
Sat Aug 8 09:40:36 CDT 2009


Venkateshwarlu Kakkireni wrote:
> Thanks for a quick reply... This link just shows how to set MOH feature if
> the phone has "hold" feature. I want to place a call on hold irrespective of
> SIP phones used... If I create an MOH extension as shown & transfer the
> calls to that extension and then if one party disconnects the call, the
> other party is still hearing the MOH...

If your goal is to achieve the same result as if one of the SIP phone
users had placed their end of the call on hold, you won't be able to
accomplish it. There is no method to trigger one of the SIP endpoints
placing the call on hold.

It would be possible (although there isn't currently a mechanism for
doing so) to make Asterisk initiate the transition to on-hold for both
legs of the call, but there would be no way for the phone users to take
the call off hold, since their phones did not put the call on hold in
the first place.

If you don't care whether the phones actually know that they are on
hold, a brute-force solution would be to redirect both channels into a
MeetMe, with both channels muted so they can't speak to each other, and
have a third channel playing MOH into the MeetMe. When you want to pull
them back off of this 'fake hold', just drop the MOH-playing channel and
unmute both of the phone channels so they can talk to each other again.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming at digium.com
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list