On Wed, 2 Mar 2005 00:51:15 -0800 (PST), Alex <[EMAIL PROTECTED]> wrote:
> Hi guys still have the problem to setup the IVR correctly. 
>   
> I am forwarding call from ser : 
> 
> if (method == "INVITE") { 
>     if (uri =~ "sip:[EMAIL PROTECTED]"){ 
>         log(1, "Forwarding to Asterisk\n"); 
>         rewritehostport("xxx.xxx.xxx.xxx:5061"); 
>         t_relay(); 
>         break; 
>     } 
>  } 
>   
> inside sip.conf 
> -------------------------------------------------------------------------------------
> port=5061                 
> bindaddr=0.0.0.0               
> srvlookup=yes 
>   
> [ser]
> type=peer
> host=xxx.xxx.xxx.xxx
> context=ser1 
>   
> inside extensions.conf 
> -------------------------------------------------------------------------------------
> [ser1]
> Exten => 40,1,Answer
> Exten => 40,2,SetMusicOnHold(default)
> Exten => 40,3,DigitTimeout,5
> Exten => 40,4,ResponseTimeout,10
> Exten => 40,5,Background(greeting) 
> Exten => 1,1,Playback(secr) ; if you press <91>1<92> playback message
> <93>secr<94>
> Exten => 1,2,Dial(SIP/Phone1/20) 
> Exten => 2,1,Playback(studentservice)
> Exten => 2,2,Dial(SIP/Phone1/20) 
> Exten => 3,1,Playback(it)
> Exten => 3,2,Dial(SIP/Phone1/20) 
> Exten => 4,1,Playback(operator)
> Exten => 4,2,Dial(SIP/Phone1/20) 

  You are answering only if "40" rings.  But that is probably not the
destination that SER is passing in.  If you just want to answer
anything, you should probably use the "s" extension.


Tom
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to