<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1">Hello Everyone<br>
I'm trying to modify the callerid(num and name) for each of my branch
offices when a call is placed over dundi.<br>
This is my scenario!!<br>
<br>
<br>
context default {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; includes something;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; includes via-voip;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; includes via-pstn;<br>
};<br>
<br>
context via-voip {<br>
&nbsp;&nbsp;&nbsp; switches {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; DUNDi/lookup;<br>
&nbsp;&nbsp;&nbsp; };<br>
};<br>
<br>
context via-pstn {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; _X. =&gt; Dial(IAX2/mediagateway/${EXTEN});<br>
};<br>
<br>
<br>
Now this is what i need<br>
<br>
when the number dialed is found via DUNDi i wish to set callerid name
like <br>
Branch Office 1: CALLERNAME<br>
</font><font size="-1">Branch Office 2: CALLERNAME<br>
and so on!!<br>
<br>
But when not found just go thru the context psn normally!!<br>
<br>
Tried to do with a macro like this<br>
<br>
macro dundi(DESTINU){<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; s: {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set(CALLERID(name)=BRANCH OFFICE1: ${CALLERID(name)});<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; includes {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; procuradundi;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>
return;<br>
};<br>
<br>
contex via-voip {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; X. =&gt; &amp;dundi(${EXTEN});<br>
};<br>
<br>
The callerid(name) is set properly but no include is executed!!!<br>
<br>
Thanks for who helps!!!<br>
</font><font size="-1"><br>
<br>
</font>
<div class="moz-signature">-- <br>
<font color="#000099" size="2">
<strong>Atenciosamente,
<br>
Andr&eacute; Lu&iacute;s
<br>
Grupo de Redes de Computadores
<br>
Assessoria de Inform&aacute;tica
<br>
E-mail: <a class="moz-txt-link-abbreviated" href="mailto:andrel@unesp.br">andrel@unesp.br</a>
<br>
Tel.: +55 (011) 5627-0604
<br>
VoIP.: 110604
</strong></font>
</div>
</body>
</html>