Put enough information to be able to pick up (replace) the remote call.

git-svn-id: http://voip.null.ro/svn/yate@1371 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2007-06-26 03:23:48 +00:00
parent 4b021f4e6b
commit b2120262a3
1 changed files with 8 additions and 2 deletions

View File

@ -6,7 +6,7 @@
To test add in extmodule.conf
[scripts]
sippbx.php=
sipfeatures.php=
*/
require_once("libyate.php");
require_once("libvoicemail.php");
@ -187,6 +187,8 @@ class DialogSub extends Subscription {
case "answered":
$st = "confirmed";
break;
case "incoming":
case "outgoing":
case "calling":
case "ringing":
case "progressing":
@ -219,8 +221,12 @@ class DialogSub extends Subscription {
$this->body = "<?xml version=\"1.0\"?>\r\n";
$this->body .= "<dialog-info xmlns=\"urn:ietf:params:xml:ns:dialog-info\" version=\"" . $this->version . "\" entity=\"" . $this->uri . "\" notify-state=\"full\">\r\n";
if ($id) {
$this->body .= " <dialog id=\"$id\"$dir>\r\n";
$uri = ereg_replace("^.*<([^<>]+)>.*\$","\\1",$this->uri);
$tag = $this->match;
$tag = " call-id=\"$id\" local-tag=\"$tag\" remote-tag=\"$tag\"";
$this->body .= " <dialog id=\"$id\"$tag$dir>\r\n";
$this->body .= " <state>$st</state>\r\n";
$this->body .= " <remote><target uri=\"$uri\"/></remote>\r\n";
$this->body .= " </dialog>\r\n";
}
$this->body .= "</dialog-info>\r\n";