Hello,
To get the username of the caller, I use the following code in my shell scripts:
POS1=`expr index "$SIP_HF_FROM" : + 1`; LENGTH=`expr index "$SIP_HF_FROM" @ - $POS1`; USER=`expr substr "$SIP_HF_FROM" $POS1 $LENGTH`;
Is there any other way to do that? I need to make a query with the username of the CALLING user...
Thanks!
Sebastian
Do you really need an external script? You can also access db tables using avpops, which is much more nicer.
klaus
Sebastian Kühner wrote:
Hello,
To get the username of the caller, I use the following code in my shell scripts:
POS1=`expr index "$SIP_HF_FROM" : + 1`; LENGTH=`expr index "$SIP_HF_FROM" @ - $POS1`; USER=`expr substr "$SIP_HF_FROM" $POS1 $LENGTH`;
Is there any other way to do that? I need to make a query with the username of the CALLING user...
Thanks!
Sebastian
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers