[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-dev
Subject:    Re: [asterisk-dev] Reject incoming call
From:       Pavel Troller <patrol () sinus ! cz>
Date:       2015-02-12 11:28:19
Message-ID: 20150212112819.GA20117 () tangens ! sinus ! cz
[Download RAW message or body]

Hi Roy,

> Hi Friends,
> 
> I am trying to implement a simple dial plan with asterisk.
> 1. Ring the inbound call
> 2. wait for 2 seconds
> 3. call agi script with cli
> 4. hangup
> 
> But when it gets hangup I see the Declined is passed from the asterisk.
> But my PSTN provider keep waiting in dialing state with no noise until 60
> seconds.
> 
> any idea what I have done wrong.
> 
> here is my dial plan
> 
> exten => 01XXXX,1,Ringing()
> exten => 01XXXX,2,Wait(2)
> exten =>
> 01XXXX,3,Set(vxmlurl=http%3A%2F%2F127.0.0.1:8080%2Ftest%2Findex.jsp?ani=${CALLERID(num)})
> exten => 01XXXX,4,Agi(agi://127.0.0.1/url=${vxmlurl})
> exten => 01XXXX,5,Hangup()

Did you try to put a specific Clear Cause code to the Hangup command ?
For example, Hangup(17) means User Busy, i.e. 486 Busy Here on SIP, or
Hangup(1) means Unallocated Number or 404 Not Found etc. If you want to
find more codes, search for ISDN Cause Codes. Your PSTN provider will
probably react better to other causes than the default one, which is
probably 16 Normal Call Clearing.

With regards,
  Pavel

> 
> Please advice,
> 
> Best Regards,
> Roy.


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic