<div><br></div>Try the following below.<div><br></div><div>Mitul Limbani<br><br><div class="gmail_quote">On Mon, Mar 12, 2012 at 7:52 PM, Rafael Visser <span dir="ltr">&lt;<a href="mailto:visser.rafael@gmail.com">visser.rafael@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi people.<br>
Is there any way to set a different context on each spam, so i can<br>
route to different application depending on what trunk came the<br>
incoming call?.<br>
In other word, if the call is received on first spam context=first ,<br>
and if the call is received on the second, context=second.<br>
<br>
<br>
<br>
Here is my chan_dahdy.conf<br>
<br>
[trunkgroups]<br>
trunkgroup =&gt; 1,16<br>
spanmap =&gt; 1,1,1<br>
spanmap =&gt; 2,1,2<br>
<br>
<br>
[channels]<br>
language=es<br>-------------------------&gt; Removed from here <br>
group=1<br>
echocancel=no<br>
signalling=SS7<br>
ss7type = itu<br>
ss7_explictacm=yes<br>
networkindicator=national<br>
threewaycalling=yes<br>
transfer=yes<br>
canpark=yes<br>
cancallforward=yes<br>
callreturn=yes<br>
facilityenable=yes<br>
callwaiting=yes<br>
;usecallingpres=yes<br>
inmediate=yes<br>
jitterbuffers=4<br>
jbenable = yes<br>
jbmaxsize = 200<br>
jbresyncthreshold = 1000<br>
jbimpl = fixed ; or &quot;adaptive&quot;<br>
jblog = no<br>
linkset = 1<br>
;;AIMS2<br>
pointcode = 2539<br>
adjpointcode = 2500<br>
defaultdpc = 2500<br>
;;1st E1<br>
cicbeginswith = 1<br>
sigchan = 16<br>
channel=1-15<br>
cicbeginswith = 17<br>
channel = 17-31<br></blockquote><div><b>context=first</b> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
;;2nd E1<br>
cicbeginswith = 33<br>
channel = 32-46<br>
;sigchan = 47<br>
cicbeginswith = 49<br>
channel = 48-62<br></blockquote><div><b>context=second</b> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks in advance..<br>
rv<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-ss7 mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br>
</blockquote></div><br></div>