| |
EOF
if [ "$REQUEST_METHOD" = "POST" ]; then
read QUERY_STRING
fi
if [ -n "$QUERY_STRING" ]; then
eval $(echo "$QUERY_STRING"|awk -F'&' '{for(i=1;i<=NF;i++){print $i}}')
fi
if [ -n "$post_savedb" ]; then
cat<Phonebook: Save Database
EOF
elif [ -n "$post_flushdb" ]; then
cat<Phonebook: Flush Database
EOF
elif [ -n "$post_details" ]; then
#if [ -n "$post_details" ]; then
#else
cat<Phonebook: Details
EOF
#if [ $(nvram get sip_domain) ];
# | grep "^aor :\|^User-Agent: 'SIP Express Router FIFO'" | \
# then export SIP_DOMAIN=$(nvram get sip_domain);
# else export SIP_DOMAIN=$(ifconfig $(nvram get lan_ifname)|awk 'sub("inet addr:","") {print $1}'); fi;
#serctl restart ser|awk 'sub("", " ") {print}'; sleep 3s;
elif [ -n "$post_newalias" ]; then
cat<Phonebook: Alias addition
EOF
elif [ -n "$post_rmalias" ]; then
cat<Phonebook: Alias removal
EOF
elif [ -n "$post_rmaor" ]; then
cat<Phonebook: URI removal
EOF
elif [ -n "$post_sendmsg" ]; then
cat<Phonebook: SIP Messaging
EOF
#elif [ -n "$post_contacts" ]; then
#cat<
#EOF
else
cat<Phonebook: Contacts
EOF
fi
cat< |