Hi Alex,<br>Thank you<br>Tom<br><br><br><br><div class="gmail_quote">On Sat, Nov 21, 2009 at 10:24 AM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thomas,<br>
<div><div></div><div class="h5"><br>
Thomas Perron wrote:<br>
<br>
> I have two DID numbers. I want to configurate my IVR to initiate a<br>
> context 1 if I dial DID 1.<br>
> If DID2 is dialed then start with context 2.<br>
<br>
</div></div>Assuming that the DID originator sends you the number in the Request<br>
URI, you can just treat them like "extensions" in Asterisk. Example:<br>
if you have DID 6789540670 and 6789540671:<br>
<br>
exten => 6789540670,1,Goto(context_1,${EXTEN},1)<br>
exten => 6789540671,1,Goto(context_2,${EXTEN},1)<br>
<br>
[context_1]<br>
<br>
; IVR<br>
<br>
exten => 6789540670,1,Answer<br>
exten => 6789540670,n,Playback(hello-world)<br>
exten => 6789540670,n,Hangup<br>
<br>
[context_2]<br>
<br>
exten => 6789540671,1,Dial(SIP/abalashov,30,r)<br>
exten => 6789540671,n,Congestion<br>
<br>
-- Alex<br>
<font color="#888888"><br>
--<br>
Alex Balashov - Principal<br>
Evariste Systems<br>
Web : <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a><br>
Tel : (+1) (678) 954-0670<br>
Direct : (+1) (678) 954-0671<br>
</font><div><div></div><div class="h5"><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-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>