Please note: These WebEx forums have replaced the earlier site forums. All the previous threads and posts have been replicated here, and if you subscribed to the previous forums, please re-subscribe. Thank you.
« Back to Scheduling Meetings

RE: telephonySupport CALLIN / OTHER and VoIP

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hello, I haven't posted here in a long time. I was trying to update my code to use our own toll-free number. I'm not sure if I'm doing this properly. I attempted to create a test meeting but when I tried starting the meeting I'm still prompted with the TOLL number and the option of voip too. If I change the telephonySupport to OTHER it works however VoIP option to call in using the computer it doesn't seem to show up.
 
<?php
function createMeeting() {

$xml = '';
$xml = '<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">';
$xml .= '<header>';
$xml .= '<securityContext>';
$xml .= '<webExID>'.$webExID.'</webExID>';
$xml .= '<password>'.$password.'</password>';
$xml .= '<siteName>'.$sitename.'</siteName>'; 
$xml .= '</securityContext>';
$xml .= '</header>';
$xml .= '<body>';
$xml .= '<bodyContent xsi:type="java:com.webex.service.binding.meeting.CreateMeeting">';
        $xml .= '<accessControl>';
            $xml .= '<meetingPassword>'.$meeting_password.'</meetingPassword>';
        $xml .= '</accessControl>';

        $xml .= '<metaData>';
            $xml .= '<confName>'.$title.'</confName>';
            $xml .= '<meetingType>123</meetingType>';
        $xml .= '</metaData>';

        $xml .= '<enableOptions>';
            $xml .= '<multiVideo>True</multiVideo>';
            $xml .= '<audioVideo>True</audioVideo>';
            $xml .= '<supportUCFRichMedia>true</supportUCFRichMedia>';
            $xml .= '<chatAllAttendees>true</chatAllAttendees>';
            $xml .= '<chatHost>true</chatHost>';
            $xml .= '<chatPresenter>true</chatPresenter>';
            $xml .= '<attendeeList>true</attendeeList>';
            $xml .= '<voip>true</voip>';
        $xml .= '</enableOptions>';
       $xml .='<telephony>';
           $xml .='<telephonySupport>OTHER</telephonySupport>';
           $xml .='<extTelephonyDescription>!#TollFreeCallInCountryCode:1_1
!#TollFreeCallInTelephonyCountryCode:+1
!#TollFreeCallInNumber:8003477829
!#ParticipantCode:194187</extTelephonyDescription>';
        $xml .=</telephony>';
        $xml .='<participants>';
            $xml .='<maxUserNumber>'.$userNumbers.'</maxUserNumber>';
            $xml .='<attendees>';
                $xml .='<attendee>';   
                    $xml .='<person>';
                        $xml .='<name>'.$host_name.'</name>';
                        $xml .='<email>'.$host_email.'</email>';
                    $xml .='</person>';
                    $xml .='<role>HOST</role>';
                $xml .='</attendee>';
                $xml .='<attendee>';   
                    $xml .='<person>';
                        $xml .='<name>'.$speaker_name.'</name>';
                        $xml .='<email>'.$speaker_email.'</email>';
                    $xml .='</person>';
                    $xml .='<role>ATTENDEE</role>';
                $xml .='</attendee>';
            $xml .='</attendees>';
        $xml .='</participants>';

        $xml .= '<schedule>';
            $xml .= '<startDate>'.$start_date.'</startDate>';
            $xml .= '<duration>'.$duration.'</duration>';
            $xml .= '<timeZoneID>20</timeZoneID>';
        $xml .= '</schedule>';
$xml .= '</bodyContent>';
$xml .= '</body>';
$xml .= '</serv:message>';
}
$resp = curl_it($xml);
?>
But when I run the code it doesn't seem to allow VoIP and the text looks all jumbled up. Anyone able to see what I did wrong? Thanks in advance.

Create a Cisco account today and gain access across all Cisco Collaboration Developer sites.

 

Follow the WebEx Developer program on Twitter for the latest industry and WebEx Meetings related information.