Hi to all
I am using asterisk 1.6 version with centos 5.3.I am trying to configure MOH for individual sip users/peers ,i configure that music class in sip.conf its working fine.But when i am trying to configure this for individual context in the dialplan it will going to default MOH. For this i am removing musicclass in sip.conf and only mentioning in the extensions.conf but i am not getting that.That conf files are below
sip.conf
[1001]
name=1001
secret=1001
context=mohmp3
host=dynamic
type=friend
disallow=all
allow=ulaw,alaw,gsm
[1002]
name=1002
secret=1002
context=mohmp3
host=dynamic
type=friend
disallow=all
allow=ulaw,alaw,gsm
extensions.conf
[mohmp3]
exten =>1001,1,Dial(SIP/1001,5)
exten =>1001,n,Set(CHANNEL(musicclass)=bpmf)
exten =>1001,n,Set(foo=${CHANNEL(musicclass)})
exten =>1001,n,StartMusicOnHold(bpmf)
exten =>1001,n,Playback(vm-youhave)
exten =>1001,n,StopMusicOnhold()
exten =>1002,1,Dial(SIP/1002,5)
exten =>1002,n,Set(CHANNEL(musicclass)=bpmf)
exten =>1002,n,Set(foo=${CHANNEL(musicclass)})
exten =>1002,n,StartMusicOnHold(bpmf)
exten =>1002,n,Playback(vm-youhave)
exten =>1002,n,StopMusicOnHold()
musiconhold.conf
[bpmf]
mode=files
directory=/var/lib/asterisk/mohmp3
Can any one pls guide me what is the error here.I strucked here from long time.
Best Regards,
Vishnu