Hello, On 09/06/15 11:27, jaflong jaflong wrote: > Hi, > > I am getting a 403 not relaying response. > This is the part of the config > > How would I print the value of var myself, from_uri and uri > > > # if caller is not local subscriber, then check if it calls > # a local destination, otherwise deny, not an open relay here > if (from_uri!=myself && uri!=myself) { > sl_send_reply("403","Not relaying"); > exit; > } > > myself is not a value, but a special token to specify that comparison has to be done against the list of local IP addresses and domains associated with the sip server.
To print from_uri, then use $fu. To print uri, then use $ru. Cheers, Daniel -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com _______________________________________________ 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