Browse code

dsm: added @local_party select

...where did it go in the meantime?

Stefan Sayer authored on 11/11/2013 22:11:48
Showing 3 changed files
... ...
@@ -629,6 +629,7 @@ void log_selects(const string& l_arg, AmSession* sess,
629 629
   SELECT_LOG("remote_tag");
630 630
   SELECT_LOG("callid");
631 631
   SELECT_LOG("local_uri");
632
+  SELECT_LOG("local_party");
632 633
   SELECT_LOG("remote_uri");
633 634
   SELECT_LOG("remote_party");
634 635
 #undef SELECT_LOG
... ...
@@ -127,6 +127,8 @@ string resolveVars(const string ts, AmSession* sess,
127 127
 	return sess->getCallID();
128 128
       else if (s1 == "local_uri")
129 129
 	return sess->dlg->getLocalUri();
130
+      else if (s1 == "local_party")
131
+	return sess->dlg->getLocalParty();
130 132
       else if (s1 == "remote_uri")
131 133
 	return sess->dlg->getRemoteUri();
132 134
       else if (s1 == "remote_party")
... ...
@@ -511,6 +511,7 @@ selects :
511 511
  @domain
512 512
  @remote_tag
513 513
  @callid
514
+ @local_party
514 515
  @local_uri
515 516
  @remote_uri
516 517
  @remote_party