<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Yes! You are right! Its working. Now issue is we have SIP extension for
local office users and same number has IAX extension for remote
traveling users. How could i use ChanIsAvail with best action ?<br><br>I did following <br><br>exten => s,1,ChanIsAvail(${ARG2}&IAX2/${ARG1},20,t)<br>exten => s,n,NoOp(${AVAILCHAN})<br>exten => s,n,Set(NewVar=${CUT(AVAILCHAN,,1)})<br>exten => s,n,NoOp(${NewVar})<br>exten => s,n,Dial(${NewVar}/${EXTEN})<br>exten => s,n,Hangup()<br><br><br><br>And in result i got following: Why its looking at IAX2/0.0.29.199 what is 0.0.29.199?<br><br>shirley*CLI><br> == Using SIP RTP CoS mark 5<br> -- Executing [7623@from-sip:1] Macro("SIP/7527-0000004c", "stdexten,7623,SIP/7623") in new stack<br> -- Executing [s@macro-stdexten:1] ChanIsAvail("SIP/7527-0000004c", "SIP/7623&IAX2/7623,20,t") in new stack<br> -- Hungup 'IAX2/0.0.29.199:4569-2707'<br> -- Executing [s@macro-stdexten:2] NoOp("SIP/7527-0000004c", "IAX2/0.0.29.199:4569-2707") in new stack<br> -- Executing [s@macro-stdexten:3] Set("SIP/7527-0000004c", "NewVar=IAX2/0.0.29.199:4569") in new stack<br> -- Executing [s@macro-stdexten:4] NoOp("SIP/7527-0000004c", "IAX2/0.0.29.199:4569") in new stack<br> -- Executing [s@macro-stdexten:5] Dial("SIP/7527-0000004c", "IAX2/0.0.29.199:4569/s") in new stack<br> -- Called 0.0.29.199:4569/s<br>[Apr 7 16:59:21] NOTICE[13915]: chan_iax2.c:4643 __auto_congest: Auto-congesting call due to slow response<br> -- IAX2/0.0.29.199:4569-3390 is circuit-busy<br> -- Hungup 'IAX2/0.0.29.199:4569-3390'<br> == Everyone is busy/congested at this time (1:0/1/0)<br> -- Executing [s@macro-stdexten:6] Hangup("SIP/7527-0000004c", "") in new stack<br> == Spawn extension (macro-stdexten, s, 6) exited non-zero on 'SIP/7527-0000004c' in macro 'stdexten'<br> == Spawn extension (from-sip, 7623, 1) exited non-zero on 'SIP/7527-0000004c'<br><br><br><br><br>> To: asterisk-users@lists.digium.com<br>> From: isrlgb@gmail.com<br>> Date: Thu, 7 Apr 2011 20:49:04 +0000<br>> Subject: Re: [asterisk-users] WARNING chan_sip.c:3115 __sip_xmit<br>> <br>> That should be CUT all caps I think<br>> -----Original Message-----<br>> From: satish patel <satish_lx@hotmail.com><br>> Sender: asterisk-users-bounces@lists.digium.com<br>> Date: Thu, 7 Apr 2011 20:45:21 <br>> To: asterisk-users<asterisk-users@lists.digium.com><br>> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion<br>>         <asterisk-users@lists.digium.com><br>> Subject: Re: [asterisk-users] WARNING chan_sip.c:3115 __sip_xmit<br>> <br>> --<br>> _____________________________________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>> http://www.asterisk.org/hello<br>> <br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-users<br>> <br>> <br>> --<br>> _____________________________________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>> http://www.asterisk.org/hello<br>> <br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-users<br>                                            </body>
</html>