SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tarunOffline



Joined: Jan 09, 2008
Posts: 19

Status: Offline
Posted: Feb 09, 2009 - 11:29 AM Reply with quote Back to top
Hi all,

I have one query that if I want one audio file to be played to called party then what should I do in asterisk dialplan.

I have two users at asterisk i.e 789 and 123.
If 789 user makes call to 123, then I want asterisk should play a sound file when 123 accepts the call.

I wrote these lines in dialplan for 123 :

exten => 123,1,System(echo 'testing asterisk server for speech' | /usr/bin/text2wave -scale 1.5 -F 8000 -o /home/test_asterisk.ulaw -otype ulaw)
exten => 123,2,Playback(/home/test_asterisk)

so when i call 123,
this sound file gets created and gets played to 789.
but i want this file to get played to called party, 123.

How should i do this?
what changes required in dialplan?

Please help.
Regards,
Tarun.
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3347
Location: Bath UK
Status: Offline
Posted: Feb 09, 2009 - 11:54 AM Reply with quote Back to top
Hi

Basicly you have to use the applicationmap option in features.conf and setup an appliction to do this.

http://www.voip-info.org/wiki/view/Aste ... tures.conf

One issue with this method is that the caller wont know whrn the message has ended they will just get the callee back

Ian
View user's profile Send private message
tarunOffline



Joined: Jan 09, 2008
Posts: 19

Status: Offline
Posted: Feb 09, 2009 - 02:27 PM Reply with quote Back to top
Hi,

Thanks for replying.
caller = 789
callee = 123
As u said, do it through applicationmap in features.conf
I added these lines in features.conf :

[applicationmap]
Set(DYNAMIC_FEATURES=hangup#play#testfeature)
testfeature => *9,peer,Playback,tt-monkeys

and in extensions.conf, i made follwong dialplan :
exten => 123,1,Set(DYNAMIC_FEATURES=testfeature)
exten => 123,2,Dial(SIP/123)

I think with these changes, when i dial 123,
on accepting call at 123, user 123 should hear tt-monkeys sound file.
But, it doesnt work. No voice at callee 123.
Have i made correct changes ?

Regards,
Tarun.
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3347
Location: Bath UK
Status: Offline
Posted: Feb 09, 2009 - 04:15 PM Reply with quote Back to top
[applicationmap]
Set(DYNAMIC_FEATURES=hangup#play#testfeature)
testfeature => *9,callee,Playback,tt-monkeys


and in extensions.conf, i made follwong dialplan :
exten => 123,1,Set(DYNAMIC_FEATURES=testfeature)
exten => 123,2,Dial(SIP/123)

then dial *9
View user's profile Send private message
tarunOffline



Joined: Jan 09, 2008
Posts: 19

Status: Offline
Posted: Feb 10, 2009 - 05:19 AM Reply with quote Back to top
As u said,
dial *9,

where i need to dial it on caller side or callee side.
What should be procedure ?

I dial 123 user from 789 user, then 123 is ringing,
problem is textbox where i specify numbers to dial gets disabled while call making.

So, how should i press *9 and where,
how it would play sound at callee side?

Please help.
Waiting for response.

Thanking you.

Regards,
Tarun.
View user's profile Send private message
tarunOffline



Joined: Jan 09, 2008
Posts: 19

Status: Offline
Posted: Feb 10, 2009 - 06:01 AM Reply with quote Back to top
Hi,

I installed Xlite on window machine where i m able to press *9 on its keypad while call.

Here, what i m doing is when 789 calls 123 user, 123 starts ringing, then i accept call on 123, after that i press *9,
but no success, i didnt hear sound file on callee 123.

Please guide to find direction where i can play sound file at callee side,

Its urgent,
Please help.

Waiting for response.
Regards,
Tarun.
View user's profile Send private message
ianplainOffline
Site Admin


Joined: Jul 05, 2004
Posts: 3347
Location: Bath UK
Status: Offline
Posted: Feb 10, 2009 - 12:46 PM Reply with quote Back to top
Hi

Ok you want

789 calls 123
123 answers
789 presses *9
123 heres message

Is that correct ?

Ian
View user's profile Send private message
tarunOffline



Joined: Jan 09, 2008
Posts: 19

Status: Offline
Posted: Feb 10, 2009 - 01:06 PM Reply with quote Back to top
Hi ian,

Thanks for replying.
That was correct upto some extent.

Yes, i just wanted callee 123 hears sound file,

i thought 123 would press *9 instead of 789,

I think 123 callee should press *9 after answering call from 789 to listen sound file.

Please help,
what to do, what changes do i need to make that working.

I waited whole day and side by side searched on net. But no information. jst specified usage of [applicationmap].

Waiting for response
View user's profile Send private message
tarunOffline



Joined: Jan 09, 2008
Posts: 19

Status: Offline
Posted: Feb 12, 2009 - 09:31 AM Reply with quote Back to top
Hi all,

I found option in dial() that is working:
A(x) : announce sound file where x is sound file.

It is used as :
exten=>123,1,Dial(SIP/123,20,A(tt-monkeys))

it played tt-monkeys sound file when 123 is called and is answered.

Thank you all.

Regards,
Tarun.
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.