thank you Daniel,
That it will be perfect!
Cheers
Alex
On Fri, Jan 7, 2011 at 3:17 PM, Daniel-Constantin Mierla
<miconda(a)gmail.com>wrote;wrote:
Hi Alex,
On 1/7/11 11:18 AM, alex pappas wrote:
Daniel hi,
The attribute field I use to add an extra prefix to the destination GW.
This is the reason why I'm asking if is possible to get also the description
field. I need to add in my CDRs an extra field which will be the description
of the GW that the call will be terminated.
I can possibly add the description with the prefix in the attribute field
as you told me in the past and grabbed from there in the form of
XXX.GW_Description where XXX=gw_prefix.
yes, you can keep in attrs field various format of data, one example will
be:
"prefix=123;desc=gwX"
Then in config you can use param transformation to get each of them:
$(avp(dsattrs){param.value,prefix}
$(avp(dsattrs){param.value,desc}
Cheers,
Daniel
Thank you for the answer
Alex
On Fri, Jan 7, 2011 at 11:31 AM, Daniel-Constantin Mierla <
miconda(a)gmail.com> wrote:
Hello,
On 1/4/11 5:13 PM, alex pappas wrote:
Hi all,
The $avp(dsattrs) it works fine. It was a misconfiguration.
thanks for reporting back.
Does anyone knows if is possible to retrieve from Dispatcher the
description field from each GW and add that to an avp pair?
Isn't the attribute field enough for such needs? The description field in
db was intended to map on comments from the text file, just to help admins
understand what is about that address.
Cheers,
Daniel
Thanks
Alex
On Mon, Jan 3, 2011 at 6:13 PM, alex pappas <rebel.pappas(a)gmail.com>wrote;wrote:
Dear all,
I'm trying with the Dispatcher module to terminate a call to three
different gateways serially. For each gw I use the attribute field to get
the attribute and add it as a prefix to the RU.
The problem is that the $avp(dsattrs) is returning always the first value
of the first gw that is using.
example:
destination sip:100.12.12.12:5060 attrs 111
destination sip:100.12.12.11:5060 attrs 222
destination sip:100.12.12.10:5060 attrs 333
In this example the rU will always be 111+number. I tried also to
initiate the avp in the Failure route by giving null value but still does
not change the result.
In Request route:
if(ds_select_domain("$avp(s:disp_dstgrp)", "4"))
{
$avp(s:term_prefix) = $avp(dsattrs); # avp for
CDR purpose
$rU = $avp(dsattrs) + $rU;
t_on_failure("FAIL_NATIONAL");
t_relay();
exit;
}
In Failure route:
if(!ds_next_domain())
{
t_reply("503", "Service Unavailable");
exit;
} else {
$rU = $avp(dsattrs) + $rU;
t_on_failure("FAIL_THIS");
append_branch();
if(!t_relay()) {
t_reply("503","Service
Unavailable");
exit;
}
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA,
USAhttp://www.asipto.com
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA,
USAhttp://www.asipto.com