Hi guys, I’m newsterisk, I have the following task, and i don’t know how to solve it.
I have a context with its own default extension
[my-context]
exten => s,1,Answer()
same => n,Dial(SIP/817,10,tTwWA(demo-congrats))
same => n,Hangup()
I run it with originate command in CLI, or in AMI via telnet.
originate SIP/814 extension s@my-context
It’s simple and works in sequence
[ul]
- SIP/814 ringing
- I answer SIP/814
- SIP/817 ringing
- Another guy answers SIP/817
- Playing announcement at SIP/817
- Hangup
[/ul]
But it does not match my requirement yet, I don’t want the calling party (SIP/814 in this case) to join the sequence, I just want to give the called party (SIP/817) the announcement, and I don’t know how to do that stuff.
Btw, when called party is from the DAHDI source (eg DAHDI/1/${my-cellphone-number}), the announcement played before I accept the call, so I just can hear end part of the announcement. How would I fix that?
Any help would be appreciated.
Best Regard
Loi Dang