I am following the Tutorial to configure BLA and can't get it to work.  I believe my issue has to do with my domain parts in the NOTIFY and PUBLISH messages.  When two Snom phones have the same line configured for a button I am able to call the BLA DID have have them both ring.  When one phone picks up the line the other phone is told the call has been picked up and stops ringing.  The only thing that isn't working is that the line light is not lighting up to show that someone is on the line.  Same thing when the user puts the call on hold.  From an NGREP perspective I see that NOTIFY's are sent to OpenSIPS, but OpenSIPS doesn't send any notifies to the other BLA users to tell them the line is in use.  In my OpenSIPS syslogs I see a bunch of Presence:error's 
<br />
<br />When the phones register or send Notifies/Publishes does the domain part need to be the domain like xyz.com or should it be the IP that shows up in location table? 
<br />
<br />Can someone tell me what I am doing wrong. 
<br />
<br />Here is the OpenSIPS config 
<br />
<br />if(is_method(&quot;REGISTER&quot;){ 
<br />                bla_set_flag(); 
<br />
<br />                save(&quot;location&quot;); 
<br />                exit; 
<br />} 
<br />if( is_method(&quot;PUBLISH|SUBSCRIBE&quot;)) 
<br />        route(Presence); 
<br />if(is_method(&quot;NOTIFY&quot;))                       
<br />        if( $hdr(event)==&quot;dialog;sla&quot;) 
<br />                route(Presence); 
<br />
<br />
<br />route[Presence] { 
<br />        if (! t_newtran()) { 
<br />                sl_reply_error(); 
<br />                exit;             
<br />        }; 
<br />
<br />        if(is_method(&quot;PUBLISH&quot;)){ 
<br />                if($hdr(Sender)!= NULL) { 
<br />                        xlog(&quot;L_INFO&quot;, &quot;Route Presence: Is PUBLISH [$rm] du [$du] rd [$rd] td [$td] ds [$ds] Ri [$Ri] rU[$rU] fU[$fU] ru[$ru] fu[$fu] tu[$tu] od[$od] fd[$fd]\n&quot;); 
<br />                        handle_publish(&quot;$hdr(Sender)&quot;); 
<br />                } 
<br />                else { 
<br />                        xlog(&quot;L_INFO&quot;, &quot;Route Presence: Is PUBLISH [$rm] du [$du] rd [$rd] td [$td] ds [$ds] Ri [$Ri] rU[$rU] fU[$fU] ru[$ru] fu[$fu] tu[$tu] od[$od] fd[$fd]\n&quot;); 
<br />                        handle_publish(); 
<br />                } 
<br />        } 
<br />        else if( is_method(&quot;SUBSCRIBE&quot;)){ 
<br />                xlog(&quot;L_INFO&quot;, &quot;Route Presence: Is SBUSCRIBE before [$rm] du [$du] rd [$rd] td [$td] ds [$ds] Ri [$Ri] rU[$rU] fU[$fU] ru[$ru] fu[$fu] tu[$tu] od[$od] fd[$fd]\n&quot;); 
<br />                fix_nated_contact(); 
<br />                handle_subscribe();       
<br />                xlog(&quot;L_INFO&quot;, &quot;Route Presence: Is SBUSCRIBE after [$rm] du [$du] rd [$rd] td [$td] ds [$ds] Ri [$Ri] rU[$rU] fU[$fU] ru[$ru] fu[$fu] tu[$tu] od[$od] fd[$fd]\n&quot;); 
<br />        }                 
<br />        else if(is_method(&quot;NOTIFY&quot;)){ 
<br />                xlog(&quot;L_INFO&quot;, &quot;Route NOTIFY: Call [$rm] du [$du] rd [$rd] td [$td] ds [$ds] Ri [$Ri] rU[$rU] fU[$fU] ru[$ru] fu[$fu] tu[$tu] od[$od] fd[$fd]\n&quot;); 
<br />                lookup(&quot;location&quot;); 
<br />                xlog(&quot;L_INFO&quot;, &quot;Route NOTIFY 2: Call [$rm] du [$du] rd [$rd] td [$td] ds [$ds] Ri [$Ri] rU[$rU] fU[$fU] ru[$ru] fu[$fu] tu[$tu] od[$od] fd[$fd]\n&quot;); 
<br />                bla_handle_notify();                   
<br />                t_reply(&quot;200&quot;, &quot;OK&quot;); 
<br />
<br />        } 
<br />
<br />        exit; 
<br />
<br />}   
<br />
<br />
<br />
<br />
<br />
<br />
<br />Here is the log file with all the Presence Errors 
<br />Proxy01:/var/log# more syslog 
<br />Nov  8 21:13:53 Proxy01 /usr/local/sbin/opensips[15517]: Route NOTIFY: Call [NOTIFY] du [&lt;null&gt;] rd [173.XXX.XXX.134] td [coolbeans.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[&lt;null&gt;] fU[9012732004] ru[sip:173.XXX.XXX.134:5060] fu[sip:90127320 
<br />04@coolbeans.com] tu[sip:9012732004@coolbeans.com] od[173.XXX.XXX.134] fd[coolbeans.com] 
<br />Nov  8 21:13:53 Proxy01 /usr/local/sbin/opensips[15517]: Route NOTIFY 2: Call [NOTIFY] du [&lt;null&gt;] rd [173.XXX.XXX.134] td [coolbeans.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[&lt;null&gt;] fU[9012732004] ru[sip:173.XXX.XXX.134:5060] fu[sip:901273 
<br />2004@coolbeans.com] tu[sip:9012732004@coolbeans.com] od[173.XXX.XXX.134] fd[coolbeans.com] 
<br />Nov  8 21:13:53 Proxy01 /usr/local/sbin/opensips[15517]: Route Presence: Is PUBLISH [PUBLISH] du [&lt;null&gt;] rd [coolbeans.com] td [coolbeans.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[9012732004] fU[9012732004] ru[sip:9012732004@coolbeans.com 
<br />] fu[sip:9012732004@coolbeans.com] tu[sip:9012732004@coolbeans.com] od[coolbeans.com] fd[coolbeans.com] 
<br />Nov  8 21:13:53 Proxy01 /usr/local/sbin/opensips[15517]: ERROR:presence:bla_aggregate_state: Dialog direction not specified 
<br />Nov  8 21:13:53 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: new:#012&lt;?xml version=&quot;1.0&quot;?&gt;#012&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;8&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbean 
<br />s.com&quot;&gt;&lt;dialog id=&quot;2&quot;&gt;&lt;state&gt;trying&lt;/state&gt;&lt;/dialog&gt;&lt;/dialog-info&gt;#012 
<br />Nov  8 21:13:53 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: old:#012&lt;?xml version=&quot;1.0&quot;?&gt;#012&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;0&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbean 
<br />s.com&quot;&gt;&lt;dialog id=&quot;63&quot;&gt;&lt;state&gt;trying&lt;/state&gt;&lt;/dialog&gt;&lt;/dialog-info&gt;#012 
<br />Nov  8 21:13:53 Proxy01 /usr/local/sbin/opensips[15517]: ERROR:presence:update_presentity: Failed to aggregate bla state 
<br />Nov  8 21:13:56 Proxy01 /usr/local/sbin/opensips[15525]: Route NOTIFY: Call [NOTIFY] du [&lt;null&gt;] rd [173.XXX.XXX.134] td [coolbeans.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[&lt;null&gt;] fU[9012732004] ru[sip:173.XXX.XXX.134:5060] fu[sip:90127320 
<br />04@coolbeans.com] tu[sip:9012732004@coolbeans.com] od[173.XXX.XXX.134] fd[coolbeans.com] 
<br />Nov  8 21:13:56 Proxy01 /usr/local/sbin/opensips[15517]: Route Presence: Is PUBLISH [PUBLISH] du [&lt;null&gt;] rd [coolbeans.com] td [coolbeans.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[9012732004] fU[9012732004] ru[sip:9012732004@coolbeans.com 
<br />] fu[sip:9012732004@coolbeans.com] tu[sip:9012732004@coolbeans.com] od[coolbeans.com] fd[coolbeans.com] 
<br />Nov  8 21:13:56 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: Extracted callid, from_tag, to_tag 
<br />Nov  8 21:13:56 Proxy01 /usr/local/sbin/opensips[15517]: ERROR:presence:bla_aggregate_state: Dialog direction not specified 
<br />Nov  8 21:13:56 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: new:#012&lt;?xml version=&quot;1.0&quot;?&gt;#012&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;9&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbean 
<br />s.com&quot;&gt;&lt;dialog id=&quot;2&quot; direction=&quot;initiator&quot; call-id=&quot;ad72263ca21d-prsjctuz8ivx&quot; local-tag=&quot;kifvj9kpcd&quot; remote-tag=&quot;&quot;&gt;&lt;state&gt;trying&lt;/state&gt;&lt;local&gt;&lt;identity display=&quot;Sam 273-2004&quot;&gt;sip:9012732004@coolbeans.com&lt;/identity&gt;&lt;target uri=&quot;sip:901 
<br />2732004@192.168.33.25:3072;line=bt134aji&quot;&gt;&lt;/target&gt;&lt;/local&gt;&lt;remote&gt;&lt;identity&gt;sip:9012211610@coolbeans.com;user=phone&lt;/identity&gt;&lt;target uri=&quot;sip:9012211610@coolbeans.com;user=phone&quot;/&gt;&lt;/remote&gt;&lt;/dialog&gt; 
<br />&lt;/dialog-info&gt;#012 
<br />Nov  8 21:13:56 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: old:#012&lt;?xml version=&quot;1.0&quot;?&gt;#012&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;0&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbean 
<br />s.com&quot;&gt;&lt;dialog id=&quot;63&quot;&gt;&lt;state&gt;trying&lt;/state&gt;&lt;/dialog&gt;&lt;/dialog-info&gt;#012 
<br />Nov  8 21:13:56 Proxy01 /usr/local/sbin/opensips[15517]: ERROR:presence:update_presentity: Failed to aggregate bla state 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15519]: Route NOTIFY: Call [NOTIFY] du [&lt;null&gt;] rd [173.XXX.XXX.134] td [coolbeans.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[&lt;null&gt;] fU[9012732004] ru[sip:173.XXX.XXX.134:5060] fu[sip:90127320 
<br />04@coolbeans.com] tu[sip:9012732004@coolbeans.com] od[173.XXX.XXX.134] fd[coolbeans.com] 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: Route Presence: Is PUBLISH [PUBLISH] du [&lt;null&gt;] rd [coolbeans.com] td [coolbeans.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[9012732004] fU[9012732004] ru[sip:9012732004@coolbeans.com 
<br />] fu[sip:9012732004@coolbeans.com] tu[sip:9012732004@coolbeans.com] od[coolbeans.com] fd[coolbeans.com] 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: Extracted callid, from_tag, to_tag 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: ERROR:presence:bla_aggregate_state: Dialog direction not specified 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: new:#012&lt;?xml version=&quot;1.0&quot;?&gt;#012&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;10&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbea 
<br />ns.com&quot;&gt;&lt;dialog id=&quot;2&quot; direction=&quot;initiator&quot; call-id=&quot;ad72263ca21d-prsjctuz8ivx&quot; local-tag=&quot;kifvj9kpcd&quot; remote-tag=&quot;&quot;&gt;&lt;state&gt;proceeding&lt;/state&gt;&lt;local&gt;&lt;identity display=&quot;Sam 273-2004&quot;&gt;sip:9012732004@coolbeans.com&lt;/identity&gt;&lt;target uri=&quot;si 
<br />p:9012732004@192.168.33.25:3072;line=bt134aji&quot;&gt;&lt;/target&gt;&lt;/local&gt;&lt;remote&gt;&lt;identity&gt;sip:9012211610@coolbeans.com;user=phone&lt;/identity&gt;&lt;target uri=&quot;sip:9012211610@coolbeans.com;user=phone&quot;/&gt;&lt;/remote&gt;&lt;/di 
<br />alog&gt;&lt;/dialog-info&gt;#012 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: old:#012&lt;?xml version=&quot;1.0&quot;?&gt;#012&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;0&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbean 
<br />s.com&quot;&gt;&lt;dialog id=&quot;63&quot;&gt;&lt;state&gt;trying&lt;/state&gt;&lt;/dialog&gt;&lt;/dialog-info&gt;#012 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: ERROR:presence:update_presentity: Failed to aggregate bla state 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: ----- MAIN ROUTE rU[&lt;null&gt;] 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: Route NOTIFY: Call [NOTIFY] du [&lt;null&gt;] rd [173.XXX.XXX.134] td [irock.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[&lt;null&gt;] fU[9012211610] ru[sip:173.XXX.XXX.134:5060] fu[sip:9012211610@i 
<br />rock.com] tu[sip:9012211610@irock.com] od[173.XXX.XXX.134] fd[irock.com] 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15522]: ----- MAIN ROUTE rU[&lt;null&gt;] 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15522]: Route NOTIFY: Call [NOTIFY] du [&lt;null&gt;] rd [173.XXX.XXX.134] td [irock.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[&lt;null&gt;] fU[9012211610] ru[sip:173.XXX.XXX.134:5060] fu[sip:9012211610@i 
<br />rock.com] tu[sip:9012211610@irock.com] od[173.XXX.XXX.134] fd[irock.com] 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: Route Presence: Is PUBLISH [PUBLISH] du [&lt;null&gt;] rd [irock.com] td [irock.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[9012211610] fU[9012211610] ru[sip:9012211610@irock.com] fu[sip:901 
<br />2211610@irock.com] tu[sip:9012211610@irock.com] od[irock.com] fd[irock.com] 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: Extracted callid, from_tag, to_tag 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15525]: Route Presence: Is PUBLISH [PUBLISH] du [&lt;null&gt;] rd [irock.com] td [irock.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[9012211610] fU[9012211610] ru[sip:9012211610@irock.com] fu[sip:901 
<br />2211610@irock.com] tu[sip:9012211610@irock.com] od[irock.com] fd[irock.com] 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15525]: INFO:presence:bla_aggregate_state: Extracted callid, from_tag, to_tag 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: Route NOTIFY: Call [NOTIFY] du [&lt;null&gt;] rd [173.XXX.XXX.134] td [coolbeans.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[&lt;null&gt;] fU[9012732004] ru[sip:173.XXX.XXX.134:5060] fu[sip:90127320 
<br />04@coolbeans.com] tu[sip:9012732004@coolbeans.com] od[173.XXX.XXX.134] fd[coolbeans.com] 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: Route Presence: Is PUBLISH [PUBLISH] du [&lt;null&gt;] rd [coolbeans.com] td [coolbeans.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[9012732004] fU[9012732004] ru[sip:9012732004@coolbeans.com 
<br />] fu[sip:9012732004@coolbeans.com] tu[sip:9012732004@coolbeans.com] od[coolbeans.com] fd[coolbeans.com] 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: Extracted callid, from_tag, to_tag 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: ERROR:presence:bla_aggregate_state: Dialog direction not specified 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: new:#012&lt;?xml version=&quot;1.0&quot;?&gt;#012&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;11&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbea 
<br />ns.com&quot;&gt;&lt;dialog id=&quot;2&quot; direction=&quot;initiator&quot; call-id=&quot;ad72263ca21d-prsjctuz8ivx&quot; local-tag=&quot;kifvj9kpcd&quot; remote-tag=&quot;gengg3onrm&quot;&gt;&lt;state&gt;early&lt;/state&gt;&lt;local&gt;&lt;identity display=&quot;Sam 273-2004&quot;&gt;sip:9012732004@coolbeans.com&lt;/identity&gt;&lt;target ur 
<br />i=&quot;sip:9012732004@192.168.33.25:3072;line=bt134aji&quot;&gt;&lt;/target&gt;&lt;/local&gt;&lt;remote&gt;&lt;identity&gt;sip:9012211610@coolbeans.com;user=phone&lt;/identity&gt;&lt;target uri=&quot;sip:9012211610@coolbeans.com;user=phone&quot;/&gt;&lt;/remote 
<br />&gt;&lt;/dialog&gt;&lt;/dialog-info&gt;#012 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: INFO:presence:bla_aggregate_state: old:#012&lt;?xml version=&quot;1.0&quot;?&gt;#012&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;0&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbean 
<br />s.com&quot;&gt;&lt;dialog id=&quot;63&quot;&gt;&lt;state&gt;trying&lt;/state&gt;&lt;/dialog&gt;&lt;/dialog-info&gt;#012 
<br />Nov  8 21:13:57 Proxy01 /usr/local/sbin/opensips[15517]: ERROR:presence:update_presentity: Failed to aggregate bla state 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15522]: Route NOTIFY: Call [NOTIFY] du [&lt;null&gt;] rd [173.XXX.XXX.134] td [irock.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[&lt;null&gt;] fU[9012211610] ru[sip:173.XXX.XXX.134:5060] fu[sip:9012211610@i 
<br />rock.com] tu[sip:9012211610@irock.com] od[173.XXX.XXX.134] fd[irock.com] 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15522]: Route Presence: Is PUBLISH [PUBLISH] du [&lt;null&gt;] rd [irock.com] td [irock.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[9012211610] fU[9012211610] ru[sip:9012211610@irock.com] fu[sip:901 
<br />2211610@irock.com] tu[sip:9012211610@irock.com] od[irock.com] fd[irock.com] 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15522]: INFO:presence:bla_aggregate_state: Extracted callid, from_tag, to_tag 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15525]: Route NOTIFY: Call [NOTIFY] du [&lt;null&gt;] rd [173.XXX.XXX.134] td [coolbeans.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[&lt;null&gt;] fU[9012732004] ru[sip:173.XXX.XXX.134:5060] fu[sip:90127320 
<br />04@coolbeans.com] tu[sip:9012732004@coolbeans.com] od[173.XXX.XXX.134] fd[coolbeans.com] 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15525]: Route Presence: Is PUBLISH [PUBLISH] du [&lt;null&gt;] rd [coolbeans.com] td [coolbeans.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[9012732004] fU[9012732004] ru[sip:9012732004@coolbeans.com 
<br />] fu[sip:9012732004@coolbeans.com] tu[sip:9012732004@coolbeans.com] od[coolbeans.com] fd[coolbeans.com] 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15525]: INFO:presence:bla_aggregate_state: Extracted callid, from_tag, to_tag 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15525]: ERROR:presence:bla_aggregate_state: Dialog direction not specified 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15525]: INFO:presence:bla_aggregate_state: new:#012&lt;?xml version=&quot;1.0&quot;?&gt;#012&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;12&quot; state=&quot;partial&quot; entity=&quot;sip:9012732004@cool 
<br />beans.com&quot;&gt;&lt;dialog id=&quot;2&quot; direction=&quot;initiator&quot; call-id=&quot;ad72263ca21d-prsjctuz8ivx&quot; local-tag=&quot;kifvj9kpcd&quot; remote-tag=&quot;w5xe1sm1xk&quot;&gt;&lt;state&gt;confirmed&lt;/state&gt;&lt;local&gt;&lt;identity display=&quot;Sam 273-2004&quot;&gt;sip:9012732004@coolbeans.com&lt;/identity&gt;&lt;ta 
<br />rget uri=&quot;sip:9012732004@192.168.33.25:3072;line=bt134aji&quot;&gt;&lt;/target&gt;&lt;/local&gt;&lt;remote&gt;&lt;identity&gt;sip:9012211610@coolbeans.com;user=phone&lt;/identity&gt;&lt;target uri= 
<br />&quot;sip:9012211610@75.65.8.158:2066;line=sntanxhe&quot;/&gt;&lt;/remote&gt;&lt;/dialog&gt;&lt;/dialog-info&gt;#012 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15525]: INFO:presence:bla_aggregate_state: old:#012&lt;?xml version=&quot;1.0&quot;?&gt;#012&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;0&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbean 
<br />s.com&quot;&gt;&lt;dialog id=&quot;63&quot;&gt;&lt;state&gt;trying&lt;/state&gt;&lt;/dialog&gt;&lt;/dialog-info&gt;#012 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15525]: ERROR:presence:update_presentity: Failed to aggregate bla state 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15522]: Route NOTIFY: Call [NOTIFY] du [&lt;null&gt;] rd [173.XXX.XXX.134] td [irock.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[&lt;null&gt;] fU[9012211610] ru[sip:173.XXX.XXX.134:5060] fu[sip:9012211610@i 
<br />rock.com] tu[sip:9012211610@irock.com] od[173.XXX.XXX.134] fd[irock.com] 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15522]: Route Presence: Is PUBLISH [PUBLISH] du [&lt;null&gt;] rd [irock.com] td [irock.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[9012211610] fU[9012211610] ru[sip:9012211610@irock.com] fu[sip:901 
<br />2211610@irock.com] tu[sip:9012211610@irock.com] od[irock.com] fd[irock.com] 
<br />Nov  8 21:14:00 Proxy01 /usr/local/sbin/opensips[15522]: INFO:presence:bla_aggregate_state: Extracted callid, from_tag, to_tag 
<br />Nov  8 21:14:03 Proxy01 /usr/local/sbin/opensips[15522]: Route NOTIFY: Call [NOTIFY] du [&lt;null&gt;] rd [173.XXX.XXX.134] td [irock.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[&lt;null&gt;] fU[9012211610] ru[sip:173.XXX.XXX.134:5060] fu[sip:9012211610@i 
<br />rock.com] tu[sip:9012211610@irock.com] od[173.XXX.XXX.134] fd[irock.com] 
<br />Nov  8 21:14:03 Proxy01 /usr/local/sbin/opensips[15519]: Route Presence: Is PUBLISH [PUBLISH] du [&lt;null&gt;] rd [irock.com] td [irock.com] ds [&lt;null&gt;] Ri [173.XXX.XXX.134] rU[9012211610] fU[9012211610] ru[sip:9012211610@irock.com] fu[sip:901 
<br />2211610@irock.com] tu[sip:9012211610@irock.com] od[irock.com] fd[irock.com] 
<br />Nov  8 21:14:03 Proxy01 /usr/local/sbin/opensips[15519]: INFO:presence:bla_aggregate_state: Extracted callid, from_tag, to_tag 
<br />
<br />
<br />
<br />
<br />
<br />Here is the NGREP 
<br />
<br />U 2010/11/08 15:13:53.193747 75.XXX.XXX.158:1052 -&gt; 173.XXX.XXX.134:5060 
<br />NOTIFY sip:173.XXX.XXX.134:5060 SIP/2.0. 
<br />Via: SIP/2.0/UDP 192.168.33.25:3072;branch=z9hG4bK-wwgj5a4lrqrx;rport. 
<br />From: sip:9012732004@coolbeans.com;tag=nhlxo9m692. 
<br />To: &lt;sip:9012732004@coolbeans.com&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-9037. 
<br />Call-ID: 202f366b421f321f-15522@173.XXX.XXX.134. 
<br />CSeq: 2 NOTIFY. 
<br />Max-Forwards: 70. 
<br />Contact: &lt;sip:9012732004@192.168.33.25:3072;line=bt134aji&gt;;reg-id=1. 
<br />Event: dialog;sla. 
<br />Subscription-State: active. 
<br />Content-Type: application/dialog-info+xml. 
<br />Content-Length: 201. 
<br />. 
<br />&lt;?xml version=&quot;1.0&quot;?&gt; 
<br />&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;1&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbeans.com&quot;&gt;&lt;dialog id=&quot;2&quot;&gt;&lt;state&gt;trying&lt;/state&gt;&lt;/dialog&gt;&lt;/dialog-info&gt; 
<br />
<br /># 
<br />U 2010/11/08 15:13:53.196263 173.XXX.XXX.134:5060 -&gt; 173.XXX.XXX.134:5060 
<br />PUBLISH sip:9012732004@coolbeans.com SIP/2.0. 
<br />Via: SIP/2.0/UDP 173.XXX.XXX.134;branch=z9hG4bK2b85.d56c4672.0. 
<br />To: sip:9012732004@coolbeans.com. 
<br />From: &lt;sip:9012732004@coolbeans.com&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-a25e. 
<br />CSeq: 10 PUBLISH. 
<br />Call-ID: 202f366b421f3224-15517@173.XXX.XXX.134. 
<br />Content-Length: 201. 
<br />User-Agent: OpenSIPS (1.6.3-notls (x86_64/linux)). 
<br />Max-Forwards: 70. 
<br />Event: dialog;sla. 
<br />Expires: 3601. 
<br />SIP-If-Match: a.1289249378.15519.5.30. 
<br />Content-Type: application/dialog-info+xml. 
<br />Sender: sip:9012732004@192.168.33.25:3072;line=bt134aji. 
<br />. 
<br />&lt;?xml version=&quot;1.0&quot;?&gt; 
<br />&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;8&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbeans.com&quot;&gt;&lt;dialog id=&quot;2&quot;&gt;&lt;state&gt;trying&lt;/state&gt;&lt;/dialog&gt;&lt;/dialog-info&gt; 
<br />
<br /># 
<br />U 2010/11/08 15:13:53.196295 173.XXX.XXX.134:5060 -&gt; 75.XXX.XXX.158:1052 
<br />SIP/2.0 200 OK. 
<br />Via: SIP/2.0/UDP 192.168.33.25:3072;branch=z9hG4bK-wwgj5a4lrqrx;rport=1052;received=75.XXX.XXX.158. 
<br />From: sip:9012732004@coolbeans.com;tag=nhlxo9m692. 
<br />To: &lt;sip:9012732004@coolbeans.com&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-9037. 
<br />Call-ID: 202f366b421f321f-15522@173.XXX.XXX.134. 
<br />CSeq: 2 NOTIFY. 
<br />Server: OpenSIPS (1.6.3-notls (x86_64/linux)). 
<br />Content-Length: 0. 
<br />. 
<br />
<br /># 
<br />U 2010/11/08 15:13:53.197675 173.XXX.XXX.134:5060 -&gt; 173.XXX.XXX.134:5060 
<br />SIP/2.0 200 OK. 
<br />Via: SIP/2.0/UDP 173.XXX.XXX.134;branch=z9hG4bK2b85.d56c4672.0. 
<br />To: sip:9012732004@coolbeans.com;tag=155c340f586c28d0300cf5a6ccf90d99-573d. 
<br />From: &lt;sip:9012732004@coolbeans.com&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-a25e. 
<br />CSeq: 10 PUBLISH. 
<br />Call-ID: 202f366b421f3224-15517@173.XXX.XXX.134. 
<br />Expires: 3600. 
<br />SIP-ETag: a.1289249378.15517.8.31. 
<br />Server: OpenSIPS (1.6.3-notls (x86_64/linux)). 
<br />Content-Length: 0. 
<br />. 
<br />
<br /># 
<br />U 2010/11/08 15:13:56.633517 75.XXX.XXX.158:1052 -&gt; 173.XXX.XXX.134:5060 
<br />INVITE sip:9012211610@coolbeans.com;user=phone SIP/2.0. 
<br />Via: SIP/2.0/UDP 192.168.33.25:3072;branch=z9hG4bK-4qbt4muso76i;rport. 
<br />From: &quot;Sam 273-2004&quot; &lt;sip:9012732004@coolbeans.com&gt;;tag=kifvj9kpcd. 
<br />To: &lt;sip:9012211610@coolbeans.com;user=phone&gt;. 
<br />Call-ID: ad72263ca21d-prsjctuz8ivx. 
<br />CSeq: 1 INVITE. 
<br />Max-Forwards: 70. 
<br />Contact: &lt;sip:9012732004@192.168.33.25:3072;line=bt134aji&gt;;reg-id=1. 
<br />X-Serialnumber: 000413411A64. 
<br />P-Key-Flags: resolution=&quot;31x13&quot;, keys=&quot;4&quot;. 
<br />User-Agent: snom870/8.4.18. 
<br />Accept: application/sdp. 
<br />Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO, UPDATE. 
<br />Allow-Events: talk, hold, refer, call-info. 
<br />Supported: timer, 100rel, replaces, from-change. 
<br />Session-Expires: 3600;refresher=uas. 
<br />Min-SE: 90. 
<br />Content-Type: application/sdp. 
<br />Content-Length: 451. 
<br />. 
<br />v=0. 
<br />o=root 948072137 948072137 IN IP4 192.168.33.25. 
<br />s=call. 
<br />c=IN IP4 192.168.33.25. 
<br />t=0 0. 
<br />m=audio 51266 RTP/AVP 9 8 99 3 18 4 101. 
<br />a=crypto:1 AES_CM_128_HMAC_SHA1_32 inline:oHo6bY6hNmJNu0balZ63CNxWDXmmJvBqJ0tNB50U. 
<br />a=rtpmap:9 g722/8000. 
<br />a=rtpmap:8 pcma/8000. 
<br />a=rtpmap:99 g726-32/8000. 
<br />a=rtpmap:3 gsm/8000. 
<br />a=rtpmap:18 g729/8000. 
<br />a=fmtp:18 annexb=no. 
<br />a=rtpmap:4 g723/8000. 
<br />a=rtpmap:101 telephone-event/8000. 
<br />a=fmtp:101 0-16. 
<br />a=ptime:20. 
<br />a=sendrecv. 
<br />
<br /># 
<br />U 2010/11/08 15:13:56.633824 173.XXX.XXX.134:5060 -&gt; 75.XXX.XXX.158:1052 
<br />SIP/2.0 407 Proxy Authentication Required. 
<br />Via: SIP/2.0/UDP 192.168.33.25:3072;branch=z9hG4bK-4qbt4muso76i;rport=1052;received=75.XXX.XXX.158. 
<br />From: &quot;Sam 273-2004&quot; &lt;sip:9012732004@coolbeans.com&gt;;tag=kifvj9kpcd. 
<br />To: &lt;sip:9012211610@coolbeans.com;user=phone&gt;;tag=c97b4d1cb1f3d0da549e06a8d482ef63.57c1. 
<br />Call-ID: ad72263ca21d-prsjctuz8ivx. 
<br />CSeq: 1 INVITE. 
<br />Proxy-Authenticate: Digest realm=&quot;coolbeans.com&quot;, nonce=&quot;4cd868326d2364c9cf83e23fe138f97a7f930a9a&quot;, qop=&quot;auth&quot;. 
<br />Server: OpenSIPS (1.6.3-notls (x86_64/linux)). 
<br />Content-Length: 0. 
<br />. 
<br />
<br /># 
<br />U 2010/11/08 15:13:56.645090 75.XXX.XXX.158:1052 -&gt; 173.XXX.XXX.134:5060 
<br />NOTIFY sip:173.XXX.XXX.134:5060 SIP/2.0. 
<br />Via: SIP/2.0/UDP 192.168.33.25:3072;branch=z9hG4bK-h68011cfq49t;rport. 
<br />From: sip:9012732004@coolbeans.com;tag=nhlxo9m692. 
<br />To: &lt;sip:9012732004@coolbeans.com&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-9037. 
<br />Call-ID: 202f366b421f321f-15522@173.XXX.XXX.134. 
<br />CSeq: 3 NOTIFY. 
<br />Max-Forwards: 70. 
<br />Contact: &lt;sip:9012732004@192.168.33.25:3072;line=bt134aji&gt;;reg-id=1. 
<br />Event: dialog;sla. 
<br />Subscription-State: active. 
<br />Content-Type: application/dialog-info+xml. 
<br />Content-Length: 624. 
<br />. 
<br />&lt;?xml version=&quot;1.0&quot;?&gt; 
<br />&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;2&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbeans.com&quot;&gt;&lt;dialog id=&quot;2&quot; direction=&quot;initiator&quot; call-id=&quot;ad72263ca21d-prsjctuz8ivx&quot; local-tag=&quot;kifvj9kpcd&quot; remote-tag=&quot;&quot;&gt;&lt;state&gt;trying&lt;/state&gt;&lt;local&gt;&lt;identity display=&quot;Sam 273-2004&quot;&gt;sip:9012732004@coolbeans.com&lt;/identity&gt;&lt;target uri=&quot;sip:9012732004@192.168.33.25:3072;line=bt134aji&quot;&gt;&lt;/target&gt;&lt;/local&gt;&lt;remote&gt;&lt;identity&gt;sip:9012211610@coolbeans.com;user=phone&lt;/identity&gt;&lt;target uri=&quot;sip:9012211610@coolbeans.com;user=phone&quot;/&gt;&lt;/remote&gt;&lt;/dialog&gt;&lt;/dialog-info&gt; 
<br />
<br /># 
<br />U 2010/11/08 15:13:56.647554 173.XXX.XXX.134:5060 -&gt; 173.XXX.XXX.134:5060 
<br />PUBLISH sip:9012732004@coolbeans.com SIP/2.0. 
<br />Via: SIP/2.0/UDP 173.XXX.XXX.134;branch=z9hG4bKb003.af360635.0. 
<br />To: sip:9012732004@coolbeans.com. 
<br />From: &lt;sip:9012732004@coolbeans.com&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-c547. 
<br />CSeq: 10 PUBLISH. 
<br />Call-ID: 202f366b421f3220-15525@173.XXX.XXX.134. 
<br />Content-Length: 623. 
<br />User-Agent: OpenSIPS (1.6.3-notls (x86_64/linux)). 
<br />Max-Forwards: 70. 
<br />Event: dialog;sla. 
<br />Expires: 3601. 
<br />SIP-If-Match: a.1289249378.15517.8.31. 
<br />Content-Type: application/dialog-info+xml. 
<br />Sender: sip:9012732004@192.168.33.25:3072;line=bt134aji. 
<br />. 
<br />&lt;?xml version=&quot;1.0&quot;?&gt; 
<br />&lt;dialog-info xmlns=&quot;urn:ietf:params:xml:ns:dialog-info&quot; version=&quot;9&quot; state=&quot;full&quot; entity=&quot;sip:9012732004@coolbeans.com&quot;&gt;&lt;dialog id=&quot;2&quot; direction=&quot;initiator&quot; call-id=&quot;ad72263ca21d-prsjctuz8ivx&quot; local-tag=&quot;kifvj9kpcd&quot; remote-tag=&quot;&quot;&gt;&lt;state&gt;trying&lt;/state&gt;&lt;local&gt;&lt;identity display=&quot;Sam 273-2004&quot;&gt;sip:9012732004@coolbeans.com&lt;/identity&gt;&lt;target uri=&quot;sip:9012732004@192.168.33.25:3072;line=bt134aji&quot;&gt;&lt;/target&gt;&lt;/local&gt;&lt;remote&gt;&lt;identity&gt;sip:9012211610@coolbeans.com;user=phone&lt;/identity&gt;&lt;target uri=&quot;sip:9012211610@coolbeans.com;user=phone&quot;/&gt;&lt;/remote&gt;&lt;/dialog&gt;&lt;/dialog-info&gt; 
<br />
<br /># 
<br />U 2010/11/08 15:13:56.647609 173.XXX.XXX.134:5060 -&gt; 75.XXX.XXX.158:1052 
<br />SIP/2.0 200 OK. 
<br />Via: SIP/2.0/UDP 192.168.33.25:3072;branch=z9hG4bK-h68011cfq49t;rport=1052;received=75.XXX.XXX.158. 
<br />From: sip:9012732004@coolbeans.com;tag=nhlxo9m692. 
<br />To: &lt;sip:9012732004@coolbeans.com&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-9037. 
<br />Call-ID: 202f366b421f321f-15522@173.XXX.XXX.134. 
<br />CSeq: 3 NOTIFY. 
<br />Server: OpenSIPS (1.6.3-notls (x86_64/linux)). 
<br />Content-Length: 0. 
<br />. 
<br />
<br /># 
<br />U 2010/11/08 15:13:56.648746 173.XXX.XXX.134:5060 -&gt; 173.XXX.XXX.134:5060 
<br />SIP/2.0 200 OK. 
<br />Via: SIP/2.0/UDP 173.XXX.XXX.134;branch=z9hG4bKb003.af360635.0. 
<br />To: sip:9012732004@coolbeans.com;tag=155c340f586c28d0300cf5a6ccf90d99-9e00. 
<br />From: &lt;sip:9012732004@coolbeans.com&gt;;tag=533cb9e91f4b999cf76861cbb9ed54ed-c547. 
<br />CSeq: 10 PUBLISH. 
<br />Call-ID: 202f366b421f3220-15525@173.XXX.XXX.134. 
<br />Expires: 3600. 
<br />SIP-ETag: a.1289249378.15517.9.32. 
<br />Server: OpenSIPS (1.6.3-notls (x86_64/linux)). 
<br />Content-Length: 0. 
<br />. 
<br />
<br /># 
<br />U 2010/11/08 15:13:56.940934 75.XXX.XXX.158:1052 -&gt; 173.XXX.XXX.134:5060 
<br />ACK sip:9012211610@coolbeans.com;user=phone SIP/2.0. 
<br />Via: SIP/2.0/UDP 192.168.33.25:3072;branch=z9hG4bK-4qbt4muso76i;rport. 
<br />From: &quot;Sam 273-2004&quot; &lt;sip:9012732004@coolbeans.com&gt;;tag=kifvj9kpcd. 
<br />To: &lt;sip:9012211610@coolbeans.com;user=phone&gt;;tag=c97b4d1cb1f3d0da549e06a8d482ef63.57c1. 
<br />Call-ID: ad72263ca21d-prsjctuz8ivx. 
<br />CSeq: 1 ACK. 
<br />Max-Forwards: 70. 
<br />Contact: &lt;sip:9012732004@192.168.33.25:3072;line=bt134aji&gt;;reg-id=1. 
<br />Content-Length: 0. 
<br />. 
<br />
<br /># 
<br />U 2010/11/08 15:13:56.949354 75.XXX.XXX.158:1052 -&gt; 173.XXX.XXX.134:5060 
<br />INVITE sip:9012211610@coolbeans.com;user=phone SIP/2.0. 
<br />Via: SIP/2.0/UDP 192.168.33.25:3072;branch=z9hG4bK-4mndmsiw3v0p;rport. 
<br />From: &quot;Sam 273-2004&quot; &lt;sip:9012732004@coolbeans.com&gt;;tag=kifvj9kpcd. 
<br />To: &lt;sip:9012211610@coolbeans.com;user=phone&gt;. 
<br />Call-ID: ad72263ca21d-prsjctuz8ivx. 
<br />CSeq: 2 INVITE. 
<br />Max-Forwards: 70. 
<br />Contact: &lt;sip:9012732004@192.168.33.25:3072;line=bt134aji&gt;;reg-id=1. 
<br />X-Serialnumber: 000413411A64. 
<br />P-Key-Flags: resolution=&quot;31x13&quot;, keys=&quot;4&quot;. 
<br />User-Agent: snom870/8.4.18. 
<br />Accept: application/sdp. 
<br />Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO, UPDATE. 
<br />Allow-Events: talk, hold, refer, call-info. 
<br />Supported: timer, 100rel, replaces, from-change. 
<br />Session-Expires: 3600;refresher=uas. 
<br />Min-SE: 90. 
<br />Proxy-Authorization: Digest username=&quot;9012732004&quot;,realm=&quot;coolbeans.com&quot;,nonce=&quot;4cd868326d2364c9cf83e23fe138f97a7f930a9a&quot;,uri=&quot;sip:9012211610@coolbeans.com;user=phone&quot;,qop=auth,nc=00000001,cnonce=&q