Re: [OpenSIPS-Users] Music on Hold without RTPProxy

2010-05-17 Thread Paris Stamatopoulos
Hello!

Well I have to say that I got so mixed up that I didn't even check to see if 
the Re-INVITE was sent to the asterisk. I had musiconhold classes configured 
wrong, and I was not getting the "On-Hold" message in the cli! 

Sorry about that and thanks for making me look the right way :)

Regards,
Paris Stamatopoulos


-Original Message-
From: users-boun...@lists.opensips.org 
[mailto:users-boun...@lists.opensips.org] On Behalf Of vallimamod abdullah
Sent: Monday, May 17, 2010 11:37 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Music on Hold without RTPProxy

Hello Paris,

On Monday 17 May, 2010, at 9:41 AM, Paris Stamatopoulos wrote:

> Hello everyone,
>
> I feel that lately I've been a pain in the ass for this mailing list  
> but hey, I need to ask someone :)
>
> Ok here goes, I've went through the documentation and seen that it  
> is possible to inject music on hold on the On-Hold Re-Invite, via  
> the RTPproxy. My case is however, that I am not using rtpproxy for  
> nat traversal, since I am having asterisks behind OpenSIPS, always  
> forcing the media through them.


If your call is already terminated by asterisk, then you're done and  
you don't need anything else: the in-dialog re-invite is directely  
forwarded to asterisk which knows how to handle it...
(you just need to define the music on hold for the given context in  
asterisk)

Regards,
- vma
.





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Music on Hold without RTPProxy

2010-05-17 Thread vallimamod abdullah
Hello Paris,

On Monday 17 May, 2010, at 9:41 AM, Paris Stamatopoulos wrote:

> Hello everyone,
>
> I feel that lately I've been a pain in the ass for this mailing list  
> but hey, I need to ask someone :)
>
> Ok here goes, I've went through the documentation and seen that it  
> is possible to inject music on hold on the On-Hold Re-Invite, via  
> the RTPproxy. My case is however, that I am not using rtpproxy for  
> nat traversal, since I am having asterisks behind OpenSIPS, always  
> forcing the media through them.


If your call is already terminated by asterisk, then you're done and  
you don't need anything else: the in-dialog re-invite is directely  
forwarded to asterisk which knows how to handle it...
(you just need to define the music on hold for the given context in  
asterisk)

Regards,
- vma
.





___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Music on Hold without RTPProxy

2010-05-17 Thread Paris Stamatopoulos
Hello everyone,

I feel that lately I've been a pain in the ass for this mailing list but hey, I 
need to ask someone :)

Ok here goes, I've went through the documentation and seen that it is possible 
to inject music on hold on the On-Hold Re-Invite, via the RTPproxy. My case is 
however, that I am not using rtpproxy for nat traversal, since I am having 
asterisks behind OpenSIPS, always forcing the media through them.

So I was wondering, is there any way to intercept the On-Hold Re-Invite and 
push it back to asterisk? Or any other intelligent solution?

I also noticed this:

if (method == "INVITE") {
  rtpproxy_offer();
  if (detect_hold()) {
  rtpproxy_stream2uas("/var/rtpproxy/prompts/music_on_hold", -1);
  } else {
  rtpproxy_stop_stream2uas();
  };
  };

However, and I wonder how I didn't find this mentioned anywhere else, the 
detect_hold() method does not exist? I am on 1.6.1.

Regards,
Paris Stamatopoulos


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users