SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tandemtransitOffline



Joined: Jul 16, 2009
Posts: 14

Status: Offline
Posted: Nov 25, 2009 - 06:22 PM Reply with quote Back to top
Ok, I am still a newbee with Kamailio. I have the server set up, can register and make calls between phones, but how can i peer to an outbound route? that is where I am stumped, I cant seem to find the documentaion that explains it well enough to accomplish this.
can someone please show me what to do?
View user's profile Send private message
fcois93Offline



Joined: Oct 02, 2007
Posts: 104
Location: france
Status: Offline
Posted: Nov 26, 2009 - 09:50 AM Reply with quote Back to top
you can do a peer
but you can't authenticate with him!you can't send register.

if you want to peer with an asterisk, add kamailio as a peer in an asterisk and add the insecure=invite,port
View user's profile Send private message MSN Messenger
tandemtransitOffline



Joined: Jul 16, 2009
Posts: 14

Status: Offline
Posted: Nov 30, 2009 - 01:58 PM Reply with quote Back to top
i know i can peer, but what are the commands to set up a peer in Kamailio, and to make the calls use that specific route? I am new to Kamailio, so sorry if these are basic questions.
View user's profile Send private message
tandemtransitOffline



Joined: Jul 16, 2009
Posts: 14

Status: Offline
Posted: Nov 30, 2009 - 02:00 PM Reply with quote Back to top
im actually trying to have calls sent to the Kamailio server, and cant get it to allow inbound calls.
View user's profile Send private message
fcois93Offline



Joined: Oct 02, 2007
Posts: 104
Location: france
Status: Offline
Posted: Nov 30, 2009 - 02:07 PM Reply with quote Back to top
first, you have to look if your iptables are open.

use the xlog module to print in the syslog some control messages. exemple that you can insert in route{:
xlog("L_ERR", "method <$rm>_uri <$ru>fu : $fu ,fn : $fn, si:<$si>\n");
to have a look in the syslog: tail -f /var/log/syslog
you can see if a call is coming!




in asterisk, add peer in sip.conf:
[ser1]
type=friend
host=192.168.1.100
disallow=all
allow=ulaw
allow=alaw
dtmfmode=rfc2833
canreinvite=no
qualify=yes
context=fromkamailio
insecure=invite

in the extensions.conf:

[fromkamailio]
exten => _0XX.,1,Dial(SIP/trunk/${EXTEN})
[default]
exten => _0XX.,1,Dial(SIP/ser1/${EXTEN})


have fun Wink
View user's profile Send private message MSN Messenger
tandemtransitOffline



Joined: Jul 16, 2009
Posts: 14

Status: Offline
Posted: Nov 30, 2009 - 05:33 PM Reply with quote Back to top
ok so basically, if the number is in kamailio as a user and a call gets sent to kamailio, the sending sbc doesnt need to have auth to send call in?
View user's profile Send private message
tandemtransitOffline



Joined: Jul 16, 2009
Posts: 14

Status: Offline
Posted: Nov 30, 2009 - 06:01 PM Reply with quote Back to top
SIP/2.0 401 Unauthorized


when i send a call to kamailio
how do i authorize a peer in kamailio to send a call through the proxy?
View user's profile Send private message
tandemtransitOffline



Joined: Jul 16, 2009
Posts: 14

Status: Offline
Posted: Nov 30, 2009 - 06:06 PM Reply with quote Back to top
how can we authenticate incoming calls to kamailio -- from an sbc, no registration simple peer
View user's profile Send private message
fcois93Offline



Joined: Oct 02, 2007
Posts: 104
Location: france
Status: Offline
Posted: Dec 01, 2009 - 07:14 AM Reply with quote Back to top
your asterisk don't need to authenticate to kamailio.
when you send a call to asterisk, you have 2 solutions:

--send the call to an IP address with the $rd variable
--send to a user who is authenticate in kamailio. then to find him, use lookup("location")
View user's profile Send private message MSN Messenger


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.