I am using ds-mod to trigger callback using simple interface to Web configuration pages:
As you can see, whenever a call from a certain number in TIM italian mobile network calls me, Fritz! is calling back and connects to all ISDN phones (extension 50).
The question is: can this concept be extended so that Fritz! automatically establishes two outgoing calls and connects them together as 3-pty conference?
For example, if Fritz! registers a call from number A, can Fritz! call numbers A and B and conference them, without human intervention?
Code:
/var/tmp/flash/callmonitor # cat listeners
^ ^ echo "$(date): $SOURCE -> $DEST; NT=$NT" >> /var/tmp/calls
^0039333xxxxx$ ^233xxxxx$ /tmp/flash/callmonitor/callback.sh 50 $SOURCE
/var/tmp/flash/callmonitor # cat callback.sh
#! /bin/sh
#
# $1 - source phone extension
# $2 - destination number
export REQUEST_METHOD="POST"
export REMOTE_ADDR="127.0.0.1"
export CONTENT_TYPE="application/x-www-form-urlencoded"
POST_DATA="login:command/password=xxxxxxx"
export CONTENT_LENGTH=${#POST_DATA}
echo -n "$POST_DATA" | /usr/www/html/cgi-bin/webcm > /dev/null
sleep 2
export REQUEST_METHOD="POST"
export REMOTE_ADDR="127.0.0.1"
export CONTENT_TYPE="application/x-www-form-urlencoded"
POST_DATA="time%3Asettings%2Ftime=$(date +%s)%2C-60"
POST_DATA="${POST_DATA}&telcfg%3Asettings%2FUseClickToDial=1"
POST_DATA="${POST_DATA}&telcfg%3Asettings%2FDialPort=$1"
POST_DATA="${POST_DATA}&telcfg%3Acommand%2FDial=$2"
export CONTENT_LENGTH=${#POST_DATA}
echo -n "$POST_DATA" | /usr/www/html/cgi-bin/webcm > /dev/null
As you can see, whenever a call from a certain number in TIM italian mobile network calls me, Fritz! is calling back and connects to all ISDN phones (extension 50).
The question is: can this concept be extended so that Fritz! automatically establishes two outgoing calls and connects them together as 3-pty conference?
For example, if Fritz! registers a call from number A, can Fritz! call numbers A and B and conference them, without human intervention?