D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Asterisk Dialplan?

 


On 19/01/10 21:42:27, Sam Grabham wrote:
Hi

Tried the sample code below, but still couldn't get it to work.

When you watch the console you see the call getting connected, but you don't hear any voice messages and connection times out.

i wondered if it had anything to do with dtmfmode=rfc2833 and tried other mode but non worked.


sip.conf

[1042620]
;Telephone-No.08450042620
;type=friend ;peer
type=peer
insecure=very ; otherwise I get authentication errors
nat=Yes
username=1042620
authuser=1042620
fromuser=1042620
fromdomain=sipgate.co.uk
secret=XXXXXXXX
;host=sipgate.co.uk
;outboundproxy=sipgate.co.uk
;qualify=no
qualify=yes
;dtmfmode=info
dtmfmode=rfc2833
context=incoming-sipgate
;canreinvite=no
disallow=all
allow=alaw
allow=ulaw
;allow=gsm
;allow=g729
;allow=slinear
;maxexpiry=3600


had following messages when trying different settings but non gave any audio after the connection made.



- Called g:out/08450042620
   -- mISDN/1-u5 is proceeding passing it to SIP/213-08204ca8
   -- Executing Answer("SIP/sipgate.co.uk-0820e108", "") in new stack
-- Executing MeetMe("SIP/sipgate.co.uk-0820e108", "700|isM") in new stack
 == Parsing '/etc/asterisk/meetme.conf': Found
   -- Created MeetMe conference 1023 for conference '700'
   -- Playing 'conf-getpin' (language 'en')
   -- mISDN/1-u5 is ringing
   -- mISDN/1-u5 answered SIP/213-08204ca8
   -- Playing 'conf-invalidpin' (language 'en')
   -- Playing 'conf-getpin' (language 'en')
   -- Playing 'conf-invalidpin' (language 'en')
   -- Playing 'conf-getpin' (language 'en')
== Spawn extension (default, 908450042620, 3) exited non-zero on 'SIP/213-08204ca8'
   -- Hungup 'Zap/pseudo-1478991532'
== Spawn extension (default, 1042620, 2) exited non-zero on 'SIP/ sipgate.co.uk-0820e108'


G'day,

It looks like your dtmf is not being recognised.
I have in sip.conf...

register => xxxxxxx:ssssssss@xxxxxxxxxxxxx/xxxxxxx

[01635xxxxxx]
type=friend
fromuser=xxxxxxx
authuser=xxxxxxx
username=xxxxxxx
secret=sssssss
fromdomain=sipgate.co.uk
dtmfmode=rfc2833
context=incoming-sipgate
insecure=very
canreinvite=yes
disallow=all
allow=ulaw
allow=alaw

and it seems to work for me.

To prove the dtmf is working and it is not meetme I would create a dialplan that has authenticate in it, enter a 4 digit number and see if that works, at least you can rule out dtmf.

BTW: I don't think sipgate are very good at dtmf, they have a history of it not working well. :-(

--
'ooroo

stinga...(:)-)
---------------------------------------------------
Email: stinga@xxxxxxxxxxxxx      o
You need only two tools.        o /////
A hammer and duct tape. If it    /@   `\  /) ~
doesn't move and it should,     >  (O)  X<  ~  Fish!!
use the hammer. If it moves and  `\___/'  \) ~
shouldn't, use the tape.           \\\
---------------------------------------------------

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html