Usually MOH request is a SIP reINVITE request with ip address 0.0.0.0 in 
SDP/Connect field (Just look in the wireshark)

So, all you need is 

 

If (has_totag())

{

                If (loose_route())

                {

                        If (is_method(“INVITE”))

                        {

                                   if (search_body("c=IN IP4 0.0.0.0"))

                                   {

                                               # MOH request

 

 


2


1

С уважением, Антон Загорский

Программист компании Oyster Telecom

Тел.: +7 812 601-0666

Факс: +7 812 601-0593

a <mailto:[email protected]> [email protected]

 <http://www.oyster-telecom.ru> www.oyster-telecom.ru

 

 

From: Ngoc Kha Vu [mailto:[email protected]] 
Sent: Monday, October 18, 2010 12:26 PM
To: Антон Загорский
Subject: Re: [Sems] On Hold

 

Thanks for response.
Can you give me more information.
For example, how to catch MOH request in openSIP?
I have to modify what module to get it?

2010/10/18 Антон Загорский <[email protected]>

Hello.

I made IVR the following way:
1. Catch MOH request in openSIPS
2. Forward request to SEMS with playlist id in P-App-Param
3. On SEMS side there is simple IVR application which plays files from folder 
with received playlist id.


From: [email protected] [mailto:[email protected]] On 
Behalf Of Ngoc Kha Vu
Sent: Monday, October 18, 2010 6:48 AM
To: [email protected]
Subject: [Sems] On Hold


Hi all.
I am looking to make On Hold work on SEMS.
Is there anybody has done it before?
Plz tell me how to do it.
Thanks a lot :).

--
=======================================================================
Vũ Ngọc Kha
R&D Department - Software Center - Viettel Telecom
5th Floor - Pacific Ocean Building - 93B - Trung Kinh Street - Cau Giay 
District - Ha Noi
Mobile Phone: +84-91-5916218 ; +84-98-9353284
Home Phone: +84-36-2-478535
Email: [email protected]
          [email protected]




-- 
=======================================================================
Vũ Ngọc Kha
R&D Department - Software Center - Viettel Telecom
5th Floor - Pacific Ocean Building - 93B - Trung Kinh Street - Cau Giay 
District - Ha Noi
Mobile Phone: +84-91-5916218 ; +84-98-9353284
Home Phone: +84-36-2-478535
Email: [email protected]
           [email protected]

<<image001.gif>>

<<image002.png>>

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to