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 ?
I did following
exten => s,1,ChanIsAvail(${ARG2}&IAX2/${ARG1},20,t)
exten => s,n,NoOp(${AVAILCHAN})
exten => s,n,Set(NewVar=${CUT(AVAILCHAN,,1)})
exten => s,n,NoOp(${NewVar})
exten => s,n,Dial(${NewVar}/${EXTEN})
exten => s,n,Hangup()
And in result i got following: Why its looking at IAX2/0.0.29.199 what is
0.0.29.199?
shirley*CLI>
== Using SIP RTP CoS mark 5
-- Executing [7623@from-sip:1] Macro("SIP/7527-0000004c",
"stdexten,7623,SIP/7623") in new stack
-- Executing [s@macro-stdexten:1] ChanIsAvail("SIP/7527-0000004c",
"SIP/7623&IAX2/7623,20,t") in new stack
-- Hungup 'IAX2/0.0.29.199:4569-2707'
-- Executing [s@macro-stdexten:2] NoOp("SIP/7527-0000004c",
"IAX2/0.0.29.199:4569-2707") in new stack
-- Executing [s@macro-stdexten:3] Set("SIP/7527-0000004c",
"NewVar=IAX2/0.0.29.199:4569") in new stack
-- Executing [s@macro-stdexten:4] NoOp("SIP/7527-0000004c",
"IAX2/0.0.29.199:4569") in new stack
-- Executing [s@macro-stdexten:5] Dial("SIP/7527-0000004c",
"IAX2/0.0.29.199:4569/s") in new stack
-- Called 0.0.29.199:4569/s
[Apr 7 16:59:21] NOTICE[13915]: chan_iax2.c:4643 __auto_congest:
Auto-congesting call due to slow response
-- IAX2/0.0.29.199:4569-3390 is circuit-busy
-- Hungup 'IAX2/0.0.29.199:4569-3390'
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-stdexten:6] Hangup("SIP/7527-0000004c", "") in new
stack
== Spawn extension (macro-stdexten, s, 6) exited non-zero on
'SIP/7527-0000004c' in macro 'stdexten'
== Spawn extension (from-sip, 7623, 1) exited non-zero on 'SIP/7527-0000004c'
> To: [email protected]
> From: [email protected]
> Date: Thu, 7 Apr 2011 20:49:04 +0000
> Subject: Re: [asterisk-users] WARNING chan_sip.c:3115 __sip_xmit
>
> That should be CUT all caps I think
> -----Original Message-----
> From: satish patel <[email protected]>
> Sender: [email protected]
> Date: Thu, 7 Apr 2011 20:45:21
> To: asterisk-users<[email protected]>
> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
> <[email protected]>
> Subject: Re: [asterisk-users] WARNING chan_sip.c:3115 __sip_xmit
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users