Re: [Asterisk-video] Generate outbound 3g call will .call file and local channel

2011-09-08 Thread Konstantinos Liadakis

Any help would be appreciated

Still haven't managed to do it.

Anybody?

On 6/9/2011 4:01 ??, Konstantinos Liadakis wrote:

Hello everybody,

I have been trying lately to generate an outbound call from a .call 
file *but *using a local channel.


I need the local channel in order populate ${HANGUPCAUSE} asterisk 
variable.


Hangupcause gives a better explanation than ${REASON} as to why call 
has failed, and hence one can find out if receiving device has not 3g 
video capability, or is out of 3g coverage e.t.c


No matter what i try i cannot make it work.

I have managed to do outbound calls generated by .call file, but not 
with a local channel


I am using the following:

Channel: Zap/g0/number
CallerId: $strCallerId
Context: from-dialer
Extension: outbound
Priority: 1
Set: CHANNEL(transfercapability)=VIDEO
Set: CHANNEL(userinformationlayer1)=38


[from-dialer]

exten = outbound,1,h324m_gw(play@video-campaign)

[video-campaign]

exten = play,1,h324m_gw_answer()
exten = play,n,mp4play(${filename})
exten = play,n,Hangup()

Could someone modify the above in order to work with local channel, so 
the dial command can be in the dialplan


Thank you very much in advance for your help

Regards

Dinos










--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-video

Re: [Asterisk-video] Generate outbound 3g call will .call file and local channel

2011-09-08 Thread Konstantinos Liadakis

Hello Mitul and thank you for your reply,

I tried your example but did not work for me as i am looking to play an 
mp4 file using mp4play on the receiving device. I added mp4 play command 
at the end but call hangs up. Could you modify dialplan to play mp4 file?


${Dialstatus} does not give much information as to what happened to the 
call.


During my tests i realized that the only way to know in more detail what 
happened to the call and especially if 3g call was sent to a 3g video 
capable device is ${HANGUPCAUSE}.


From my test i have found the following:

If device is switched off (*this number has not got voicemail 
activated*), but device*is video capable* then you get *Hangupcause=20 
subscriber absent 480 Temporarily unavailable*
If device is switched on (*this number has not got voicemail 
activated*), but *is not video capable* then you get *Hangupcause=88 
incompatible destination 503 Service unavailable*
If device is switched on (*this number has not got voicemail 
activated*), but *is busy whether device is video capable or not*, then 
you get *Hangupcause=17 user busy 486 Busy here*


A problem arises when mobile number has got *voicemail enabled*.

If device is*not video capable*, and *voicemail is activated* then:
a. if device is on 3g network, then call jusr fails with *Hangupcause=88 
incompatible destination 503 Service unavailable*


b. if device is not on 3g network, then call is redirected to voicemail, 
without any hint about it. Major problem here, because from the dialplan 
point of view it seems that video was actually played at the device 
although it didnt. Receiver ends up with an annoying voicemail with a 
buzzing sound. Also call does not hangup until voicemail times out


Has anybody got a better idea of how to handle this?

Thank you in advance

Regards

Dinos
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-video

Re: [Asterisk-video] Generate outbound 3g call will .call file and local channel

2011-09-08 Thread Mitul Limbani
Problem is in your .call file !!!
It should read this :

Channel: Local/XX@from-dialer1/n
CallerId: 1506
Context: video-campaign1
Extension: play
Priority: 1
Set: CHANNEL(transfercapability)=**VIDEO
Set: CHANNEL(userinformationlayer1)**=38

and

[video-campaign1]

exten = play,1,h324m_gw(play2@video-**campaign1)
exten = play2,1,h324m_gw_answer()
exten = play2,n,mp4play(/var/lib/**astersk/sounds/autodialer/**
userrecordings/video/26/**gauloises1.3gp)
exten = play2,n,Hangup()

.call works where if the particular Channel gets dialed and if Asterisk
finds that channel status as ANSWERED, then it throws that call into the
defined EXTENSION@CONTEXT @ that priority

Doing this would solve ur problem,

Regards,
Mitul Limbani,
Chief Architech  Founder,
Enterux Solutions Pvt. Ltd.
110 Reena Complex, Opp. Nathani Steel,
Vidyavihar (W), Mumbai - 400 086. India
http://www.enterux.com/
http://www.entvoice.com/
email: mi...@enterux.in
DID: +91-22-61447605
Cell: +91-9820332422
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-video

Re: [Asterisk-video] Generate outbound 3g call will .call file and local channel

2011-09-08 Thread Jack Smith
Are you sure you do not need h324m_call if you wish to make an outbound
video call over PRI. I suspect the hangup maybe related to this.

Jack

On Thu, Sep 8, 2011 at 7:45 PM, Konstantinos Liadakis
kliada...@yuboto.comwrote:

 Hello again Mitul and thank you for your reply,

 I followed your instructions but still again when h324m_gw_answer() is
 reached, call hungs up. Any more suggestions?

 Thank you again, your help is very much appreciated!

 Best regards

 Dinos

 My call file

 Channel: Local/X@from-dialer1/n

 CallerId: 1506
 Context: video-campaign1
 Extension: play
 Priority: 1
 Set: CHANNEL(transfercapability)=**VIDEO
 Set: CHANNEL(userinformationlayer1)**=38

 My dialplan


 [from-dialer1]
 exten = _X.,1,Set(CHANNEL(**transfercapability)=VIDEO)
 exten = _X.,n,Set(CHANNEL(**userinformationlayer1)=38)
 exten = _X.,n,Dial(Zap/g0/${EXTEN},30)
 exten = _X.,n,Hangup()


 [video-campaign1]
 exten = play,1,h324m_gw(play2@video-**campaign1)
 exten = play2,1,h324m_gw_answer()
 exten = play2,n,mp4play(file.3gp)
 exten = play2,n,Hangup()

 -- Attempting call on Local/XX@from-dialer1/**n for
 play@video-campaign1:1 (Retry 1)
-- Executing [XX@from-dialer1:1] 
 Set(Local/XX@from-**dialer1-fa03,2,
 CHANNEL(transfercapability)=**VIDEO) in new stack
-- Executing [XX@from-dialer1:2] 
 Set(Local/XX@from-**dialer1-fa03,2,
 CHANNEL(**userinformationlayer1)=38) in new stack
-- Executing [XX@from-dialer1:3] 
 Dial(Local/XX@from-**dialer1-fa03,2,
 Zap/g0/XX|30) in new stack

-- digital call, setting user information layer 1 to 38 (0x26)
-- zap call: h324musellc=0, ast-userinformationlayer1=38
-- Requested transfer capability: 0x18 - VIDEO
-- Called g0/XX
-- Zap/1-1 is proceeding passing it to Local/XX@from-dialer1-**
 fa03,2

-- Zap/1-1 is ringing
-- Zap/1-1 answered Local/XX@from-dialer1-**fa03,2
  Channel Local/XX@from-dialer1-**fa03,1 was answered.
-- Executing [play@video-campaign1:1] 
 h324m_gw(Local/XX@**from-dialer1-fa03,1,
 play2@video-campaign1) in new stack
-- Executing [play2@video-campaign1:1] 
 h324m_gw_answer(Local/play2@**video-campaign1-5a2e,2,
 ) in new stack

-- Channel 0/1, span 1 got hangup request, cause 16
-- Hungup 'Zap/1-1'
  == Spawn extension (from-dialer1, XX, 3) exited non-zero on
 'Local/XX@from-**dialer1-fa03,2'
-- Executing [h@from-dialer1:1] 
 NoOp(Local/XX@from-**dialer1-fa03,2,
 Hangupcause1:16) in new stack
-- Executing [h@from-dialer1:2] 
 NoOp(Local/XX@from-**dialer1-fa03,2,
 Dialstatus1:ANSWER) in new stack
-- Executing [h@from-dialer1:3] 
 NoOp(Local/XX@from-**dialer1-fa03,2,
 Reason1:) in new stack
-- Executing [h@from-dialer1:4] 
 Hangup(Local/XX@from-**dialer1-fa03,2,
 ) in new stack
  == Spawn extension (from-dialer1, h, 4) exited non-zero on
 'Local/XX@from-**dialer1-fa03,2'
  == Spawn extension (video-campaign1, play2, 1) exited non-zero on
 'Local/play2@video-campaign1-**5a2e,2'
-- Executing [h@video-campaign1:1] 
 NoOp(Local/play2@video-**campaign1-5a2e,2,
 Hangupcause2:0) in new stack
-- Executing [h@video-campaign1:2] 
 NoOp(Local/play2@video-**campaign1-5a2e,2,
 Dialstatus2:) in new stack
-- Executing [h@video-campaign1:3] 
 NoOp(Local/play2@video-**campaign1-5a2e,2,
 Reason2:) in new stack
-- Executing [h@video-campaign1:4] 
 Hangup(Local/play2@video-**campaign1-5a2e,2,
 ) in new stack
  == Spawn extension (video-campaign1, h, 4) exited non-zero on
 'Local/play2@video-campaign1-**5a2e,2'
  == Spawn extension (video-campaign1, play, 1) exited non-zero on
 'Local/XX@from-**dialer1-fa03,1'
-- Executing [h@video-campaign1:1] 
 NoOp(Local/XX@from-**dialer1-fa03,1,
 Hangupcause2:0) in new stack
-- Executing [h@video-campaign1:2] 
 NoOp(Local/XX@from-**dialer1-fa03,1,
 Dialstatus2:) in new stack
-- Executing [h@video-campaign1:3] 
 NoOp(Local/XX@from-**dialer1-fa03,1,
 Reason2:) in new stack
-- Executing [h@video-campaign1:4] 
 Hangup(Local/XX@from-**dialer1-fa03,1,
 ) in new stack
  == Spawn extension (video-campaign1, h, 4) exited non-zero on
 'Local/XX@from-**dialer1-fa03,1'
 [2011-09-08 16:59:53] NOTICE[3895]: pbx_spool.c:351 attempt_thread: Call
 completed to Local/XX@from-dialer1/**n



 --
 __**__**_
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-video mailing list
 To UNSUBSCRIBE or update options visit:
  
 http://lists.digium.com/**mailman/listinfo/asterisk-**videohttp://lists.digium.com/mailman/listinfo/asterisk-video

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-video mailing list
To UNSUBSCRIBE or update options visit: