RE: [Asterisk-Users] Starting RTP with Dial and MusicOnHold

2005-12-15 Thread Pedro Nunes
Hello,

Do you try

Answer() and then Dial(SIP/xyz,,m)???

Exten = ???,1,Answer()
Exten = ???,2,Dial(SIP/xyz,,m)

You need to answer the call before you can hear music on hold.

Pedro Nunes

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Aaron
Clauson
Sent: quinta-feira, 15 de Dezembro de 2005 4:45
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: [Asterisk-Users] Starting RTP with Dial and MusicOnHold

Hi,

I'm trying to get Asterisk working with a supplier's Cerpack switch and
everything is working except audio ringback for calls coming from
Cerpack to
Asterisk.

The Cerpack switch only does out of band progress indication (seems a
bit
strange for SIP to SIP calls?!) so I've spent the last two days trying
to
find a way to force Asterisk to send an RTP stream to Cerpack for ring
back.

Theoretically the Dial command with the m option looks to be exactly
what I
need:

Dial(SIP/xyz,,m)

This should play musiconhold back to the caller and in my case I just
took a
recording of the PSTN tones I wanted to play and created a musiconhold
class
for them. The command will work correctly when dialled from a SIP phone
connected to Asterisk but not for calls coming from Cerpack. As far as I
can
tell this is because Asterisk won't initiate the RTP stream and waits
for a
packet from the client before starting to play the musiconhold, perhaps
assuming the connection is not available until it gets a packet. In this
case Cerpack isn't sending a packet so no audio is heard until the call
is
answered.

Has anybody seen anything like this before?

Thanks,

Aaron


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Starting RTP with Dial and MusicOnHold

2005-12-15 Thread Aaron Clauson
 -Original Message-
 From: Pedro Nunes [mailto:[EMAIL PROTECTED] 
 Sent: 15 December 2005 08:59
 To: [EMAIL PROTECTED]; Asterisk Users Mailing List - 
 Non-Commercial Discussion
 Subject: RE: [Asterisk-Users] Starting RTP with Dial and MusicOnHold
 
 Hello,
 
 Do you try
 
 Answer() and then Dial(SIP/xyz,,m)???
 
 Exten = ???,1,Answer()
 Exten = ???,2,Dial(SIP/xyz,,m)
 
 You need to answer the call before you can hear music on hold.
 

Hi Pedro,

What you suggest would work but is no good as anybody calling our numbers
would be charged for the call. 

The Dial(,,m) command can play MusicOnHold without answering the call, I
know I've tested it ;-). In this case I just need to give the RTP a kick
start or something, the console reports the MusicOnHold has started playing
but there is no RTP.

Thanks,

Aaron


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Starting RTP with Dial and MusicOnHold

2005-12-15 Thread Elton Machado
Why not to use r option in Dial(SIP/xyz,,r) to simulate the ring?

Regards, 


2005/12/15, Aaron Clauson [EMAIL PROTECTED]:
 -Original Message- From: Pedro Nunes [mailto:[EMAIL PROTECTED]
] Sent: 15 December 2005 08:59 To: [EMAIL PROTECTED]; Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Starting RTP with Dial and MusicOnHold
 Hello, Do you try Answer() and then Dial(SIP/xyz,,m)??? Exten = ???,1,Answer() Exten = ???,2,Dial(SIP/xyz,,m) You need to answer the call before you can hear music on hold.
Hi Pedro,What you suggest would work but is no good as anybody calling our numberswould be charged for the call.The Dial(,,m) command can play MusicOnHold without answering the call, I
know I've tested it ;-). In this case I just need to give the RTP a kickstart or something, the console reports the MusicOnHold has started playingbut there is no RTP.Thanks,Aaron___
--Bandwidth and Colocation provided by Easynews.com --Asterisk-Users mailing listTo UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Starting RTP with Dial and MusicOnHold

2005-12-15 Thread Aaron Clauson

 -Original Message-
 From: Elton Machado [mailto:[EMAIL PROTECTED] 
 Sent: 15 December 2005 14:03
 To: [EMAIL PROTECTED]; Asterisk Users Mailing List - 
 Non-Commercial Discussion
 Subject: Re: [Asterisk-Users] Starting RTP with Dial and MusicOnHold
 
 Why not to use r option in Dial(SIP/xyz,,r) to simulate the ring? 
  
  
 Regards, 
  

Hi Elton,

Tried that one as well.

The Dial(,,r) command actually does the opposite of what I want. The r
option specifies that no audio, i.e. no RTP stream, should be passed until
the call is answered. This option will generate a SIP 180 Ringing response
on an incoming call but since in this case the Cerpack switch needs out of
band signalling any 180, 183 or other SIP repsonses are ignored for call
progress indication.

Thanks,

Aaron


___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users