Hi, I decided to go with a linked list for current channels and maintain that through state changes. So, basically it works like this: 1. Originate a call using bgapi (we get a jobid in response) 2. Receive an event with the jobid and a uuid 3. Lookup the linked list for the jobid, set the uuid 4. Receive hangup etc (with uuid) remove from linked list The problem is that sometimes I receive the hangup with the uuid before I'm told what the match between the jobid and the uuid are. Any ideas? -- Cheers, Matt Riddell Director _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)
if you pick your own job-uuid you can set it in the originate too send job-uuid: 1234 in your bgapi event and {job_uuid=1234}sofia/internal/foo@bar.com in your dial string. *shrug* i am not sure exactly what the goal is so maybe it's not a useful suggestion... On Thu, Oct 1, 2009 at 4:36 PM, Matt Riddell <lists@venturevoip.com> wrote:
Hi,
I decided to go with a linked list for current channels and maintain that through state changes.
So, basically it works like this:
1. Originate a call using bgapi (we get a jobid in response) 2. Receive an event with the jobid and a uuid 3. Lookup the linked list for the jobid, set the uuid 4. Receive hangup etc (with uuid) remove from linked list
The problem is that sometimes I receive the hangup with the uuid before I'm told what the match between the jobid and the uuid are.
Any ideas?
-- Cheers,
Matt Riddell Director _______________________________________________
http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
On 2/10/09 10:50 AM, Anthony Minessale wrote:
if you pick your own job-uuid you can set it in the originate too
send
job-uuid: 1234
in your bgapi event
and
{job_uuid=1234}sofia/internal/foo@bar.com <mailto:foo@bar.com>
in your dial string.
*shrug* i am not sure exactly what the goal is so maybe it's not a useful suggestion...
Does the job-uuid get used as the actual call uuid? The problem is that the uuid for the call changes once it's answered (or hungup etc) and that the mapping doesn't come till after occasionally. I'm getting the job uuid no problem, but it's the replacement of the job-uuid with a call-uuid that is the issue. If this doesn't make too much sense I can post an example. -- Cheers, Matt Riddell Director _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)
if you make your own uuids you could set them in the originate string with {origination_uuuid=foo} where foo is a real uuid. if you have no other way to make them you can ask FS for one with the create_uuid api call. On Thu, Oct 1, 2009 at 5:02 PM, Matt Riddell <lists@venturevoip.com> wrote:
On 2/10/09 10:50 AM, Anthony Minessale wrote:
if you pick your own job-uuid you can set it in the originate too
send
job-uuid: 1234
in your bgapi event
and
{job_uuid=1234}sofia/internal/foo@bar.com <mailto:foo@bar.com>
in your dial string.
*shrug* i am not sure exactly what the goal is so maybe it's not a useful suggestion...
Does the job-uuid get used as the actual call uuid? The problem is that the uuid for the call changes once it's answered (or hungup etc) and that the mapping doesn't come till after occasionally.
I'm getting the job uuid no problem, but it's the replacement of the job-uuid with a call-uuid that is the issue.
If this doesn't make too much sense I can post an example.
-- Cheers,
Matt Riddell Director _______________________________________________
http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
On 2/10/09 11:36 AM, Anthony Minessale wrote:
if you make your own uuids you could set them in the originate string with {origination_uuuid=foo}
where foo is a real uuid. if you have no other way to make them you can ask FS for one with the create_uuid api call.
Awesome, thanks - will give it a whirl over the weekend. -- Cheers, Matt Riddell Director _______________________________________________ http://www.venturevoip.com/news.php (Daily Asterisk News) http://www.venturevoip.com/st.php (SmoothTorque Predictive Dialer) http://www.venturevoip.com/c3.php (ConduIT3 PABX Systems)
On Thu, Oct 1, 2009 at 2:36 PM, Matt Riddell <lists@venturevoip.com> wrote:
Hi,
I decided to go with a linked list for current channels and maintain that through state changes.
So, basically it works like this:
1. Originate a call using bgapi (we get a jobid in response) 2. Receive an event with the jobid and a uuid 3. Lookup the linked list for the jobid, set the uuid 4. Receive hangup etc (with uuid) remove from linked list
The problem is that sometimes I receive the hangup with the uuid before I'm told what the match between the jobid and the uuid are.
Any ideas?
If I may ask, what's the application? Are you working on Vicidial-ish stuff for FreeSWITCH? Also, you might want to call the FreeSWITCH conference tomorrow. We have some Q&A time with the FS devs and this kind of thing might work better in realtime rather than email threads. -MC
participants (3)
-
Anthony Minessale
-
Matt Riddell
-
Michael Collins