From: Josh G. <jg...@qw...> - 2008-07-13 18:49:26
|
Hi, I think that I might be asking iaxclient to do more than it was designed for. Let's say that I have two users (say "Alice" and "Bob") configured on an Asterisk server, and that I want to register to receive calls directed to either of them. When a call is received, I need to be able to tell whether the call is intended for Alice or Bob, and I can't see how to accomplish this. In other words, if I register Alice and Bob as follows... iaxc_register("Alice", "password758493721", "asterisk.mycompany.com"); iaxc_register("Bob", "password324719912", "asterisk.mycompany.com"); ... then, when my callback gets a 'struct_ev_call_state' to notify me that a call has been received, I don't know what to do: int state_event_callback(struct iaxc_ev_call_state_call) { if (call.state & IAXC_CALL_STATE_RINGING) { /* OK, I'm receiving a call, but is it for Bob or Alice? How can I tell? */ } } Can iaxclient support this use-case, or do I have to do some lower-level IAX hacking? Thanks, Josh |