Hello,
I’m trying to set up an Asterisk server that would “sit between” a SIP provider (net2phone) and SIP user agents.
Its role would be to play an audio message (advertisement) to users when they place a call, before transferring them to the “real” number.
Here’s the very lean “extensions.conf” :
[globals]
PATTERN=_X.
[default]
exten => s,1,Answer()
exten => ${PATTERN},1,Playback(ad)
exten => ${PATTERN},2,Dial(SIP/${EXTEN}/outbound,,)
exten => t,1,Hangup()
Then, I turned the Asterisk some kind of SIP proxy (I only need to support outbound calls) :
[general]
useragent = Linksys/PAP2-2.0.12(LS)
[outbound]
type = peer
disallow = all
allow = g729
allow = gsm
host = byod1.net2phone.com
secret = XXXX
username = XXXXXXXXX
fromuser = XXXXXXXXX
fromdomain = net2phone.com
Finally, I configured my SIP clients to call through Asterisk.
Yet, there is a problem when it comes to G.729 codec : apparently, the pass-thru mode doesn’t work.
My SIP user agent is configured to support both GSM (for the ad message) and G.729 for the real communication with the SIP provider. The net2phone provider only supports G.711 or G.729.
So, in theory, Asterisk should be able to connect the SIP UA to the SIP provider using G.729 ?
Here’s a SIP debug trace.
What is especially strange is the capabilities Asterisk advertises :
Capabilities: us - 0x8000e (gsm|ulaw|alaw|h263), peer - audio=0x102 (gsm|g729)/video=0x0 (nothing), combined - 0x2 (gsm)
Why not also G.729 ?
I even remove the Playback line of my extensions.conf, but the debug trace then shows the same kind of problem.
I tried playing with the “canreinvinte” parameter but that didn’t work.
Of course, when I installed the G.729 codec in Asterisk, G.729 communication take place correctly.
Any idea ?
Thanks for your help!
–
Damiano