CallEnd does not work

CallEnd does not work

All comments 5
    ercntrn 2022-06-20 22:49:28
    Note: The author has been banned or deleted.
    Wolf 2022-06-21 14:30:15
    I would like to hang up. I need this in a Linux-scenario.So I would need "curl". After a pushbuton was pressed I need to end the call procedure.
    Therefore i need:
    curl "IP_of_Akuvox/fcgi/do?action=CallEnd
    to work in Linux, which doesnot execute.
    ercntrn 2022-06-22 15:11:44
    Note: The author has been banned or deleted.
    Wolf 2022-06-22 17:34:36
    ercntrn replied at 2022-06-22 15:11
    Hi Wolf;

    This is a authentication issue, you have to have logged into this device's web page to use ...

    Thank you. That makes sense, I will give it a try
    ahermann86 2022-12-06 17:42:29
    Edited by ahermann86 at 2022-12-06 17:46

    Hello,

    i had the same requirement. You need the SessionId after login.
    The solution is the following script (user and password is default -> both admin):

    1. #!/bin/bash
    2. curl "http://192.168.2.181/fcgi/do?id=1" -X POST -s --output out -H "Cookie: RebootUserName=admin; UserName=admin; Password=21232f297a57a5a743894a0e4a801fc3" --data-raw "SubmitData=begin"%"26Operation"%"3DCreateSession"%"26DestURL"%"3Did"%"60C1"%"26SubmitData"%"3Dend"
    3. out=$(grep -o -P "(?<=<input id=hcSessionIdNow type=hidden value=').*(?='>)" out)
    4. curl "http://192.168.2.181/fcgi/do?action=CallEnd" -s --output out -H "Cookie: SessionId=$out"
    5. rm out


    Axel
You have to log in before you can reply Login | Sign up