Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Autoanswer


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
jonas.gauffin at gmail...
Guest





PostPosted: Wed Nov 26, 2008 11:20 am    Post subject: [Freeswitch-users] Autoanswer Reply with quote

Hello

I send an API command through the event socket that looks like this (the first two variables are used by our server):


api originate {gate_user_id=44,gate_site_id=1,sip_invite_params=intercom=true,sip_h_Call-Info=<sip:$${domain}>;answer-after=0,sip_auto_answer=true,origination_caller_id_name='Jonas Gauffin',origination_caller_id_number=+4623666XXXX,sip_auto_answer=true}sofia/localdomain/u1000044%192.168.1.112 '&execute_extension(8901 XML)'



The command works just as it should. The problem is that the auto-answer variables seems to stick to the b-leg (execute extensions), which means that both calls gets auto answered. What I want is that only the first call gets answered.


(A logged in user presses the "call" icon in our webdirectory, which makes freeswitch use his phone to call 8901)


//Jonas
Back to top
anthony.minessale at g...
Guest





PostPosted: Wed Nov 26, 2008 11:28 am    Post subject: [Freeswitch-users] Autoanswer Reply with quote

you can put vars in [ ] before each channel in the list to apply them only to that one channel.

{global=true}[only_this_channel=true]sofia/foo/foo@bar.com (foo@bar.com),[only_this_channel_again=true]sofia/foo/baz@bar.com (baz@bar.com)


On Wed, Nov 26, 2008 at 9:20 AM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:
Quote:
Hello

I send an API command through the event socket that looks like this (the first two variables are used by our server):


api originate {gate_user_id=44,gate_site_id=1,sip_invite_params=intercom=true,sip_h_Call-Info=<sip:$${domain}>;answer-after=0,sip_auto_answer=true,origination_caller_id_name='Jonas Gauffin',origination_caller_id_number=+4623666XXXX,sip_auto_answer=true}sofia/localdomain/u1000044%192.168.1.112 '&execute_extension(8901 XML)'



The command works just as it should. The problem is that the auto-answer variables seems to stick to the b-leg (execute extensions), which means that both calls gets auto answered. What I want is that only the first call gets answered.


(A logged in user presses the "call" icon in our webdirectory, which makes freeswitch use his phone to call 8901)


//Jonas






_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
jonas.gauffin at gmail...
Guest





PostPosted: Wed Nov 26, 2008 11:30 am    Post subject: [Freeswitch-users] Autoanswer Reply with quote

Ahh. gr8. thanks.

On Wed, Nov 26, 2008 at 5:19 PM, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
you can put vars in [ ] before each channel in the list to apply them only to that one channel.

{global=true}[only_this_channel=true]sofia/foo/foo@bar.com (foo@bar.com),[only_this_channel_again=true]sofia/foo/baz@bar.com (baz@bar.com)



On Wed, Nov 26, 2008 at 9:20 AM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:


Quote:

Hello

I send an API command through the event socket that looks like this (the first two variables are used by our server):


api originate {gate_user_id=44,gate_site_id=1,sip_invite_params=intercom=true,sip_h_Call-Info=<sip:$${domain}>;answer-after=0,sip_auto_answer=true,origination_caller_id_name='Jonas Gauffin',origination_caller_id_number=+4623666XXXX,sip_auto_answer=true}sofia/localdomain/u1000044%192.168.1.112 '&execute_extension(8901 XML)'



The command works just as it should. The problem is that the auto-answer variables seems to stick to the b-leg (execute extensions), which means that both calls gets auto answered. What I want is that only the first call gets answered.


(A logged in user presses the "call" icon in our webdirectory, which makes freeswitch use his phone to call 8901)


//Jonas








_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
jonas.gauffin at gmail...
Guest





PostPosted: Mon Dec 08, 2008 5:38 am    Post subject: [Freeswitch-users] Autoanswer Reply with quote

I've tried what you said, and both legs still get auto answered.



My string:
api originate {gate_user_id=157,gate_site_id=87,origination_caller_id_name='Namie Amuro'}[sip_invite_params=intercom=true,sip_h_Call-Info=<sip:$${domain}>;answer-after=0,sip_auto_answer=true]sofia/localdomain/u1000157%192.168.1.111 '&execute_extension(1202 XML)'




On Wed, Nov 26, 2008 at 5:27 PM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:
Quote:
Ahh. gr8. thanks.


On Wed, Nov 26, 2008 at 5:19 PM, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
you can put vars in [ ] before each channel in the list to apply them only to that one channel.

{global=true}[only_this_channel=true]sofia/foo/foo@bar.com (foo@bar.com),[only_this_channel_again=true]sofia/foo/baz@bar.com (baz@bar.com)



On Wed, Nov 26, 2008 at 9:20 AM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:


Quote:

Hello

I send an API command through the event socket that looks like this (the first two variables are used by our server):


api originate {gate_user_id=44,gate_site_id=1,sip_invite_params=intercom=true,sip_h_Call-Info=<sip:$${domain}>;answer-after=0,sip_auto_answer=true,origination_caller_id_name='Jonas Gauffin',origination_caller_id_number=+4623666XXXX,sip_auto_answer=true}sofia/localdomain/u1000044%192.168.1.112 '&execute_extension(8901 XML)'



The command works just as it should. The problem is that the auto-answer variables seems to stick to the b-leg (execute extensions), which means that both calls gets auto answered. What I want is that only the first call gets answered.


(A logged in user presses the "call" icon in our webdirectory, which makes freeswitch use his phone to call 8901)


//Jonas








_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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





Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services