Commit 1aabf6ec authored by Grzegorz Sluja's avatar Grzegorz Sluja
Browse files

HF-4994 Fix for pjsip endpoint's identification

Restore back previous pjsip endpoint's identification and add '\' before
|USER| to fix regex innterpretation.
parent 8af7bed8
[|NAME|]
type = identify
endpoint = |NAME|
match_header = To: /<sip:|USER|@|DOMAIN|/
match_header = To: /<sip:\|USER|@/
......@@ -386,17 +386,13 @@ configure_sip_provider() {
sed -i "s/messages_waiting.*//g" $WORK_DIR/pjsip_endpoint
sed -i "s/mwi_dialtone_state.*//g" $WORK_DIR/pjsip_endpoint
fi
cat $WORK_DIR/pjsip_endpoint >> $WORK_DIR/pjsip_endpoints.conf
# Generating pjsip_identifies.conf
cp "$TEMPLATE_DIR/pjsip_identify" "$WORK_DIR/pjsip_identify"
sed -i "s/|USER|/$(escape_sed_substitution $user)/" $WORK_DIR/pjsip_identify
if [ -z "$domain" ] ; then
sed -i "s/|DOMAIN|/$outbound_proxy/" $WORK_DIR/pjsip_identify
else
sed -i "s/|DOMAIN|/$domain/" $WORK_DIR/pjsip_identify
fi
sed -i "s/|NAME|/$1/g" $WORK_DIR/pjsip_identify
cp "$TEMPLATE_DIR/pjsip_identify" "$WORK_DIR/pjsip_identify"
sed -i "s/|USER|/$(escape_sed_substitution $user)/" $WORK_DIR/pjsip_identify
sed -i "s/|NAME|/$1/g" $WORK_DIR/pjsip_identify
cat $WORK_DIR/pjsip_identify >> $WORK_DIR/pjsip_identifies.conf
# Generating pjsip_registrations.conf
......
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