On 18.03.11 11:55, Alekzander Spiridonov wrote:
P.S.: Is there a full list of predefined variables (such
as@user, #key)?
For which application / API ? Do you mean in DSM?
Yes, for using in DSM. As for now, I want to check the source
ip of the received invite - is it possible?
Nope, but it is fairly easy to add. Please have a look at
DSMCall.cpp. In onSipRequest and onSipReply, you will see some
params being assigned (ex: params["from"] = req.from). You can
extend it there with:
onSipRequest():
params["remote_ip"] = req.remote_ip
onSipReply():
params["remote_ip"] = reply.remote_ip
Will it be taken from ip headers?
I believe so. It is what is delivered by the IP stack. If somebody has
modified something before the packet hit the IP stack, then it could be
something different.
-Raphael.
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems