[Asterisk-Dev] SIP codes/behaviors

Josh Roberson twisted at indigent-networks.com
Tue Aug 23 13:59:49 MST 2005


While Darren's suggestion makes life MUCH easier when dealing with level 3,
a 487 is only required when the call is terminated before a 200 message from
the callee.  At the end of a call, you simply send a BYE. And expect an ACK.

487 is SIP for "Request Terminated"

I have not had any issue with asterisk and Level 3 in that manner, however.

If I'm not mistaken, the only time L3 wants this sent to you is when you
call the DID, and hang up before asterisk Answer()'s a call.  Best thing to
do is to accept the DID into asterisk, DO NOT answer the call, but put it
into a Wait(500).  This way, it will continue to ring into asterisk, and you
can terminate the call from the PSTN, and asterisk will respond to L3's
CANCEL message with a 487 Request Terminated, just as they want.


On 8/23/05 12:46 PM, "Darren Sessions" <dsessions at ionosphere.net> wrote:

> Use SER to talk to L3. Just put it in front of your * box.
> 
> Route L3/* PSTN calls via your SER box.
> 
> Works perfect.
> 
> - D
> 
> 
> On Aug 23, 2005, at 1:35 PM, Arick Davis wrote:
> 
>> I've been pulling my hair out trying to complete Level3 3(i)
>> testing. For
>> Level3 DID inbound? Apparently Asterisk (CVS-
>> v1-0-08/19/05-17:35:46) is not
>> sending the level3 requirement of a 487 Term. Req. at the end of a
>> call.
>> 
>> Does anyone have inbound DID working on Asterisk with Level3? I would
>> appreciate any help and or advice on how to pass these acceptance
>> tests.
>> 
>> Arick Davis
>> International Telcom Ltd.
>> 
>> 
>> -----Original Message-----
>> From: asterisk-dev-bounces at lists.digium.com
>> [mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Kevin
>> P. Fleming
>> Sent: Monday, August 22, 2005 3:02 PM
>> To: Asterisk Developers Mailing List
>> Subject: Re: [Asterisk-Dev] SIP codes/behaviors
>> 
>> Mark Willis wrote:
>> 
>>> I have two SIP issues. In one case we're dealing with Level3, who
>>> always
>>> require a 100 Trying in response to an INVITE. Problem is this is
>>> for an
>>> unprovisioned number. So I want to send a 100 then a 404. I can't
>>> find a
>>> way to do this, since asterisk just sends the 404. If there was an
>>> NotFound application I could just call that and asterisk would
>>> send the
>>> 100 followed by a 404 in the NotFound app.
>>> 
>> 
>> This is completely unreasonable on their part; there is no legitimate
>> reason to require a '100 Trying' response to an INVITE before
>> sending a
>> final response. We have other users successfully interoperating with
>> Level3 with Asterisk CVS HEAD that don't have this issue.
>> 
>> 
>>> In the second case, we're terminating calls. If we run out of
>>> lines the
>>> customer wants a SIP 603, rather than the 503 asterisk sends on
>>> Congestion().
>>> 
>> 
>> Quoting from RFC3261:
>> 
>> 21.6.2 603 Decline
>> 
>>     The callee's machine was successfully contacted but the user
>>     explicitly does not wish to or cannot participate.  The
>> response MAY
>>     indicate a better time to call in the Retry-After header
>> field.  This
>>     status response is returned only if the client knows that no other
>>     end point will answer the request.
>> 
>> A 603 response would be inappropriate here, since the callee was not
>> contacted and did not decline the call. There could also be other
>> paths
>> that would answer the request (since you are only out of channels), so
>> again 603 would be inappropriate.
>> _______________________________________________
>> Asterisk-Dev mailing list
>> Asterisk-Dev at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-dev
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>> 
>> 
>> _______________________________________________
>> Asterisk-Dev mailing list
>> Asterisk-Dev at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-dev
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>> 
> 
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev





More information about the asterisk-dev mailing list