<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
On 1/4/11 5:13 PM, alex pappas wrote:
<blockquote
cite="mid:AANLkTim7DK_2Zzu2iUw-pdzLtj3ZJC_1pHVCV0wLpH+E@mail.gmail.com"
type="cite">Hi all,<br>
<br>
The $avp(dsattrs) it works fine. It was a misconfiguration.<br>
</blockquote>
thanks for reporting back.<br>
<blockquote
cite="mid:AANLkTim7DK_2Zzu2iUw-pdzLtj3ZJC_1pHVCV0wLpH+E@mail.gmail.com"
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>
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
cite="mid:AANLkTim7DK_2Zzu2iUw-pdzLtj3ZJC_1pHVCV0wLpH+E@mail.gmail.com"
type="cite"><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 moz-do-not-send="true"
href="mailto:rebel.pappas@gmail.com">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 moz-do-not-send="true"
href="http://100.12.12.12:5060" target="_blank">100.12.12.12:5060</a>
attrs 111<br>
destination sip:<a moz-do-not-send="true"
href="http://100.12.12.11:5060" target="_blank">100.12.12.11:5060</a>
attrs 222<br>
destination sip:<a moz-do-not-send="true"
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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>