<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Charles hi,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>That’s what I was trying to get at.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I have now set db_mode to 1 however I only get calls in state 4 (active) go into the db not calls in state 2 (ringing).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Case is to collect calls in to a specific group of destinations (pick-up  group) into a profile and on receiving a call to a vsc (eg. *98) to get the callid of the first ringing call (state 2) in that group and add a Replaces header and pass it to a B2BUA that would connect the 2 calls. This would allow a user to pick-up a ringing call in the same group on their handset by dialling *98. This would then work for non SIP UA handsets and doesn’t need BLF support etc.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>All the data is there. When a call is ringing in that group ‘sercmd dlg.dlg_list’ gives all the needed data. I just need access to is from the config script to put it in a header.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>With db_mode 1 if state 2 calls (ringing) went into the database that would solve the problem although it seems a bit heavyweight. It would be great if I could get all this from memory given that it is there.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Any suggestions ?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Charles Chance [mailto:charles.chance@sipcentric.com] <br><b>Sent:</b> 03 February 2014 18:13<br><b>To:</b> John Murray<br><b>Cc:</b> Kamailio (SER) - Users Mailing List<br><b>Subject:</b> Re: [SR-Users] dialog list query<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi John,<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>For the current call, you can access dialog attributes via the "$dlg(...)" pseudo-variable. But I don't believe there is a way to access other dialogs from within the config script without querying the database (and setting db_mode to 1).<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>If you can explain your use case slightly, someone may be able to suggest another way to achieve it.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Regards,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Charles<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On 2 February 2014 15:40, John Murray <<a href="mailto:john.murray@skyracktelecom.com" target="_blank">john.murray@skyracktelecom.com</a>> wrote:<o:p></o:p></p><p>Charles,<o:p></o:p></p><p>Thanks For that.<o:p></o:p></p><p>How do I get the callid from a call in a specific profile if it is stored in memory?<o:p></o:p></p><p>Regards.<o:p></o:p></p><p>John<o:p></o:p></p><div><div><div><p class=MsoNormal>On 2 Feb 2014 15:05, "Charles Chance" <<a href="mailto:charles.chance@sipcentric.com" target="_blank">charles.chance@sipcentric.com</a>> wrote:<o:p></o:p></p></div></div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm'><div><div><p>Hi John,<o:p></o:p></p><p>><br>> >What db_mode are you using for dialog module?<br>><br>> Mode 5. I Don't need to persist the dialog state so means table maintained in memory and not flushed to disk until shutdown but I can access it through normal avp_db_query right?<o:p></o:p></p><p>Do you mean mode 3? Anyway, avp_db_query is for reading from the database - if you're not persisting dialogs to db in realtime then there'll be nothing to read.<o:p></o:p></p><p>> >Are the entries in the db if you check manually?<br>><br>> If I do sercmd dlg.dlg_list I see the call fine including callid etc.<o:p></o:p></p><p>dlg.list shows all dialogs in memory, not in db.<o:p></o:p></p><p>Regards,<o:p></o:p></p><p>Charles<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif"'><a href="http://www.sipcentric.com/" target="_blank" title="blocked::http://www.sipcentric.com/">www.sipcentric.com</a><br><br>Follow us on twitter <a href="http://twitter.com/sipcentric" target="_blank" title="blocked::http://twitter.com/sipcentric">@sipcentric</a><br><br><span style='color:gray'>Sipcentric Ltd. Company registered in England & Wales no. 7365592.</span> <span style='color:gray'>Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.</span></span><o:p></o:p></p></blockquote></div></div><p class=MsoNormal><br><br clear=all><o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div></div></div><p class=MsoNormal><br><span style='font-size:10.0pt;font-family:"Helvetica","sans-serif"'><a href="http://www.sipcentric.com/" target="_blank" title="blocked::http://www.sipcentric.com/">www.sipcentric.com</a><br><br>Follow us on twitter <a href="http://twitter.com/sipcentric" target="_blank" title="blocked::http://twitter.com/sipcentric">@sipcentric</a><br><br><span style='color:gray'>Sipcentric Ltd. Company registered in England & Wales no. 7365592.</span> <span style='color:gray'>Registered office: Unit 10 iBIC, Birmingham Science Park, Holt Court South, Birmingham B7 4EJ.</span></span><o:p></o:p></p></div></body></html>