[OpenSIPS-Users] detect_hold()

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Jul 6 19:37:58 CEST 2010


Hi Jesse,

A re-INVITE putting a call "on hold" has IP 0.0.0.0 in the SDP (c line) 
- you can do a grep over the body to check it, so it should not be too 
complicated to have in script:

if (is_method("INVITE") && has_body("application/sdp") && $rb=~ 
"0\.0\.0\.0" )  => on_hold.

I also updated the docs to eliminate the confusion.

Regards,
Bogdan

Jesse Cloutier wrote:
> Thanks for the quick response, I am disappointed but not surprised.
>
> Thanks Again
>
> On 06/28/2010 10:44 AM, Iñaki Baz Castillo wrote:
>   
>> 2010/6/28 Jesse Cloutier<jesse at cronomagic.com>:
>>    
>>     
>>> Hi list,
>>> I am building an opensips based voip system and am looking at what
>>> options are available for music on hold. I have noticed that in the
>>> documentation of the nathelper module section 1.6.8 rtpproxy_stream2uac
>>> the example 1.26 shows a function "detect_hold()"
>>>
>>> But I havnt been able to find any reference to this function anywhere in
>>> the documentation or the src code of opensips, is this a real function?
>>>      
>>>       
>> It's not a real function, and I think that such non existing function
>> should be clarified in the nathelper documentation as it's not the
>> first question about same subject.
>>
>>    
>>     
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro




More information about the Users mailing list