This is a very basic question, but can someone let me know what this line means?
if($si==$sel(cfg_get.pstn.gw_ip)) return 1; return -1;
Thank you, A
It's checking the source of the current message. If the source address of the message equals the variable pstn.gw_ip, return 1, otherwise return -1;
On Mon, Aug 26, 2013 at 3:33 PM, arun Jayaprakash <jayaprakasharun@yahoo.com
wrote:
This is a very basic question, but can someone let me know what this line means?
if($si==$sel(cfg_get.pstn.gw_ip)) return 1; return -1;
Thank you, A
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
I think I found my missing ACKs! Can anyone tell me why they work be being sent to the loopback interface? The destination address is still the external (eth0) IP.
On Mon, Aug 26, 2013 at 3:36 PM, Marc Soda msoda@coredial.com wrote:
It's checking the source of the current message. If the source address of the message equals the variable pstn.gw_ip, return 1, otherwise return -1;
On Mon, Aug 26, 2013 at 3:33 PM, arun Jayaprakash < jayaprakasharun@yahoo.com> wrote:
This is a very basic question, but can someone let me know what this line means?
if($si==$sel(cfg_get.pstn.gw_ip)) return 1; return -1;
Thank you, A
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Marc Soda, Sr. Systems Engineer *CoreDial, LLC* | www.coredial.com
1787 Sentry Parkway West, Building 16, Suite 100, Blue Bell, PA 19422 Office: (215) 297-4400 x203 | Fax: (215) 297-4401 | Email: msoda@coredial.com
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
Thanks Marc, so in the following module what happens if either 1 or -1 is returned?
#!ifdef WITH_PSTN route[FROMPSTN] { if($si==$sel(cfg_get.pstn.gw_ip)) return 1; return -1; } #!endif
Thank you, A
________________________________ From: Marc Soda msoda@coredial.com To: arun Jayaprakash jayaprakasharun@yahoo.com; Kamailio (SER) - Users Mailing List sr-users@lists.sip-router.org Sent: Monday, August 26, 2013 2:36 PM Subject: Re: [SR-Users] What does this mean...
It's checking the source of the current message. If the source address of the message equals the variable pstn.gw_ip, return 1, otherwise return -1;
On Mon, Aug 26, 2013 at 3:33 PM, arun Jayaprakash jayaprakasharun@yahoo.com wrote:
This is a very basic question, but can someone let me know what this line means?
if($si==$sel(cfg_get.pstn.gw_ip)) return 1; return -1;
Thank you, A
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Take a look at where route(frompstn) is being called. It's probably in a 'if' statement, meaning that if the source address is the pstn.gw_ip, then return TRUE. Returning -1 is like saying, FALSE.