Hello,
I am trying to activate call forwarding using ser. When subscriber sends INVITE which starts from some prefix (say *22), I strip the prefix and write activation information to mysql.
I use ser 08-14 ran into the following problem:
=====ser.cfg:
if (uri =~ "^sip:\*22") {
log(1, "*22\n");
strip(3);
route(1);
...
route[1] {
if (!exec_msg('
echo "SIP_HF_MAX_FORWARDS ${SIP_HF_MAX_FORWARDS}">>/tmp/cfwdebug.log;
echo "SIP_HF_VIA ${SIP_HF_VIA}">>/tmp/cfwdebug.log;
echo "SIP_HF_CSEQ ${SIP_HF_CSEQ}">>/tmp/cfwdebug.log;
echo "SIP_HF_FROM ${SIP_HF_FROM}">>/tmp/cfwdebug.log;
echo "SIP_ORUI ${SIP_ORUI}">>/tmp/cfwdebug.log;
echo "SIP_HF_CONTENT_LENGTH ${SIP_HF_CONTENT_LENGTH}">>/tmp/cfwdebug.log;
echo "SIP_TID ${SIP_TID}">>/tmp/cfwdebug.log;
echo "SIP_DID ${SIP_DID}">>/tmp/cfwdebug.log;
echo "SIP_RURI ${SIP_RURI}">>/tmp/cfwdebug.log;
echo "SIP_HF_TO ${SIP_HF_TO}">>/tmp/cfwdebug.log;
echo "SIP_OUSER ${SIP_OUSER}">>/tmp/cfwdebug.log;
echo "SIP_HF_CALLID ${SIP_HF_CALLID}">>/tmp/cfwdebug.log;
echo "SIP_SRCIP ${SIP_SRCIP}">>/tmp/cfwdebug.log;
echo "SIP_HF_CONTENT_TYPE ${SIP_HF_CONTENT_TYPE}">>/tmp/cfwdebug.log;
echo "SIP_HF_CONTACT
${SIP_HF_CONTACT}">>/tmp/cfwdebug.log')) {
log(1, "script-echo fail\n");
}
}
now when I am looking to /tmp/cfwdebug.log, it contains:
SIP_HF_MAX_FORWARDS 69
SIP_HF_VIA SIP/2.0/UDP 192.168.25.101:5060;rport;branch=z9hG4bK5410DAEAA0744FA0B2BD64F59D465EF8
SIP_HF_CSEQ 1591 INVITE
SIP_HF_FROM matuka <sip:tuka@192.168.25.163>;tag=1660681736
SIP_ORUI sip:*226566548@192.168.25.163
SIP_HF_CONTENT_LENGTH 275
SIP_TID 3c8495de485acf4427dcfc7c5a0c0e8a
SIP_DID
SIP_RURI sip:6566548@192.168.25.163
SIP_HF_TO <sip:*226566548@192.168.25.163>
SIP_OUSER *226566548
SIP_HF_CALLID
50748A60-1D39-470B-B9CC-84CCC32B67BD@192.168.25.101SIP_SRCIP 192.168.25.101
SIP_HF_CONTENT_TYPE application/sdp
SIP_HF_CONTACT <sip:tuka@192.168.25.101:5060>
Any help highly aprreciated!
Tina,
software engineer
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
Do you Yahoo!?
Make Yahoo! your home page