It seems that modules_k XLOG is not supporting. "select framework".
I can't use modules_s XLOG because it depends on module_s SL.
But is not compatible with modules_k what i am using SL.
Should i import both sl and xlog modul??
Is there any ROADMAP to merge the two SL and XLOG modul?
Misi
Hi,
On 08/12/2009 02:18 PM, MÉSZÁROS Mihály wrote:
Hi,
As i mentioned i am experiencing problem with it.
Where can use "select framework"?
In the routing script where is it interpreted?
And where it can't be interpreted?
My route script:
# main request routing logic
route{
xlog("L_ERR", "Misi: $mb\n");
log("@to");
log("%@to");
should be xlog("L_ERR", "%@to\n");
(xlog is from modules_k)
The syslog:
Aug 12 13:47:08 a1 /usr/sbin/ser[16873]: ERROR: <script>: Misi:
SUBSCRIBE sip:alice@atlanta.test SIP/2.0#015#012Via: SIP/2.0/TLS
192.168.1.7:4241;branch=z9hG4bK-d8754z-88681272b342b557-1---d8754z-;rport#015#012Max-Forwards:
70#015#012Contact:
<sip:alice@92.249.143.13:1774;transport=TLS>#015#012To:
<sip:alice@atlanta.test>#015#012From:
"alice"<sip:alice@atlanta.test>;tag=c5276406#015#012Call-ID:
Mzk5NDMyNmM3MWQ2YzVkZWI0NDJmMGIwNTU5YmRiOGQ.#015#012CSeq: 2
SUBSCRIBE#015#012Expires: 1200#015#012Accept:
application/watcherinfo+xml#015#012Allow: INVITE, ACK, CANCEL,
OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE,
INFO#015#012Proxy-Authorization: Digest
username="alice",realm="atlanta.test",nonce="4a82abd900000004fe8805f0d126e8779e4e03e15116fb82",uri="sip:alice@atlanta.test",response="629398053038854e40c49ee3c89cd242",cnonce="d6a34800a3e9b04b6857a2a6c66382c3",nc=00000001,qop=auth,algorithm=MD5#015#012Supported:
replaces#015#012User-Agent: Bria Professional release 2.4 stamp
49381#015#012Event: presence.winfo#015#012Content-Length:
0#015#012#015#012
Aug 12 13:47:08 a1 /usr/sbin/ser[16873]: <script>: @to
Aug 12 13:47:08 a1 /usr/sbin/ser[16873]: <script>: %@to
So it seems log() is not interpreting select statement.
log() does not support select values, use xlog instead which accepts
xl-formatted strings. They can contain selects and avps, just start
them with percent sign: "this is and avp: %$myavp, and this is a
select: %(a)ruri.user"quot;.
Can You please explain where can i use the
selects?
You can use them in the conditional statements, for example to check
whether or not the called party starts with +:
if (@ruri.user =~ "^\+") ...
Lots of functions accept selects as parameters, for example the second
parameter of lookup_domain():
lookup_domain("$td", "(a)ruri.host")ost");
Have a look at etc/sip-router-oob.cfg for examples.
Miklos
>
> Cheers,
> Misi
>
> Miklos Tirpak wrote:
>> Hi,
>>
>> selects come from SER, I found these pages about them:
>>
http://www.iptel.org/introduction_to_selects_and_attribute_value_pairs_avpa…
>>
>>
http://www.iptel.org/attribute_value_pairs_and_selects
>>
>> For the list of available selects you can use
>>
http://www.iptel.org/ser/doc/search
>> (Uncheck F, R, and P)
>> It shows a bit older state though.
>>
>> Miklos
>>
>> On 08/11/2009 03:30 PM, MÉSZÁROS Mihály wrote:
>>> Hi!
>>>
>>> Can any of you explain how select framework is working?
>>> Where can i find any documentation about it.
>>> I am experiencing problem when i am try using it.
>>> Any help highly appreciated!
>>>
>>> Regards,
>>> Misi
>>>
>>>
>>>
>>> _______________________________________________
>>> sr-users mailing list
>>> sr-users(a)lists.sip-router.org
>>>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users