Commit 0fe9304a authored by Yalu Zhang's avatar Yalu Zhang
Browse files

asterisk: fix bug that remote CBBS/ringback doesn't work properly

The cause is that adaptation from chan_sip to pjsip was missing. The following
changes are made to fix the bug.

- Replace SIP_HEADER with PJSIP_HEADER which is used by extensions.conf
- Load module res_pjsip_header_funcs.so which implements PJSIP_HEADER
parent 138a3868
......@@ -13,7 +13,7 @@ PKG_RELEASE:=1
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_VERSION:=d2c2b311ccf8297e0e7671b72bff5915def19020
PKG_SOURCE_VERSION:=ba9f31e69d075d7a27b2eb8fca3fea7362b4f354
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/fork/asterisk.git
......
......@@ -47,7 +47,6 @@ noload => res_pjsip_endpoint_identifier_user.so
noload => res_pjsip_diversion.so
noload => res_pjsip_xpidf_body_generator.so
noload => res_pjsip_rfc3326.so
noload => res_pjsip_header_funcs.so
noload => res_pjsip_publish_asterisk.so
noload => res_pjsip_pidf_eyebeam_body_supplement.so
noload => res_pjsip_pidf_digium_body_supplement.so
......
......@@ -1122,7 +1122,7 @@ configure_extensions_provider() {
# detect ringback call and update caller id
local ringback_header="<http://www.uktel.org.uk/SIPAlertInfoExtns?RC03>"
echo "exten => $user,n,Set(header=\${SIP_HEADER(Alert-Info)})" >> $tmp
echo "exten => $user,n,Set(header=\${PJSIP_HEADER(read,Alert-Info,1)})" >> $tmp
echo "exten => $user,n,GotoIf(\$[\"\${header}\" = \"${ringback_header}\"]?ringback:noringback)" >> $tmp
echo "exten => $user,n(ringback),Set(CALLERID(name)=RINGBACK)" >> $tmp
echo "exten => $user,n(noringback),NoOp()" >> $tmp
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment