Re: [asterisk-users] Asterisk Messaging Refuses To Work!
Hi there, it actually DID work - but the message was flashed on the receiving party's softphone -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk Messaging Refuses To Work!
On 31/01/2013, at 8:11 AM, XBrian wrote: > I have changed the dial command to > [snip] > still no joy! What Dial command are you referring to? There are no instanced of the 'Dial' or 'Answer' app in any of your examples. Did you read Richard's comment about SendText only being valid during an active call? I think he hit the nail on the head. If you're not running 'Dial' or 'Answer' then this isn't going to work. Pete smime.p7s Description: S/MIME cryptographic signature -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk Messaging Refuses To Work!
I have changed the dial command to $tech/$dest,,gM(appmsg) and I have added [macro-appmsg] exten => s,1,SendText(Hello world) still no joy! :-( -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk Messaging Refuses To Work!
- Original Message - > I am pulling my hairs out here. This is my dialplan. > > exten => 100,1,Set(AGISIGHUP=no) > exten => 100,n,AGI(a2billing.php,4,callingcard) > exten => 100,n,Set(__APP_MSG_IND=${APP_MSG_IND}) > exten => 100,n,Set(__APP_MESSAGE=${APP_MESSAGE}) > exten => 100,n,Hangup() > > exten => h,1,GotoIf($["${APP_MSG_IND}" = "YES"]?send-msg,1) > exten => h,n,Hangup() > > exten => send-msg,1,SendText(${APP_MESSAGE}) > exten => send-msg,n,Hangup() > > I can see on the command line that the SendText() is actually being > called, but > the softphone isnt getting the text. > What am I doing wrong? > Is there a variable to be set? > > Any ideas will be most welcome The SendText application is only valid during a call. You are trying to send a message outside of a call. See MessageSend[1] in Asterisk v10 and later. Richard [1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+10+Application_MessageSend -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk Messaging Refuses To Work!
2013/1/30 XBrian > I am pulling my hairs out here. This is my dialplan. > > exten => 100,1,Set(AGISIGHUP=no) > exten => 100,n,AGI(a2billing.php,4,callingcard) > exten => 100,n,Set(__APP_MSG_IND=${APP_MSG_IND}) > exten => 100,n,Set(__APP_MESSAGE=${APP_MESSAGE}) > exten => 100,n,Hangup() > > exten => h,1,GotoIf($["${APP_MSG_IND}" = "YES"]?send-msg,1) > exten => h,n,Hangup() > > exten => send-msg,1,SendText(${APP_MESSAGE}) > exten => send-msg,n,Hangup() > > I can see on the command line that the SendText() is actually being > called, but > the softphone isnt getting the text. > What am I doing wrong? > Is there a variable to be set? > > Any ideas will be most welcome > > > If I was in your shoes (is this the right English sentence?) I'll run a tcpdump command to check the content of the SIP packet containing the message. That way you'll know if the asterisk or the softphone is to blame. Leandro -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Asterisk Messaging Refuses To Work!
I am pulling my hairs out here. This is my dialplan. exten => 100,1,Set(AGISIGHUP=no) exten => 100,n,AGI(a2billing.php,4,callingcard) exten => 100,n,Set(__APP_MSG_IND=${APP_MSG_IND}) exten => 100,n,Set(__APP_MESSAGE=${APP_MESSAGE}) exten => 100,n,Hangup() exten => h,1,GotoIf($["${APP_MSG_IND}" = "YES"]?send-msg,1) exten => h,n,Hangup() exten => send-msg,1,SendText(${APP_MESSAGE}) exten => send-msg,n,Hangup() I can see on the command line that the SendText() is actually being called, but the softphone isnt getting the text. What am I doing wrong? Is there a variable to be set? Any ideas will be most welcome -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users