Juha Heinanen wrote:
> 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.
should we add a function that accepts a dictionary? 
(params["app_name"]="announcement", params["hdrs"]="P-MyExtraHeader: 
here"). That one would cover all cases.

Stefan

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

-- 
Stefan Sayer
VoIP Services

[EMAIL PROTECTED]
www.iptego.com

iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany

Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to