MOH - Play from last position instead of beginning

Is it possible to set up MOH where, instead of starting from the beginning for every new call that comes in, it will begin to play from the last position, or from a random position? The key is that it should carry over to other calls too, rather than doing this just for the current call session.

Thanks!

I believe you can use an external application to do this.

I have some really old MOH configs that use the ‘rawplayer’ application that comes in the contrib directory of the asterisk source, They play continuously instead of starting over for each new MOH request like the inbuild MOH does.

[cust77]
mode=custom
directory=/var/lib/asterisk/moh/cust77
application=/usr/bin/rawplayer

Thanks! I’ll look into this