Allow calledname change on redirect.
git-svn-id: http://yate.null.ro/svn/yate/trunk@588 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
061d73ff89
commit
7f490b5366
|
@ -170,15 +170,35 @@ vbox=>
|
|||
tooltip=Close this window
|
||||
leave=<hbox
|
||||
leave=<boxed
|
||||
label=Account name
|
||||
editor=,,,,acc_account,
|
||||
label=Username
|
||||
editor=,,,,acc_username,
|
||||
label=Password
|
||||
editor=,,,,acc_password,
|
||||
property:bool:visibility=false
|
||||
label=Protocol
|
||||
option=,,,,acc_protocol,sip,h323,iax
|
||||
hbox=>
|
||||
vbox=0,2,,,>
|
||||
label=Use provider settings
|
||||
option=,,,,acc_provider,--,FWD
|
||||
tooltip=Apply template settings for this provider
|
||||
label=Account name
|
||||
editor=,,,,acc_account,
|
||||
tooltip=Name used to identify this account
|
||||
label=Username
|
||||
editor=,,,,acc_username,
|
||||
tooltip=User account as known by the server
|
||||
label=Password
|
||||
editor=,,,,acc_password,
|
||||
property:bool:visibility=false
|
||||
tooltip=Password to authenticate with the server
|
||||
leave=<vbox
|
||||
vbox=0,2,,,>
|
||||
label=Protocol
|
||||
option=,,,,acc_protocol,sip,h323,iax
|
||||
tooltip=VoIP protocol to talk to the server
|
||||
label=Server
|
||||
editor=,,,,acc_server,
|
||||
tooltip=Address of the server to use
|
||||
label=Domain
|
||||
editor=,,,,acc_domain,
|
||||
tooltip=Domain that should be used with the server
|
||||
label=,,,,acc_
|
||||
leave=<vbox
|
||||
leave=<hbox
|
||||
hbox=>
|
||||
property:int:border-width=2
|
||||
button=1,,75,30,ok,OK
|
||||
|
|
|
@ -2205,8 +2205,11 @@ bool YateSIPConnection::callRouted(Message& msg)
|
|||
String s(msg.retValue());
|
||||
if (s.startSkip("sip/",false) && s && msg.getBoolValue("redirect")) {
|
||||
Debug(this,DebugAll,"YateSIPConnection redirecting to '%s' [%p]",s.c_str(),this);
|
||||
String tmp(msg.getValue("calledname"));
|
||||
if (tmp)
|
||||
tmp = "\"" + tmp + "\" ";
|
||||
s = tmp + "<" + s + ">";
|
||||
SIPMessage* m = new SIPMessage(m_tr->initialMessage(),302);
|
||||
s = "<" + s + ">";
|
||||
m->addHeader("Contact",s);
|
||||
m_tr->setResponse(m);
|
||||
m->deref();
|
||||
|
|
Loading…
Reference in New Issue