Hi ,<br> First map to all campaign to different different group and then set simple context=your context name <br>example <br>group=1<br>cicbeginswith = 1<br>
sigchan = 16<br>channel=1-15<br>
cicbeginswith = 17<br>channel = 17-31<br>context=your context name <br>group=2<br>cicbeginswith = 33<br>
channel = 32-46<br>
;sigchan = 47<br>
cicbeginswith = 49<br> channel = 48-62<br>
context= your second context<br> Try it's work 100%.<br><br><div class="gmail_quote">On Tue, Mar 13, 2012 at 12:08 AM, Rafael Visser <span dir="ltr"><<a href="mailto:visser.rafael@gmail.com">visser.rafael@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks, it works.<br>
rv<br>
<br>
2012/3/12 Mitul Limbani <<a href="mailto:mitul@enterux.com">mitul@enterux.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> However, Its a good idea if you put bi-furcation in the dialplan based on<br>
> the Inbound DIDs landing.<br>
><br>
> like :<br>
><br>
> exten => 7611,1,DoSomething<br>
> exten => 7612,2,DoSomethingelse<br>
><br>
> in the extensions.conf<br>
><br>
> Mitul Limbani<br>
><br>
> On Mon, Mar 12, 2012 at 7:57 PM, Mitul Limbani <<a href="mailto:mitul@enterux.com">mitul@enterux.com</a>> wrote:<br>
>><br>
>><br>
>> Try the following below.<br>
>><br>
>> Mitul Limbani<br>
>><br>
>> On Mon, Mar 12, 2012 at 7:52 PM, Rafael Visser <<a href="mailto:visser.rafael@gmail.com">visser.rafael@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> 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 => 1,16<br>
>>> spanmap => 1,1,1<br>
>>> spanmap => 2,1,2<br>
>>><br>
>>><br>
>>> [channels]<br>
>>> language=es<br>
>>> -------------------------> Removed from here<br>
>>><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 "adaptive"<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>
>><br>
>> context=first<br>
>>><br>
>>> ;;2nd E1<br>
>>> cicbeginswith = 33<br>
>>> channel = 32-46<br>
>>> ;sigchan = 47<br>
>>> cicbeginswith = 49<br>
>>> channel = 48-62<br>
>><br>
>> context=second<br>
>>><br>
>>><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>
>><br>
>><br>
><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>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>BIPIN RAGHUVANSHI<br>OPERATION HEAD<br>ASTERISK (DEVELOPMENT AND RESEARCH) <br><a href="http://WWW.EHORIZONS.IN">WWW.EHORIZONS.IN</a><br>011-32323262<br>011-46334633<br>