Using call guid as Call-Id for outgoing call.

Version 1
    This document was generated from CDN thread

    Created by: Juan J. Martin on 10-03-2010 04:32:58 PM
    Dear all,
     
    We are facing a problem in a development. We do a series of checks on a script for authorization of a call using AAA/Radius. Once it is ok to continue, we setup and outbound leg call using a SIP configured dial-peer.
     
    The thing is that this outgoing call leg should carry the same Call-ID as the guid we used when we did the radius authentication/authorization, if not, the destination server rejects the calls as it is not validated. We tried using the set callInfo(guid) code, but what we get is a "Cisco-guid" line added to the INVITE message, whilst the Call-ID does not match the one we are using.
     
    Any ideas would be welcomed.
     
    BR,
    Martin.

    Subject: RE: Using call guid as Call-Id for outgoing call.
    Replied by: Yawming Chen on 10-03-2010 05:44:43 PM
    Is it possible that you can show how you get and set guid ?
     
    Thanks !

    Subject: RE: Using call guid as Call-Id for outgoing call.
    Replied by: Yawming Chen on 10-03-2010 10:05:16 PM
    By the way Cisco-Guid in INVITE is in decimal. If you convert it to HEX it should be the same as you see in "get leg_guid"

    Subject: RE: Using call guid as Call-Id for outgoing call.
    Replied by: Juan J. Martin on 11-03-2010 01:45:23 PM
    Hi there,
     
    The Cisco-guid shown on the INVITE does not match the Call-ID (we know one is shown in hex format and the other in decimal).
     
    We are doing this from the incoming dial-peer associated application, so I guess we should move that code to an outbound dial-peer application, which is what we are testing now.
     
    One issue we face moving some code to the outbound application is that a couple of variable values have to be handed to the outbound application. How can we do that?
     
    Thanks,
    Martin.
     

    Subject: RE: Using call guid as Call-Id for outgoing call.
    Replied by: Juan J. Martin on 11-03-2010 02:24:44 PM
     
    This is how we get/set guid:
     
        set b_guid [infotag get leg_incoming_guid]
    ...
        set callInfo(guid) $b_guid

        leg setup $destination callInfo leg_incoming


    BR,
    Martin.

    Subject: RE: Using call guid as Call-Id for outgoing call.
    Replied by: Yawming Chen on 11-03-2010 06:45:21 PM
    Sorry that I misunderstood you question. So we are talking about CALL-ID vs cisco guid. I thought you were talking about the guid Tcl get didn't translate correctly in cisco-guid in INVITE.
    Yes, I noticed that the first 4 octets is fifferent and rest of them are the same.
    I doubt SIP CALL-ID will be the same as cisco guid, so far I haven't seen the same one. But I will find it out.
     
    Regarding place the service in outbound dial peer there are a few things different.
     
    In Tcl script
     
    1. script is triggered byev_handoff event
    example of state machine
      set fsm(CALL_INIT,ev_handoff)   "act_firctAct FIRSTSTATE"
    2 to get DNIS
     use
     set dest [infotag get evt_handoff dnis]
     
    In IOS outbound dial-peer config use out-bound keyword
     
    service my_app out-bound
     
     
    Thanks !