[asterisk-users] can PJSIP_MEDIA_OFFER work like SIP_CODEC?

2014-09-27 Thread d tbsky
hi:
   when using chan_sip, I can use set SIP_CODEC in dialplan to change
the codec of endpoint. this method didn't work with pjsip in asterisk
12/13.

   I found asterisk 12/13 has a new function PJSIP_MEDIA_OFFER.
according to the description, it seems can set codec, but the document
didn't offer any example. i try to use something like
PJSIP_MEDIA_OFFER(alaw)  but didn't work.

   can someone give an example for the function? thanks for the help.

Regards,
tbskyd

-- 
_
-- 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] How to append the recording file.

2014-09-27 Thread Anurag Rana
Hi All,

I am trying to record the call using MixMonitor.
exten=_,n,MixMonitor(${EXTEN}.wav,b)

What i want to do is-
when first time a call is made to some number say 1100, a new file
(1100.wav) is created.
When call is made 2nd or 3rd time, no new file is created instead call
recording is appended to file created in above step.

Now I know that 'a' option is used to append the recording to a file but I
couldn't find any example on how to use it?
Also if I use 'a' option and file doesn't exist then is it created or it is
error?

Any suggestions please?


Anurag Rana
http://newbie42.blogspot.in/
-- 
_
-- 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