Daniel hi,<br><br>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. <br>
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.<br><br>Thank you for the answer<br><br>Alex<br>
<br><br><br><br><div class="gmail_quote">On Fri, Jan 7, 2011 at 11:31 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
Hello,<div class="im"><br>
<br>
On 1/4/11 5:13 PM, alex pappas wrote:
<blockquote type="cite">Hi all,<br>
<br>
The $avp(dsattrs) it works fine. It was a misconfiguration.<br>
</blockquote></div>
thanks for reporting back.<div class="im"><br>
<blockquote type="cite"><br>
Does anyone knows if is possible to retrieve from Dispatcher the
description field from each GW and add that to an avp pair?<br>
</blockquote>
<br></div>
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.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote type="cite"><div><div></div><div class="h5"><br>
Thanks<br>
<br>
Alex<br>
<br>
<br>
<br>
<br>
<br>
<div class="gmail_quote">On Mon, Jan 3, 2011 at 6:13 PM, alex
pappas <span dir="ltr"><<a href="mailto:rebel.pappas@gmail.com" target="_blank">rebel.pappas@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear all,<br>
<br>
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.<br>
The problem is that the $avp(dsattrs) is returning always the
first value of the first gw that is using.<br>
<br>
example:<br>
<br>
destination sip:<a href="http://100.12.12.12:5060" target="_blank">100.12.12.12:5060</a>
attrs 111<br>
destination sip:<a href="http://100.12.12.11:5060" target="_blank">100.12.12.11:5060</a>
attrs 222<br>
destination sip:<a href="http://100.12.12.10:5060" target="_blank">100.12.12.10:5060</a>
attrs 333<br>
<br>
<br>
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.<br>
<br>
<br>
In Request route:<br>
<br>
if(ds_select_domain("$avp(s:disp_dstgrp)", "4"))<br>
{<br>
$avp(s:term_prefix) = $avp(dsattrs); #
avp for CDR purpose<br>
<br>
$rU = $avp(dsattrs) + $rU;<br>
t_on_failure("FAIL_NATIONAL");<br>
t_relay();<br>
exit; <br>
<br>
}<br>
<br>
In Failure route:<br>
<br>
<br>
if(!ds_next_domain())<br>
{<br>
t_reply("503", "Service Unavailable");<br>
exit;<br>
} else {<br>
<br>
$rU = $avp(dsattrs) + $rU;<br>
<br>
<br>
t_on_failure("FAIL_THIS");<br>
append_branch();<br>
if(!t_relay()) {<br>
t_reply("503","Service
Unavailable");<br>
exit;<br>
}<br>
</blockquote>
</div>
<br>
</div></div><pre><fieldset></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></pre>
</div>
</blockquote></div><br>