Talk:Mod skypopen Skype Endpoint and Trunk

From FreeSWITCH Wiki
Jump to: navigation, search

Here is an example of bridging a call (e.g. incoming from an IPKall DID) to a skype contact, and sending them the caller id as a chat message. I tried the skypopen_chat api, but it didn't work (no error, but no chat received). This works but you have to associate an interface to the call.

This would be in dialplan/default/05_skype_extensions.xml, for example. The (mp) below displays a mobile phone emoticon.

   <extension name="2907">
     <condition field="destination_number" expression="^2907$"/>
     <condition field="caller_id_number" expression="(.*)">
       <action application="set" data="api_result=${skypopen(interface1 MESSAGE remote.skypeID (mp) Call from $1)}" />
       <action application="bridge" data="skypopen/interface1/remote.skypID" />
     </condition>
   </extension>


In dialplan/public/02_ipkall.xml you could have a DID that transferred to this extension:

   <extension name="3601234567">
     <condition field="destination_number" expression="3601234567">
      <action application="transfer" data="2907 XML default"/>
     </condition>
   </extension>