Send Via based on SIPFILE instead of autogeneated

-i option prevents Via from being generated.
Now we generate it in SIPFILE. This prevents
hostname looking for the Via header and we can
use [% sip_int_ips.0 %] for it

BRANCH for the Via header is autogenerated by UUIDGEN command

-l 5081 forces the source port for sending requests to be that one

-S forces symetric mode and makes Sipsak listen in the same 5081 port
2.3
Jon Bonilla 13 years ago
parent 6a8254df66
commit 6eb1dbffd3

@ -77,7 +77,8 @@ BODY_VM="Voice-Message: $NEW/$OLD"
BODYLEN=$((${#BODY_MW}+2+${#BODY_VM}+2))
CALL_ID=$($UUIDGEN)@voip.sipwise.local
MBID=$USER
BRANCH=$($UUIDGEN)
$SIPSAK -f $SIPFILE \
-G -g "!BODY_MW!$BODY_MW!BODY_VM!$BODY_VM!BODYLEN!$BODYLEN!CALL_ID!$CALL_ID!MBID!$MBID!" \
$SIPSAK -f -i -l 5081 -S $SIPFILE \
-G -g "!BODY_MW!$BODY_MW!BODY_VM!$BODY_VM!BODYLEN!$BODYLEN!CALL_ID!$CALL_ID!MBID!$MBID!BRANCH!$BRANCH!" \
$VERBOSE -E udp -s $URI

Loading…
Cancel
Save