I originally wrote ChanIsAvail to be for Zap devices, and then with some
ideas from Mark I made it generic enough to work for any channel driver.
Unfortunately for the voip protocols it doesn't really work very well.
It basically grabs starts a call but never actually makes a call, and I
don't know how the different channel drivers will handle it.
I don't really see anything that points to ChanIsAvail to being the
problem, it looks more like the Wait is whats causing the problem. or
maybe a combination of using ChanIsAvail and the Wait
James
On Tue, 1 Apr 2003, Pavel Litvinenko wrote:
> With sip and h323 * works fine ... but when I use MGCP endpoints :
>
> with this config:
>
> exten => 1001,1,ChanIsAvail(MGCP/aaln/[EMAIL PROTECTED])
> exten => 1001,2,Ringing()
> #exten => 1001,3,Wait(1)
> exten => 1001,3,Dial,MGCP/aaln/[EMAIL PROTECTED]
> exten => 1001,102,Busy()
>
> when I dial 1001 , the phone (Dlink DPH-100m) just ringing one time and
> connection is lost ...
>
> -- Executing ChanIsAvail("H323/ip$192.168.161.248:33283/3917",
> "MGCP/aaln/[EMAIL PROTECTED]") in new stack
> -- Executing Ringing("H323/ip$192.168.161.248:33283/3917", "") in
> new stack
> -- Executing Dial("H323/ip$192.168.161.248:33283/3917",
> "MGCP/aaln/[EMAIL PROTECTED]") in new stack
> -- Called aaln/[EMAIL PROTECTED]
> -- MGCP/aaln/[EMAIL PROTECTED] is ringing
> == No one is available to answer at this time
>
> everything is ok when
>
> exten => 1001,1,ChanIsAvail(MGCP/aaln/[EMAIL PROTECTED])
> exten => 1001,2,Ringing()
> exten => 1001,3,Wait(1)
> exten => 1001,4,Dial,MGCP/aaln/[EMAIL PROTECTED]
> exten => 1001,102,Busy()
>
> -- Executing ChanIsAvail("H323/ip$192.168.161.248:33284/3918",
> "MGCP/aaln/[EMAIL PROTECTED]") in new stack
> -- Executing Ringing("H323/ip$192.168.161.248:33284/3918", "") in
> new stack
> -- Executing Wait("H323/ip$192.168.161.248:33284/3918", "1") in new
> stack
> -- Executing Dial("H323/ip$192.168.161.248:33284/3918",
> "MGCP/aaln/[EMAIL PROTECTED]") in new stack
> -- Called aaln/[EMAIL PROTECTED]
> -- MGCP/aaln/[EMAIL PROTECTED] is ringing
> -- MGCP/aaln/[EMAIL PROTECTED] answered H323/ip$192.168.161.248:33284/3918
> == Spawn extension (default, 1001, 4) exited non-zero on
> 'H323/ip$192.168.161.248:33284/3918'
>
>
>
>
> --
> ----
> ---------
> Best Regards,
> Pavel Litvinenko.
> ICQ: 16224754
> Ph: (8632) 923540, 923640
> sip:[EMAIL PROTECTED]
>
>
>
> _______________________________________________
> Asterisk-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
_______________________________________________
Asterisk-Dev mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-dev