<br><br><div class="gmail_quote">2013/1/25 Alec Davis <span dir="ltr"><<a href="mailto:sivad.a@paradise.net.nz" target="_blank">sivad.a@paradise.net.nz</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> Oliver wrote:<br>
><snip><br>
<div class="im">> Before diving into this, I've got the following question :<br>
><br>
> - let say we have two Asterisk servers A and B,<br>
> - both are interconnected through PSTN (no SIP trunk)<br>
> - agent Alice's phone is connected (ie registered) to server A<br>
> - Alice's phone can be reached from server A phones dialing<br>
Local/6789<br>
> - Alice's phone can also be reached from server B phones dialing<br>
Local/00123456789<br>
><br>
><br>
> 1. How do you configure both servers so that Alice's phone becomes a<br>
Queue Member from a server B given queue ?<br>
> Simply calling AddQueueMember on server B, passing Local/00123456789<br>
as interface value (ie AddQueueMember second argument) ?<br>
><br>
> 2. Then, how should server A publish Alice's phone status ?<br>
> How should server B consume Alice's phone status and associate it<br>
with the Queue member activity ? Using AddQueueMember stateinterface<br>
argument ?<br>
<br>
<br>
</div>Before trying to get distributed device state going:<br>
Device names across all Asterisk proxy's participating in<br>
'distributed device state' need to be unique.<br>
IE. You can't have 'SIP/cisco1' exist on server A for ALICE, and<br>
SIP/cisco1 on server B for BOB.<br>
<br>
You need to get XMPP distributed device state working.<br>
I followed<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Distributed+Device+State+with+XMP" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Distributed+Device+State+with+XMP</a><br>
P+PubSub<br>
<br>
You need a reasonbly reliable WAN links to the jabber server support the<br>
XMPP updates between servers.<br>
Asterisk segfaults if it can't contact the jabber server!!! See<br>
<a href="https://issues.asterisk.org/jira/browse/ASTERISK-18078" target="_blank">https://issues.asterisk.org/jira/browse/ASTERISK-18078</a><br>
<br>
Then:<br>
With Alice reqistered on Server A as SIP/cisco1<br>
With Server B hosting the queue named 'queue1'.<br>
<br>
;(on Server B)<br>
queues.conf:<br>
[queue1]<br>
;what makes this work with distributed states is the 'State Interface'<br>
parameter<br>
...<br>
member => Local/00123456789,0,ALICE,SIP/cisco1<br>
<br>
Alice will need a number to ring to login/logout of queue1 hosted on Server<br>
B;<br>
Dialplan Example: on server B:<br>
...<br>
exten => s,n,Set(queuename=queue1)<br>
exten => s,n,Set(interface=Local/00123456789)<br>
exten => s,n,Set(penalty=0)<br>
exten => s,n,Set(stateinterface=SIP/cisco1)<br>
exten =><br>
s,n(queue-add),AddQueueMember(${queuename},${interface},${penalty},options,,<br>
${stateinterface})<br>
<br>
And to remove the member;<br>
...<br>
exten => s,n(queue-remove),RemoveQueueMember(${queuename},${interface})<br>
<br>
Alec Davis<br>
<br>
<br></blockquote><div><br>I've not tried to publish device state with XMPP yet but I've discovered this issue <a href="https://issues.asterisk.org/jira/browse/ASTERISK-18078">https://issues.asterisk.org/jira/browse/ASTERISK-18078</a><br>
I'm planning to install my XMPP server on the same machine as one asterisk server so hopefully, I won't be hit by the issue above but have you met this issue ?<br>Could you get around ? <br></div></div>