重构28181信令结构,解决循环依赖导致的无法直接注入
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
package com.genersoft.iot.vmp.utils;
|
||||
|
||||
import gov.nist.javax.sip.address.AddressImpl;
|
||||
import gov.nist.javax.sip.address.SipUri;
|
||||
|
||||
import javax.sip.header.FromHeader;
|
||||
import javax.sip.message.Request;
|
||||
|
||||
/**
|
||||
* @author panlinlin
|
||||
* @version 1.0.0
|
||||
* @Description JAIN SIP的工具类
|
||||
* @createTime 2021年09月27日 15:12:00
|
||||
*/
|
||||
public class SipUtils {
|
||||
|
||||
public static String getUserIdFromFromHeader(Request request) {
|
||||
FromHeader fromHeader = (FromHeader)request.getHeader(FromHeader.NAME);
|
||||
AddressImpl address = (AddressImpl)fromHeader.getAddress();
|
||||
SipUri uri = (SipUri) address.getURI();
|
||||
return uri.getUser();
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import org.springframework.context.ApplicationContextAware;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @Description:spring bean获取工厂,获取spring中的已初始化的bean
|
||||
* @description:spring bean获取工厂,获取spring中的已初始化的bean
|
||||
* @author: swwheihei
|
||||
* @date: 2019年6月25日 下午4:51:52
|
||||
*
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.serializer.SerializerFeature;
|
||||
|
||||
/**
|
||||
* @Description:使用fastjson实现redis的序列化
|
||||
* @description:使用fastjson实现redis的序列化
|
||||
* @author: swwheihei
|
||||
* @date: 2020年5月6日 下午8:40:11
|
||||
*/
|
||||
|
||||
@@ -8,7 +8,7 @@ import redis.clients.jedis.JedisPool;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @Description:Jedis工具类
|
||||
* @description:Jedis工具类
|
||||
* @author: wangshaopeng@sunnybs.com
|
||||
* @date: 2021年03月22日 下午8:27:29
|
||||
*/
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
/**
|
||||
* @Description:Redis工具类
|
||||
* @description:Redis工具类
|
||||
* @author: swwheihei
|
||||
* @date: 2020年5月6日 下午8:27:29
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user