diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-06-03 07:11:52 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-06-03 07:11:52 +0000 |
commit | 657295817c06e2bfa83383d4a45a3b394f47a805 (patch) | |
tree | 752474294d5d60dfd45c2b8fd307b9cddbcbe826 /channels/h323/ast_h323.cpp | |
parent | d57ecb276359869ac0a6f9de97acfed3771432fd (diff) |
implement H.323ID specification on the exten line. Ex: H323/user@host.tld/h323id
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1069 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/h323/ast_h323.cpp')
-rwxr-xr-x | channels/h323/ast_h323.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp index 970d4b10c..da073d770 100755 --- a/channels/h323/ast_h323.cpp +++ b/channels/h323/ast_h323.cpp @@ -873,6 +873,14 @@ int h323_set_alias(struct oh323_alias *alias) return 0; } + +void h323_set_id(char *id) +{ + PString h323id(id); + /* EVIL HACK */ + endPoint->SetLocalUserName(h323id); +} + /** Establish Gatekeeper communiations, if so configured, * register aliases for the H.323 endpoint to respond to. */ @@ -952,9 +960,7 @@ int h323_make_call(char *host, call_details_t *cd, call_options_t call_options) return 1; } - PString dest = PString(host); - - cout << "dest: " << dest << endl; + PString dest(host); res = endPoint->MakeCall(dest, token, &cd->call_reference, call_options.port); memcpy((char *)(cd->call_token), (const unsigned char *)token, token.GetLength()); |