首页 > 解决方案 > 如何在 freeswitch 中为 linphone 配置简单的 mod_sms?

问题描述

我试图mod_sms在 freeswitch 中进行配置,以便两个 linphone 客户端可以互相发送消息。我已经按照 freeswitch 网站上给出的步骤进行操作:链接
问题是当我从 linphone 客户端 1 向客户端 2 发送消息时,消息没有到达它,反之亦然。

这些是我收到的日志fs_cli

2021-11-13 11:56:20.594400 [INFO] mod_sms.c:368 Processing text message 1008->1001 in context public
Chatplan: 1001 parsing [public->demo] continue=false
Chatplan: 1001@3.108.184.153 Regex (PASS) [demo] to(1001@3.108.184.153) =~ /^(.*)$/ break=on-false
Chatplan: 1001@3.108.184.153 Action info() 
Chatplan: 1001@3.108.184.153 Action send() 
Chatplan: 1001@3.108.184.153 Action stop() 
Chatplan: 1001@3.108.184.153 Action info() 
2021-11-13 11:56:20.594400 [INFO] mod_sms.c:495 CHANNEL_DATA:        
Event-Name: [MESSAGE]
Core-UUID: [a9c09454-8d36-4786-81d7-1aeb47655697]
FreeSWITCH-Hostname: [phone.iotiot.in]
FreeSWITCH-Switchname: [phone.iotiot.in]
FreeSWITCH-IPv4: [172.31.37.228]
FreeSWITCH-IPv6: [::1]
Event-Date-Local: [2021-11-13 11:56:20]
Event-Date-GMT: [Sat, 13 Nov 2021 11:56:20 GMT]
Event-Date-Timestamp: [1636804580594400]
Event-Calling-File: [sofia_presence.c]
Event-Calling-Function: [sofia_presence_handle_sip_i_message]        
Event-Calling-Line-Number: [4888]
Event-Sequence: [348876]
login: [sip:mod_sofia@3.108.184.153:5060]
proto: [sip]
to_proto: [sip]
from: [1008@3.108.184.153]
from_user: [1008]
from_host: [3.108.184.153]
to_user: [1001]
to_host: [3.108.184.153]
from_sip_ip: [152.57.203.120]
from_sip_port: [57883]
to: [1001@3.108.184.153]
subject: [SIMPLE MESSAGE]
context: [public]
type: [text/plain]
from_full: [<sip:1008@3.108.184.153>;tag=6SDPEWzHG]
sip_profile: [internal]
dest_proto: [sip]
max_forwards: [70]
DP_MATCH: [1001@3.108.184.153]
Content-Length: 2

Hi
2021-11-13 11:56:20.594400 [DEBUG] sofia_presence.c:225 Can't find registered user 1001@3.108.184.153
2021-11-13 11:56:20.594400 [DEBUG] sofia_presence.c:225 Can't find registered user 1001@3.108.184.153
2021-11-13 11:56:20.594400 [WARNING] sofia_presence.c:4821 Not sending message to ourselves!
2021-11-13 11:56:20.594400 [WARNING] sofia_presence.c:4821 Not sending message to ourselves!

日志显示消息击中服务器,但它没有发送到接收客户端。

标签: chatfreeswitchlinphone

解决方案


推荐阅读