Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/219.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 星号呼叫流_Android_Sip_Asterisk_Voip - Fatal编程技术网

Android 星号呼叫流

Android 星号呼叫流,android,sip,asterisk,voip,Android,Sip,Asterisk,Voip,我想使用asterisk server进行android应用程序之间的SIP/VOIP呼叫。我搜索了好的Sip客户端,发现CSip simple很好 假设有两个用户A和B 当A想打电话给B时, 向内部服务器发送请求 内部服务器将通过填充一些数据库值来检查A是否可以调用B 如果是,服务器将询问B是否要接受A的呼叫 如果是,服务器将设置A和B之间的调用 我应该如何在asterisk中配置这些东西来实现这一点,还想知道CSipSimple是否最适合android 如果我哪里做错了,请纠正我 谢

我想使用asterisk server进行android应用程序之间的SIP/VOIP呼叫。我搜索了好的Sip客户端,发现CSip simple很好

假设有两个用户A和B

  • 当A想打电话给B时,
    • 向内部服务器发送请求
    • 内部服务器将通过填充一些数据库值来检查A是否可以调用B
    • 如果是,服务器将询问B是否要接受A的呼叫
    • 如果是,服务器将设置A和B之间的调用
我应该如何在asterisk中配置这些东西来实现这一点,还想知道CSipSimple是否最适合android

如果我哪里做错了,请纠正我


谢谢

CSipSimple将是android的最佳选择

对于星号,我试图解决你的问题。尝试以下配置以拨打电话

假设有两个用户A和B

用户服务器

修改了服务器扩展名.conf

修改了服务器sip.conf

修改了B服务器扩展名.conf

修改的B服务器sip.conf

现在尝试从不同的设备注册这两个用户并尝试拨打电话。
从A(2221)打电话到B(2222)

有人能帮我吗?
[my_outgoing]
//exten => _X.,1,Dial(SIP/${EXTEN})  
exten => _X.,1,AGI(test.php)  
// test.php is check for balance of A and if A having enough balance then it will call B from this file it self
[2221]
username=2221
type=friend
secret=2221
host=dynamic
context=my_outgoing
[my_incoming]
//exten => _X.,1,Answer()
exten => _X.,1,AGI(test2.php)
// Here test2.php is for run IVR from script and give user for press 1 or 2 to accept and reject the call etc...  
// if you are using the real device or soft phone then it will handle the call option by it self  
// If you have to handle this using script then code to handle call written into this  
// And if GUI [from soft phone] is there to handle call then write bellow line only     

exten => _X.,1,Dial(SIP/${EXTEN})
[2222]
username=2222
type=friend
secret=2222
host=dynamic
context=default