[asterisk-users] get egress SIP call Id

Benjamin Jacob benjamin.jacob at mgl.com
Wed Oct 10 05:38:54 CDT 2007


Hello Steve,
I think Ray was talking more like the following setup (do correct me if 
I am wrong):

User A (SIPcallId1) ---> Asterisk (SIPcallId2) ------> User B

In this case, the INVITE SIP callId received by Asterisk from User A is 
different to that sent in the INVITE to User B.
I can get User A's callId using ${SIPCALLID}. How about accessing SIP 
callid of the INVITE sent to User B??
Typical need for this, is to store both the callIds to store in the CDRs 
for debugging purposes(w.r.t. the service provider, et al).

cheerz
- Ben.

Steve Totaro wrote:

>You can capture the sipcallid from the manager output.  The cool part is 
>that the sipcallid is the same on both sides of a call.  So, 
>AsteriskA--->SIP (sipcallid)----> AsteriskB SIP (Same sipcallid as 
>AsteriskA for that call.
>
>It is really easy to capture it from the manager.
>
>Thanks,
>Steve
>
>Ray Chen wrote:
>  
>
>>    Hi Philipp,
>>
>>    Thank you for your response to my question. I am working on a
>>    project which uses Asterisk as the voice engine. I need to
>>    get the ingress and egress sip call id for a call to write call CDR.
>>    (Asterisk CDR does not meet our customer requirments).  If there is
>>    no any easy way to get it I might need to create a seperate
>>    process/thread to query manager interface as you mentioned. Thanks you,
>>
>>    Ray
>>
>>    Ray Chen wrote:
>>
>>     > Hi, Does anybody know how to get the SIP call ID of  a "Dial"
>>    command?
>>
>>    There's no easy way to do it. What's your
>>    intention? There are several events on the
>>    manager interface.
>>
>>    Regards,
>>       Philipp Kempgen
>>    --
>>
>>
>>    
>>
>
>T
>
>_______________________________________________
>--Bandwidth and Colocation Provided by http://www.api-digital.com--
>
>asterisk-users mailing list
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
>  
>


EMAIL DISCLAIMER : This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. If you receive this transmission in error, please notify the sender by reply email and then destroy the message. Opinions, conclusions and other information in this message that do not relate to official business of Mascon shall be understood to be neither given nor endorsed by Mascon. Any information contained in this email, when addressed to Mascon clients is subject to the terms and conditions in governing client contract.

Whilst Mascon takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Mascon grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. 





More information about the asterisk-users mailing list