[asterisk-users] How to play different different hold music.
SamyGo
govoiper at gmail.com
Wed Jul 4 02:33:22 CDT 2012
I want to quote A J Stile here again:
"That is all. Thank you.
FAQ.
welcome to read the
believe me, you are
f you do not
to *bottom*.
we read from *top*
In this mailing list, "
Now coming to the point. I'm not sure how passing variable/headers works
in IAX. But yes google again and you'll find a recent thread on how to do
that. thats only if you don't want to replace-all your code and skip the
easiest but laborious approach.
Ok - 5 minutes of google returned this: *IAXVAR*
http://www.das-asterisk-buch.de/functions-iaxvar.html
Try IAX Variables and retrieve those variables on the other server.
BR
Sammy
On Wed, Jul 4, 2012 at 11:47 AM, akhilesh chand
<omakhileshchand at gmail.com>wrote:
> hi,
>
> Call will first come in my iax.conf,in iax.conf i have define the
> context(outgoing) name then call goes into extension.conf where i
> have written small context(outgoing) then call goes into sip.conf where
> agent(extension) is created.
>
> In this Scenario how i can put different moh for the different services.
>
> If i use Danny's Scenario is very valuable but it is difficult to me to
> apply in my Scenario because i shall change my complete Dailplan.
>
> Please guide me.
>
> Regards
> Akhilesh
>
> On Wed, Jul 4, 2012 at 10:11 AM, SamyGo <govoiper at gmail.com> wrote:
>
>> Hi,
>>
>> The method Danny suggested is simple except I guess he swapped the
>> priority and exten field.
>> The idea is to dial a different extension on B server if you need to use
>> some other MOH class. If you don't want to change the dialled extension you
>> can always add a single digit prefix in Server-A and Server-B which
>> signifies the MOH class and use rest of the dialled extension as your real
>> destination number !
>>
>> BR
>> Sammy
>>
>>
>>
>> On Tue, Jul 3, 2012 at 7:16 PM, Danny Nicholas <danny at debsinc.com>wrote:
>>
>>> Since you’re using IAX2 to contact Server B, you can use channel
>>> variables to control the moh class. There was a good thread in June on
>>> this. An “easier” way however would be to have each service dial a
>>> different IAX number, then have each IAX number on server B select it’s MOH
>>> Class.****
>>>
>>> Server A****
>>>
>>> [service1]****
>>>
>>> Exten => N,1,Set(Service_name=service1)****
>>>
>>> Exten => N,n,Dial(IAX2,server2:1234)****
>>>
>>> [service2]****
>>>
>>> Exten => N,1,Set(Service_name=service2)****
>>>
>>> Exten => N,n,Dial(IAX2,server2:3456)****
>>>
>>> ** **
>>>
>>> Server B****
>>>
>>> [default]****
>>>
>>> Exten => N,1,Verbose(start)****
>>>
>>> Exten => N,1234,answer()****
>>>
>>> Exten => N,n,Set(MOHClass=1)****
>>>
>>> Exten => N,3456,answer()****
>>>
>>> Exten => N,n,Set(MOHClass=2)****
>>>
>>> ** **
>>>
>>> ** **
>>>
>>> *From:* asterisk-users-bounces at lists.digium.com [mailto:
>>> asterisk-users-bounces at lists.digium.com] *On Behalf Of *akhilesh chand
>>> *Sent:* Tuesday, July 03, 2012 9:11 AM
>>> *To:* asterisk-users at lists.digium.com
>>> *Subject:* Re: [asterisk-users] How to play different different hold
>>> music.****
>>>
>>> ** **
>>>
>>> ****
>>>
>>> hi,****
>>>
>>> ****
>>>
>>> Server A ----> extentsion.conf****
>>>
>>> ****
>>>
>>> exten => N,n,Set(Service_name="Test")****
>>>
>>> exten => N,n,Dial(IAX2/
>>> server2:server2 at 192.168.14.112/${result},${Service_name}<http://server2:server2@192.168.14.112/$%7bresult%7d,$%7bService_name%7d>
>>> )****
>>>
>>> ****
>>>
>>> but Server B doesn't identify service_name.****
>>>
>>> ****
>>>
>>> ****
>>>
>>> extentsion.conf****
>>>
>>> ****
>>>
>>> [outgoing]****
>>>
>>> exten =>
>>> _X.,1,Set(_CALLTIME=${STRFTIME(,Asia/Calcutta,%d-%b-%y-%H-%M-%S)})****
>>>
>>> exten => _X.,1,Set(CHANNEL(musicclass)=${Service_name})****
>>>
>>> exten =>
>>> _X.,n,Set(CALLTIME=${STRFTIME(${EPOCH},Asia/Calcutta,%d-%b-%Y-%H-%M-%S)})
>>> ****
>>>
>>> exten => _X.,n,Set(RECSUBDIR=${STRFTIME(${EPOCH},Asia/Calcutta,%d%b%Y)})
>>> ****
>>>
>>> exten => _X.,n,Set(FILENAME=${EXTEN}_${CALLERID(num)}_${CALLTIME}.WAV)**
>>> **
>>>
>>> exten => _X.,n,Set(RECORDFILENAME=${RECSUBDIR}/${FILENAME})****
>>>
>>> exten => _X.,n,MixMonitor(${RECORDING_PATH}${RECORDFILENAME})****
>>>
>>> exten => _X.,n,Dial(SIP/${EXTEN},120)****
>>>
>>> exten => _X.,n,Hangup()****
>>>
>>> ****
>>>
>>> ****
>>>
>>> ****
>>>
>>> ****
>>>
>>> ****
>>>
>>> ****
>>>
>>> Regards****
>>>
>>> Akhilesh****
>>>
>>> ** **
>>>
>>> On Tue, Jul 3, 2012 at 6:00 PM, akhilesh chand <
>>> omakhileshchand at gmail.com> wrote:****
>>>
>>> Dear All,****
>>>
>>> ****
>>>
>>> I have two server 'A' and 'B' . In Server 'A', five different
>>> ivr (Sevices) is playing and call is *forwarding *into Server 'B'.
>>> Server 'B' basically use for agent login(Extension).****
>>>
>>> I want to play different hold music(Server 'B') bases on the
>>> corresponding services which is running into server 'A'.****
>>>
>>> ****
>>>
>>> A single agent takes the call from different different services but hold
>>> music is play astrisk own by default.****
>>>
>>> ****
>>>
>>> Is there any way to play different hold music bases on services
>>> which run into server A.****
>>>
>>> ****
>>>
>>> I have some changes into musiconhold.conf (server B) but problem is no
>>> solve.****
>>>
>>> ****
>>>
>>> please help me.****
>>>
>>> ****
>>>
>>> ****
>>>
>>> Regards****
>>>
>>> Akhilesh****
>>>
>>> ** **
>>>
>>> --
>>> _____________________________________________________________________
>>> -- 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
>>>
>>
>>
>> --
>> _____________________________________________________________________
>> -- 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
>>
>
>
> --
> _____________________________________________________________________
> -- 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120704/274a7d4a/attachment.htm>
More information about the asterisk-users
mailing list