Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] 603 Declined > Dialstatus Busy


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
nick at flhsi.com
Guest





PostPosted: Fri Feb 27, 2015 12:57 pm    Post subject: [asterisk-users] 603 Declined > Dialstatus Busy Reply with quote

Hello Everyone.

In my outbound contexts, I'm using "${DIALSTATUS}" to fail over to other routes if the chosen route rejects the call.

Now, My current scenario is if I get "BUSY" back from the first provider, I send a busy back to my customer. If I get something like CHANUNAVAIL (Like a SIP 503) I advance to the next carrier and attempt the call.

This works great as expected. However, One of my SIP carriers likes to send back 603 "DECLINED" inplace of 503's. Asterisk ${DIALSTATUS} treats this as "Busy". Can I change how asterisk interprets a 603 Declined? So it treats is as "CHANUNAVAIL"?

The obvious quick fix is to change my "Busy" option to attempt another carrier before finally returning BUSY to the customer. But I was hoping to not have to do that. Any ideas?

Nick Olsen Network Operations (855) FLSPEED x106
Back to top
markus_weiler at mailw...
Guest





PostPosted: Fri Feb 27, 2015 1:18 pm    Post subject: [asterisk-users] 603 Declined > Dialstatus Busy Reply with quote

Hi Nick,

maybe this will help?

exten => _XXX,n,Dial(SIP/${EXTEN}) exten => _XXX,n,NoOp(SIP return code : ${HASH(SIP_CAUSE,${CDR(dstchannel)})})

(http://www.voip-info.org/wiki/view/Asterisk+variable+hangupcause)

Markus

Am 27.02.2015 um 18:56 schrieb Nick Olsen:

Quote:
Hello Everyone.
 
In my outbound contexts, I'm using "${DIALSTATUS}" to fail over to other routes if the chosen route rejects the call.
 
Now, My current scenario is if I get "BUSY" back from the first provider, I send a busy back to my customer. If I get something like CHANUNAVAIL (Like a SIP 503) I advance to the next carrier and attempt the call.
 
This works great as expected. However, One of my SIP carriers likes to send back 603 "DECLINED" inplace of 503's. Asterisk ${DIALSTATUS} treats this as "Busy". Can I change how asterisk interprets a 603 Declined? So it treats is as "CHANUNAVAIL"?
 
The obvious quick fix is to change my "Busy" option to attempt another carrier before finally returning BUSY to the customer. But I was hoping to not have to do that. Any ideas?
 
Nick Olsen
Network Operations (855) FLSPEED  x106





Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services