[sr-dev] [tracker] Task opened: bug in $snd and $sndto pseudo variable

sip-router admin at sip-router.org
Mon Jul 18 19:23:06 CEST 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Klaus Darilion (klaus3000) 

Attached to Project - sip-router
Summary - bug in $snd and $sndto pseudo variable
Task Type - Bug Report
Category - Core
Status - Assigned
Assigned To - Andrei Pelinescu-Onciul
Operating System - All
Severity - Low
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - According to
http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:3.1.x#send_addr_attributes

$snd(ip) should print the IP address, but it prints "IP:port". Thus, checks as described in the manual do not work: if($sndto(ip)=="10.10.10.10") ...


INFO: <script>: $snd(ip)        = 8.16.33.239:5060
INFO: <script>: $snd(port)      = 5060
INFO: <script>: $snd(proto)     = 1
INFO: <script>: $snd(af)        = 2
INFO: <script>: $sndto(ip)      = 8.16.33.239:5060
INFO: <script>: $sndto(port)    = 5060
INFO: <script>: $sndto(proto)   = 1
INFO: <script>: $sndto(af)      = 2
INFO: <script>: $sndfrom(ip)    = 8.16.32.159
INFO: <script>: $sndfrom(port)  = 5060
INFO: <script>: $sndfrom(proto) = 1
INFO: <script>: $sndfrom(af)    = 2



More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=140

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list