<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connect call SVAML in Discussion Forum</title>
    <link>https://community.sinch.com/t5/Discussion-Forum/Connect-call-SVAML/m-p/12446#M280</link>
    <description>&lt;P&gt;Hello &lt;STRONG&gt;Kcarpenter12&lt;/STRONG&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will assume you've at least followed the getting started guide found here&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://developers.sinch.com/docs/voice/getting-started/python/incoming-call/" target="_blank"&gt;https://developers.sinch.com/docs/voice/getting-started/python/incoming-call/&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;And further assume that it works fine! You are right, instead of using the action &lt;FONT face="andale mono,times"&gt;hangup&lt;/FONT&gt; as per the example above, you would have to replace the action and use &lt;FONT face="andale mono,times"&gt;connectPstn&lt;/FONT&gt; instead, as simple as the structure below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
"action": {
  "name": "connectPstn",
  "number": "+31634443333", // number you want to connect the call with. International format
  "cli": "+31631112222" // number you want to display e.g. Sinch-rented free test number. International format
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Catalin Vasile&lt;/STRONG&gt;&lt;SPAN&gt;, Product Manager&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 21:01:15 GMT</pubDate>
    <dc:creator>Catalin_Vasile</dc:creator>
    <dc:date>2023-08-15T21:01:15Z</dc:date>
    <item>
      <title>Connect call SVAML</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Connect-call-SVAML/m-p/12444#M278</link>
      <description>When a call comes into my webhook, I want to transfer it to a cellphone number. Am I looking for the connectPstn action? I’m not sure which action is best to transfer to another number or multiple numbers. If it matters, I’m using Python.</description>
      <pubDate>Tue, 15 Aug 2023 21:45:36 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Connect-call-SVAML/m-p/12444#M278</guid>
      <dc:creator>Kcarpenter12</dc:creator>
      <dc:date>2023-08-15T21:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connect call SVAML</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Connect-call-SVAML/m-p/12445#M279</link>
      <description>&lt;P&gt;Hi, and thanks for your question!&lt;BR /&gt;The connectPstn action will transfer your call to another number.&amp;nbsp;&lt;BR /&gt;When you say you might transfer multiple numbers, can you clarify what you mean? Unless a call is part of a conference, it is only a connection between two numbers at any given time.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 21:01:12 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Connect-call-SVAML/m-p/12445#M279</guid>
      <dc:creator>Alex_Sberna</dc:creator>
      <dc:date>2023-08-15T21:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Connect call SVAML</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Connect-call-SVAML/m-p/12446#M280</link>
      <description>&lt;P&gt;Hello &lt;STRONG&gt;Kcarpenter12&lt;/STRONG&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will assume you've at least followed the getting started guide found here&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://developers.sinch.com/docs/voice/getting-started/python/incoming-call/" target="_blank"&gt;https://developers.sinch.com/docs/voice/getting-started/python/incoming-call/&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;And further assume that it works fine! You are right, instead of using the action &lt;FONT face="andale mono,times"&gt;hangup&lt;/FONT&gt; as per the example above, you would have to replace the action and use &lt;FONT face="andale mono,times"&gt;connectPstn&lt;/FONT&gt; instead, as simple as the structure below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
"action": {
  "name": "connectPstn",
  "number": "+31634443333", // number you want to connect the call with. International format
  "cli": "+31631112222" // number you want to display e.g. Sinch-rented free test number. International format
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Catalin Vasile&lt;/STRONG&gt;&lt;SPAN&gt;, Product Manager&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 21:01:15 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Connect-call-SVAML/m-p/12446#M280</guid>
      <dc:creator>Catalin_Vasile</dc:creator>
      <dc:date>2023-08-15T21:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Connect call SVAML</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Connect-call-SVAML/m-p/12447#M281</link>
      <description>Thanks for the speedy reply! When someone calls my sinch virtual number, I want my cellphone to ring…. But I also might want to ring multiple cellphones.</description>
      <pubDate>Tue, 15 Aug 2023 22:02:08 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Connect-call-SVAML/m-p/12447#M281</guid>
      <dc:creator>Kcarpenter12</dc:creator>
      <dc:date>2023-08-15T22:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Connect call SVAML</title>
      <link>https://community.sinch.com/t5/Discussion-Forum/Connect-call-SVAML/m-p/12448#M282</link>
      <description>&lt;P&gt;&lt;FONT face="andale mono,times"&gt;connectPstn&lt;/FONT&gt; is for connecting calls 1-to-1. For ringing multiple cellphones, you could try a different solution such as making use of&amp;nbsp;&lt;FONT face="andale mono,times"&gt;connectConf&lt;/FONT&gt; instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. When ICE webhook occurs, add the caller to a conference&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "action": {
    "name": "connectConf",
    "conferenceId": "27386721-d40d-4b52-8196-0f2dc2c6d4bb",
    "moh": "ring",
    "conferenceType": "twopartwait"
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Iterate over all numbers that you want to ring and do a custom callout for each number using inline SVAML&lt;/P&gt;
&lt;P&gt;3. On the first ACE webhook from step 2, respond using&amp;nbsp;&lt;FONT face="andale mono,times"&gt;connectConf&lt;/FONT&gt; SVAML again and connect the first phone that answered to the same conference where the caller is currently waiting,&amp;nbsp;&lt;FONT face="andale mono,times"&gt;hangup&lt;/FONT&gt; all the other calls&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "action": {
    "name": "connectConf",
    "conferenceId": "27386721-d40d-4b52-8196-0f2dc2c6d4bb",
    "conferenceType": "twopartbridge"
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Catalin Vasile&lt;/STRONG&gt;&lt;SPAN&gt;, Product Manager&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 23:02:48 GMT</pubDate>
      <guid>https://community.sinch.com/t5/Discussion-Forum/Connect-call-SVAML/m-p/12448#M282</guid>
      <dc:creator>Catalin_Vasile</dc:creator>
      <dc:date>2023-08-15T23:02:48Z</dc:date>
    </item>
  </channel>
</rss>

