[Freeswitch-users] Desktop phone - answer a ringing call via API call

Weigel, Stefan Stefan.Weigel at allianz-warranty.com
Sat Oct 8 16:13:38 MSD 2011


Hi Brad, list,

as Anthony wrote a little bit later this day, with phones that understand TALK/HOLD notify messages, just use
api cal 'uuid_phone_event <uuid> talk|hold'.

What I did before:

with 'show channels I'm getting the uuid of the incoming leg bridged to the extension (which is already ringing).
Further on I set a variable with the dialed extension to this uuid:

freeswitch at internal<mailto:freeswitch at internal>> uuid_setvar 8ca38212-c500-482b-83ec-2d87ad515180 dialed_number 812
+OK

I wrote a new dialplan extension:

<include>
  <extension name="AUTOANSWER">
      <condition field="${dialed_number}" expression="^(\d\d\d)$" break="on-true">
          <action application="export" data="sip_auto_answer=true"/>
          <action application="transfer" data="$1 XML user_lines"/>
      </condition>
  </extension>
</include>

Then I transfer the call to this extension, it's exporting the variable and the phone answers.

freeswitch at internal<mailto:freeswitch at internal>> uuid_transfer 8ca38212-c500-482b-83ec-2d87ad515180 -both AUTOANSWER XML public
+OK
Problematic is call statistics (mod_cdr_csv in my case) because it's generating two entries for this single call.

Can I do this maybe with api call 'uuid_broadcast' ?


I don't know if it's worth to put on the WIKI, but if there's interest, I will do it.


Best regards,

Stefan

________________________________
Von: freeswitch-users-bounces at lists.freeswitch.org [freeswitch-users-bounces at lists.freeswitch.org] im Auftrag von Brad Mina [brad at tech21.com]
Gesendet: Freitag, 7. Oktober 2011 17:35
An: FreeSWITCH Users Help
Betreff: Re: [Freeswitch-users] Desktop phone - answer a ringing call via API call

Could you possibly document on the wiki exactly what you did and link to it from this thread?

On Fri, Oct 7, 2011 at 6:45 AM, Weigel, Stefan <Stefan.Weigel at allianz-warranty.com<mailto:Stefan.Weigel at allianz-warranty.com>> wrote:
Hi Rob, list,

<action application="export" data="sip_auto_answer=true"/>

did the trick!

Somebody could append ‘Polycom 560’ to the models working with this on the WIKI-page http://wiki.freeswitch.org/wiki/Intercom

I will play around, maybe I can do it now…



Thanks for the hint!


Best regards,

Stefan

Von: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] Im Auftrag von Weigel, Stefan
Gesendet: Freitag, 7. Oktober 2011 15:31

An: 'FreeSWITCH Users Help'
Betreff: Re: [Freeswitch-users] Desktop phone - answer a ringing call via API call

Hi Rob, list,

very funny, it’s exactly what I’m trying to do at the moment.

In my dialplan I put:


<action application="export" data="alert_info=aa<UrlBlockedError.aspx>"/>

In sip.cfg I put:

 <alertInfo voIpProt.SIP.alertInfo.1.value="aa" voIpProt.SIP.alertInfo.1.class="3" />
[..]
<AUTO_ANSWER se.rt.3.name<http://se.rt.3.name>="Auto Answer" se.rt.3.type="answer" />

When tracing I can see:

INVITE sip:567 at 192.168.1.1:5060<http://sip:567@192.168.1.1:5060> SIP/2.0
[..]
Alert-Info: <aa>
[..]

The ‚<>‘ tags are appended automatically. So I tried to modify sip.cfg a little bit:

<alertInfo voIpProt.SIP.alertInfo.1.value="&lt;aa&gt;" voIpProt.SIP.alertInfo.1.class="3" />

But it’s not working. In the documentation I found a remark:

If set to 1, auto-answer is enabled for all SIP
calls.
Note: This parameter is supported on the
Polycom VVX 1500 only.

So I don’t know if this feature will work for SIP calls with my 560.




Thanks and best regards,

Stefan


Von: Rob Hutton [mailto:justlikeef at gmail.com<mailto:justlikeef at gmail.com>]
Gesendet: Freitag, 7. Oktober 2011 14:50
An: freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>
Cc: Weigel, Stefan
Betreff: Re: [Freeswitch-users] Desktop phone - answer a ringing call via API call


It looks like Polycoms can be told to "auto answer" with the SIP header "Alert-Info: Ring Answer";



If the "CTI Interface" had the UUID of the call and the extension, then a quick API call or LUA script could add the sip header, then reinvite the phone causing it to answer.



Check out the Paging and Intercom page on the WIKI for more info on the auto answer setup.



On Friday 07 October 2011 04:42:32 Weigel, Stefan wrote:

> Hi Michael, list,

>

>

>

> that's the point.

>

> I would really appreciate a solution for that "problem".

>

> We're using FreeSwitch in an callcenter environment and people used to handle the calls through some kind of CTI interface before we switched to FreeSWITCH. So it would be great to have this feature. But there's no possibility to control Polycom phones that way.

>

>

>

> Hints on this topic are welcome!

>

>

>

>

>

> Thanks and best regards

>

>

>

> Stefan

>

>

>

> Btw.: FreeSWITCH rocks! It's so flexible, unbelievable.

>

>

>

>

>

> Von: freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org> [mailto:freeswitch-users-bounces at lists.freeswitch.org<mailto:freeswitch-users-bounces at lists.freeswitch.org>] Im Auftrag von Michael Collins

> Gesendet: Mittwoch, 5. Oktober 2011 18:42

> An: FreeSWITCH Users Help

> Betreff: Re: [Freeswitch-users] Desktop phone - answer a ringing call via API call

>

>

>

> This would be a function of the phone. AFAICT, Polycom does not have a Webby way of doing this. However, I think Brian West has a bead on using the expansion port along with an Arduino board to do some manual/remote control of the phone. If anyone has more information on remote controlling Polycoms (or any other phones, for that matter) please let us know.

>

>

>

> -MC

>

> On Tue, Oct 4, 2011 at 6:58 AM, Weigel, Stefan <Stefan.Weigel at allianz-warranty.com<mailto:Stefan.Weigel at allianz-warranty.com><mailto:Stefan.Weigel at allianz-warranty.com<mailto:Stefan.Weigel at allianz-warranty.com>>> wrote:

>

> Hi all,

>

>

>

> Is there a way to answer a ringing desktop phone (Polycom Soundpoint IP 560) via api command ?

>

> I tried with SendMsg <uuid> and 'answer' application, but it's not want I need/want.

>

>

>

>

>

> Thanks and best regards,

>

>

>

> Stefan

>

>

>

> FreeSWITCH-users mailing list

> FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org><mailto:FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>>

> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

> http://www.freeswitch.org

>

>

>

>




FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111008/10e29318/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list