Hi, Does anybody know how to get the SIP call ID of a "Dial" command? Thanks in advance. Ray -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071008/7f27548e/attachment.htm
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 -- amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de Let's use IT to solve problems and not to create new ones. Asterisk? -> http://www.das-asterisk-buch.de Gesch?ftsf?hrer: Stefan Wintermeyer Handelsregister: Neuwied B 14998
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 -- -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071009/4749c2eb/attachment.htm
Yes, Ben you are right. Asterisk is a B2BUA. When the call passes through the ingress and egress sip call ids are different. By using $SIPCALLID I can easily get the sip call id that User A sends. The question is how to "accessing SIP callid of the INVITE sent to User B"? By senting Manager interface channel query commands I can get the egress sip call id but it is not that easy. Just want to know if there is any a simple way to do that. Thanks a lot. Ray 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 -- Want an e-mail address like mine? Get a free e-mail account today at www.mail.com! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071010/d3c17faa/attachment.htm