Juha Heinanen writes:

 >   AmSession* s = AmUAC::dialout(user.c_str(), application,  to,  
 >                              "<" + from +  ">", from, "<" + to + ">");
 > 
 > would be in theory possible to add such a param to AmUAC::dialout or do
 > you have some other suggestions?

it turned out that AmUAC::dialout has local_tag and hdrs arguments:

AmSession* AmUAC::dialout(const string& user,
                          const string& app_name,
                          const string& r_uri, 
                          const string& from,
                          const string& from_uri,
                          const string& to,
                          const string& local_tag,
                          const string& hdrs,
                          AmArg*  session_params) {

it would be too much hassle to add headers as an optional argument to
all four DIDial functions and adding headers as mandatory argument may
break existing use of di_dialer.  so if someone like me needs to add
headers, it is easy to create a private version of di_dialer.

-- juha
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to