Can I send SIP response for leg setup failure

Version 1

    Subject: RE: Can I send SIP response for leg setup failure
    Replied by: Raghavendra Gutty Veeranagappa on 10-06-2011 09:15:36 AM
    Hi Srikanth,

    please try leg disconnect command with cause code to incoming leg after getting ls_005, so the corresponding the sip response codes(4xx) should  be sent to the calling party .

    leg disconnect {legID | info-tag} [-c cause_code] [-g <gtd_handle>] [-i <iec>]

    Thanks,
    Raghavendra
    This document was generated from CDN thread

    Created by: srikanth satturi on 10-06-2011 07:56:43 AM
    Hi Everyone
     
    I need to send SIP response code to calling party if leg setup fails. I m getting ls_005 as leg status, here I need to send 4xx message to client. Is it possible. I am using as5400XM  as voice gateway.
     
     
    Srikanth

    Subject: RE: Can I send SIP response for leg setup failure
    Replied by: srikanth satturi on 10-06-2011 08:49:30 AM
    please help me out, here I should reply the failure cause as sip response.

    Subject: RE: Can I send SIP response for leg setup failure
    Replied by: Yaw-Ming Chen on 10-06-2011 10:49:49 AM
    If you don't need to do anything special, you can use "handoff" command to hand off to IOS  instead of "leg setup" so IOS will take over the call setup and rest of it.

    Thanks,

    Yawming

    Subject: RE: Can I send SIP response for leg setup failure
    Replied by: srikanth satturi on 11-06-2011 01:17:52 AM
    Thanks a lot I think it gonna solve my thing, but I could see in my script I don't have any explicit sentence' leg disconnect leg_Incoming'. only I used it for leg_outgoing.

    proc act_cleanupCall { } {
      
        call close
    }


      set fsm(any_state,ev_disconnected)           "act_cleanupCall           same_state"


    Is this disconnecting my incoming call leg by default. The script I used is very similar to cisco debitcard app script.

    could any brief me what call close does.

    If nowhere in the script i see leg disconnect leg_Incoming, how my incoming leg (PSTN-->5400) is getting disconnected. please help me on this.

    Right now my 5400 sending 200 OK when call gets disconnected with  ls_005.

    here is my set up

    user-->a sip device(can say Sip proxy)-->cisco 5400 -->.....(called party),

    here cisco 5400 is sending 200 OK for ls_005 to sip device which my people want 4xx instead of 200 OK.


    Srikanth

    Subject: RE: Can I send SIP response for leg setup failure
    Replied by: Raghavendra Gutty Veeranagappa on 13-06-2011 03:27:27 AM
    Hi Srikanth,

    The call close command marks the end of the call and frees the execution instance of the script to handle the next call. This command causes the system to clean up the resources associated with that call. If conferenced legs exist, this command destroys the connections and clears all the call legs. If leg collectdigits is active on any of the call legs, the digit collection process is terminated and the call is cleared.

    As Yawming said you can handoff to IOS If you don't need to do anything special else you can use leg disconnect leg_Incoming after receiving ev_setup_done event with ls_005 status .

    Thanks,
    Raghavendra

    Subject: RE: Can I send SIP response for leg setup failure
    Replied by: srikanth satturi on 15-06-2011 11:20:54 AM
    Thanks a lot.

    I did  "leg disconnect $legIncoming $causecode ". It could successfully send disconnect cause code. please take a loot at SIP

    Jun 15 15:05:08.033: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
    Sent:
    BYE sip:11111@1.2.3.4:5060;transport=udp SIP/2.0
    Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4875A9E11610
    From: <sip:222@192.168.1.1:5060>;tag=2C746D9C-2B6
    To: "11111" <sip:11111@voxbone.com>;tag=26380
    Date: Wed, 15 Jun 2011 15:01:39 GMT
    Call-ID: Q7JNYSWF3VADJNIOYQBRTRGREI@1.2.3.4
    User-Agent: Cisco-SIPGateway/IOS-12.x
    Max-Forwards: 70
    Timestamp: 1308150110
    CSeq: 102 BYE
    Reason: Q.850;cause=21
    Content-Length: 0

    I have a doubt , here instead of BYE can we send SIP response.

    I got response from my softswitch( SIP )

    Jun 15 15:05:05.113: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
    Received:
    SIP/2.0 603 Declined
    Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK5A9E28D4
    Record-Route: <sip:192.168.1.10;lr>
    To: <sip:12122111111@192.168.1.10>;tag=er5lpd7bfjkmsump.i
    From: "11111"<sip:123456789@192.168.1.1>;tag=2C777720-8EF
    Call-ID: AA9BF035-969711E0-BA889079-E501C527@192.168.1.1
    CSeq: 101 INVITE
    Server: Sippy
    Content-Length: 0.

    But my 5400 did not send 603 instead sent BYE 200 . Can i send from 5400 whatever I get from my switch to SIP device.


    user-->a sip device(can say Sip proxy)-->cisco 5400 -->.(softswitch(sip))....(called party),

    Here I mean  softswitch response to SIP device.



    Srikanth

    Subject: RE: Can I send SIP response for leg setup failure
    Replied by: srikanth satturi on 16-06-2011 05:41:11 AM
    Please someone help me out.

    I just wanna know whether 5400 can sent to calling party whatever request it gets. Yes/No is okay for me.


    Thanks a lot

    Srkanth

    Subject: RE: Can I send SIP response for leg setup failure
    Replied by: Raghavendra Gutty Veeranagappa on 17-06-2011 05:20:44 AM
    Hi Srikanth,

    no, it is not possible.

    Thanks,
    Raghavendra

    Subject: RE: Can I send SIP response for leg setup failure
    Replied by: srikanth satturi on 17-06-2011 08:10:45 AM
    Thanks a lot dude.


    Srikanth