[asterisk-users] Asterisk MOH not working with Elastix asterisk1.6.2.18

virendra bhati virbhati at gmail.com
Mon Apr 11 12:49:46 CDT 2011


Yes ,

I show me the all configured MOH. But don't play the MOH.

After 12 sec of silence CLI give message

Stop music on hold....

As I told you that default moh also not played :)

On Mon, Apr 11, 2011 at 9:55 PM, Danny Nicholas <danny at debsinc.com> wrote:

>    ------------------------------
>
> *From:* asterisk-users-bounces at lists.digium.com [mailto:
> asterisk-users-bounces at lists.digium.com] *On Behalf Of *virendra bhati
> *Sent:* Monday, April 11, 2011 11:23 AM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* Re: [asterisk-users] Asterisk MOH not working with Elastix
> asterisk1.6.2.18
>
>
>
> Hi All,
>
> I already try StartMusicOnHold() instead of  MusicOnHold();
>
> Even default asterisk MOH not playing.
>
>
>  On Mon, Apr 11, 2011 at 9:17 PM, Warren Selby <wcselby at selbytech.com>
> wrote:
>
> Your last line in the dialplan should be StartMusicOnHold(), not just
> MusicOnHold().
>
> Thanks,
>
> --Warren Selby, dCAP
>
>
> On Apr 11, 2011, at 6:24 AM, virendra bhati <virbhati at gmail.com> wrote:
>
>  I am using Elastix. Asterisk is used for PBX application in Elastix. I
> want to make customize MOH. But not able to use MOH. I make simple extension
> in asterisk conf file but no success :(
>
> But when I used Vanilla Asterisk then All things are working....
>
> Below are the details of configuration files.
>
>
> Even default MOH is also not working....
>
> *Asterisk Version 1.6.2.17.2
> *
> *1) Extension.conf*
>
> [incoming]
> exten => 6000,1,Answer
> exten => 6000,n,Set(CHANNEL(musicclass)=BSNL)
> exten => 6000,n,Set(foo=${CHANNEL(musicclass)})
> exten => 6000,n,MusicOnHold(BSNL)
>
>
> *2) Musiconhold.conf*
>
> [BSNL]
> mode=files
> directory=/var/lib/asterisk/moh/MTNL
>
> [Bhati]
> mode=files
> directory=/var/lib/asterisk/moh/Bhati
>
> *3) Error log:-*
>
> == Using SIP RTP TOS bits 184
> == Using SIP RTP CoS mark 5
>   -- Executing [6000 at bhati:1] Answer("SIP/1001-00000006", "") in new stack
>   -- Executing [6000 at bhati:2] Set("SIP/1001-00000006",
> "CHANNEL(musicclass)=BSNL") in new stack
>
>   -- Started music on hold, class 'BSNL', on SIP/1001-00000006
>   -- Stopped music on hold on SIP/1001-00000006
>   == Spawn extension (bhati, 6000, 4) exited non-zero on
> 'SIP/1001-00000006'
>
> --
> -----
> Thanks and regards
>
>  Virendra Bhati
> +91-9172341457
> Asterisk Engineer
>
>   --
> _____________________________________________________________________
> -- 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>
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    <http://lists.digium.com/mailman/listinfo/asterisk-users>
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> --
> _____________________________________________________________________
> -- 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
>
>
>
>
> --
> -----
> Thanks and regards
>
>  Virendra Bhati
> +91-9172341457
> Asterisk Engineer
>
> *[Danny Nicholas] *
>
> *From CLI do *
>
> *Moh show files *
>
> *This will show you if your class is set up correctly.*
>
>
>
> --
> _____________________________________________________________________
> -- 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
>



-- 
-----
Thanks and regards

 Virendra Bhati
+91-9172341457
Asterisk Engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110411/b757b234/attachment.htm>


More information about the asterisk-users mailing list