cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
286
Views
0
Helpful
2
Replies
Highlighted

addSipTrunk not working

Hi,

I try to add several SIP Trunks via AXL but this "addSipTrunk" is not working.

Does anybody know why this is not working?

my $res =

   $cm->addSipTrunk(

            SOAP::Data->attr({xmlns => ''})->name('name'=> $name),

            SOAP::Data->attr({xmlns => ''})->name('description'=> $name),

            SOAP::Data->attr({xmlns => ''})->name('product'=> 'SIP Trunk'),

            SOAP::Data->attr({xmlns => ''})->name('class'=> 'Trunk'),

            SOAP::Data->attr({xmlns => ''})->name('protocol'=> 'SIP'),

            SOAP::Data->attr({xmlns => ''})->name('protocolSide'=> 'Network'),

            SOAP::Data->attr({xmlns => ''})->name('devicePoolName'=> 'DEV-Pool'),

            SOAP::Data->attr({xmlns => ''})->name('commonDeviceConfigName'=> 'German'),

            SOAP::Data->attr({xmlns => ''})->name('mediaResourceListName'=> 'DE'),

            SOAP::Data->attr({xmlns => ''})->name('locationName'=> 'DE'),

            SOAP::Data->attr({xmlns => ''})->name('mtpRequired'=> 't'),

            SOAP::Data->attr({xmlns => ''})->name('pstnAccess'=> 't'),

            SOAP::Data->attr({xmlns => ''})->name('runOnEveryNode'=> 't'),

            SOAP::Data->attr({xmlns => ''})->name('isPaiEnabled'=> 'f'),

            SOAP::Data->attr({xmlns => ''})->name('sipAssertedType'=> 'PAI'),

            SOAP::Data->attr({xmlns => ''})->name('callingSearchSpaceName'=> 'DE-International'),

            SOAP::Data->attr({xmlns => ''})->name('originatingParameterValue'=> '711alaw'),

            SOAP::Data->attr({xmlns => ''})->name('securityProfileName'=> 'SIP Profile'),

            SOAP::Data->attr({xmlns => ''})->name('sipProfileName'=> 'SIP Profile'),

            SOAP::Data->attr({xmlns => ''})->name('destinations'=> \SOAP::Data->attr({xmlns => ''})->value(

                SOAP::Data->attr({xmlns => ''})->name('destination'=> \SOAP::Data->attr({xmlns => ''})->value(

                    SOAP::Data->attr({xmlns => ''})->name('addressIpv4'=> $ip),

                    SOAP::Data->attr({xmlns => ''})->name('port'=> '5060'),

                )),

            )),  

   );

BR

Michael

2 REPLIES 2
Highlighted
Beginner

Are you getting an error message in the XML response?

A common error might be that one of the elements does not exist, e.g. the device pool or common device config.

Highlighted
Enthusiast

Hi, I think that SipSecurityProfile is missing in your request.

Please check AXL Schema

https://developer.cisco.com/docs/axl-schema-reference/

or send us your response code from your soap client

This widget could not be displayed.